Results 1 to 6 of 6

Thread: Error writing on HDD

  1. #1
    Join Date
    Jan 2013
    Location
    Disclosed location
    Beans
    75
    Distro
    Ubuntu 13.10 Saucy Salamander

    Error writing on HDD

    Hello fellow Linux users, I am running Ubuntu 12.04 32-bit with Xubuntu DE and recently got a hold of Maxtor 6Y080M0 SATA HDD and I formatted it to ext4 filesystem using Gparted tool. But since then I have a problem, I cannot write anything on it nor can I format it. When I try to mount it from Disks tool this is what it says:
    Code:
    Error mounting system-managed device /dev/sdb1: Command-line `mount "/mnt/088464b0-321b-4690-bde7-9850831f22d4"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sdb1,       missing codepage or helper program, or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    
    
     (udisks-error-quark, 0)
    I have no idea anymore why is it not working, so please give me some advice.
    My regards, stay brutal.
    Last edited by LinuxUser666; October 3rd, 2013 at 06:47 PM.
    Avoid the Gates of Hell. Use Linux.

  2. #2
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Error writing on HDD

    Quote Originally Posted by LinuxUser666 View Post
    Hello fellow Linux users, I am running Ubuntu 12.04 32-bit with Xubuntu DE and recently got a hold of Maxtor 6Y080M0 SATA HDD and I formatted it to ext4 filesystem using Gparted tool. But since then I have a problem, I cannot write anything on it nor can I format it. When I try to mount it from Disks tool this is what it says:
    Code:
    Error mounting system-managed device /dev/sdb1: Command-line `mount "/mnt/088464b0-321b-4690-bde7-9850831f22d4"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sdb1,       missing codepage or helper program, or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    
    
     (udisks-error-quark, 0)
    I have no idea anymore why is it not working, so please give me some advice.
    My regards, stay brutal.
    Your error message indicates a filesystem failure, which can be caused by several reasons and it's causing it's refuse to mount. First you have to figure out what partition you're dealing with, by running
    Code:
    sudo fdisk -l
    The above will list all the partitions on all the drives in your computer. Then make sure your superblock is the problem, by starting a filesystem check, replacing xxx with your partition name
    Code:
    sudo fsck.ext4 -v /dev/xxx
    If your superblock is corrupt, the output will look something like this
    The superblock could not be read or does not describe a correct ext4 filesystem. If the device is valid and it really contains an ext4 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>
    You'll have to find where your superblock backups are kept
    Code:
    sudo mke2fs -n /dev/xxx
    Down at the bottom of the output, you should see a list of the backups, something like this
    Code:
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
    Restore the superblock from the backup, again replacing xxx with your partition name, and block_number with the first backup superblock
    Code:
    sudo e2fsck -b block_number /dev/xxx
    Reboot, and the superblock should be fixed. If it’s not, repeat the steps, but restore a different backup superblock.

  3. #3
    Join Date
    Jan 2013
    Location
    Disclosed location
    Beans
    75
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Error writing on HDD

    I will most certainly try that solution, but if superblock backups fail, is that it or is there any other solutions there?
    One more question, how to deal with bad sectors on my hdd, what tool is best to use or however it works?

    My regards, stay brutal.
    Avoid the Gates of Hell. Use Linux.

  4. #4
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Error writing on HDD

    Quote Originally Posted by LinuxUser666 View Post
    I will most certainly try that solution, but if superblock backups fail, is that it or is there any other solutions there?
    See these links:
    FilesystemTroubleshooting
    Btrfs
    Quote Originally Posted by LinuxUser666 View Post
    One more question, how to deal with bad sectors on my hdd, what tool is best to use or however it works?
    My regards, stay brutal.
    There is no way to repair bad sectors, they are automatically marked as unusable, without user intervention. To find out what various programs do that, see the man pages at a terminal window, of the following:
    Code:
    man badblocks
    Code:
    man fsck
    Code:
    man smartctl
    Last edited by slickymaster; October 2nd, 2013 at 11:45 AM. Reason: Corrected a typo

  5. #5
    Join Date
    Jan 2013
    Location
    Disclosed location
    Beans
    75
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Error writing on HDD

    Thanks Slickymaster, you are the best.

    My regards, stay brutal.
    Avoid the Gates of Hell. Use Linux.

  6. #6
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Error writing on HDD

    Glad to be of help. Please don't forget to mark the thread as SOLVED so other people searching the forums know that this thread provides a working solution for their problem.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •