I have an SSD which holds / and my home directory, but I also have a 1TB HDD with most of my music on. I tried to edit /etc/fstab to automatically mount the HDD to save me time. I am running Kubuntu.
I opened KDE Partition Manager to check the type of the filesystem and it read ext3
The line I added read:
/dev/sda /media/HDD ext3 defaults 0 2
On rebooting, an error appeared under 'Kubuntu' on the boot screen saying that the filesystem couldn't mount so I hit S to skip attempting to mount.
Running sudo blkid
shows:
/dev/sda1: LABEL="HDD" UUID="00000000-dba3-409e-a185-345c60459125" TYPE="ext2"
/dev/sdb1: UUID="44cdc69c-0746-4a99-9c48-ccf7fca69768" TYPE="ext4"
/dev/sdb5: UUID="478bf04c-8bf6-46c4-86e8-e844380cf8e7" TYPE="swap"
I can remember when I created the partition originally, I didn't set it to ext2 (even though this was ~2 years ago)
I attempted a couple more times with different options (changing defaults to other commands rw,async,auto...). The HDD will no longer mount. When opening in dolphin, the message reads:
An error occurred while accessing 'Home', the system responded: The requested operation has failed: Error mounting /dev/sda1 at /media/myname/HDD: Command-line `mount -t "ext2" -o "uhelper=udisks2,nodev,nosuid" "/dev/sda1" "/media/myname/HDD"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
KDE Partition Manager says the type is unknown. Clicking 'properties' shows it as unformatted
fdisk -l
gives the following:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000819ae
Device Boot Start End Blocks Id System
/dev/sda1 63 1953520064 976760001 83 Linux
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001a3c6
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 233330687 116664320 83 Linux
/dev/sdb2 233332734 250068991 8368129 5 Extended
/dev/sdb5 233332736 250068991 8368128 82 Linux swap / Solaris
Attempting to mount gives the error
~ $ sudo mount /dev/sda /media/HDD
[sudo] password for myname:
mount: wrong fs type, bad option, bad superblock on /dev/sda,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
dmesg | tail
says:
[ 5632.049404] EXT2-fs (sda): error: ext2_check_descriptors: Block bitmap for group 880 not in group (block 0)!
[ 5632.049411] EXT2-fs (sda): group descriptors corrupted
[ 5669.867629] EXT2-fs (sda): error: ext2_check_descriptors: Block bitmap for group 880 not in group (block 0)!
[ 5669.867632] EXT2-fs (sda): group descriptors corrupted
[ 6894.395961] EXT2-fs (sda1): error: can't find an ext2 filesystem on dev sda1.
[ 7040.625599] EXT3-fs (sda1): error: fragsize 1024 != blocksize 4096 (unsupported)
[ 7045.462213] EXT2-fs (sda1): error: can't find an ext2 filesystem on dev sda1.
[ 7048.975278] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[ 7421.551590] EXT2-fs (sda1): error: can't find an ext2 filesystem on dev sda1.
[ 7451.874417] EXT2-fs (sda1): error: can't find an ext2 filesystem on dev sda1.
strace:
$ strace -s 2000 -o mount.log blkid
/dev/sda1: LABEL="HDD" UUID="00000000-dba3-409e-a185-345c60459125" TYPE="ext2"
/dev/sdb1: UUID="44cdc69c-0746-4a99-9c48-ccf7fca69768" TYPE="ext4"
/dev/sdb5: UUID="478bf04c-8bf6-46c4-86e8-e844380cf8e7" TYPE="swap"
/proc/filesystems:
$ cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cgroup
nodev cpuset
nodev tmpfs
nodev devtmpfs
nodev debugfs
nodev securityfs
nodev sockfs
nodev pipefs
nodev anon_inodefs
nodev devpts
ext3
ext4
nodev ramfs
nodev hugetlbfs
vfat
nodev ecryptfs
fuseblk
nodev fuse
nodev fusectl
nodev pstore
nodev mqueue
nodev binfmt_misc
ext2
udf
mount
command. Egsudo mount /dev/sda some_dir
. If it succeeds, runmount
again to see the filesystem type. If you still have problems, post the output here.mount: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
sudo mount /dev/sda1 some_dir
/
,/home
and your music) but there are only two:sda1
andsdb1
./dev/sda1
in yourfstab
.