unable to mount a drive by uuid

Asked by ag65151

I'll give you the info and then the problem:

fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00071057

   Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1309 10410120 83 Linux
/dev/hda3 9208 9729 4192965 82 Linux swap / Solaris
/dev/hda4 1310 9207 63440685 83 Linux

Partition table entries are not in disk order

cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda2
UUID=22cd74be-f962-46a8-91a2-db457e956e40 / ext3 defaults,errors=remount-ro 0 1
#/dev/hda4
# UUID=204005e9-0e83-46cf-8d0a-95f3b4f14ced /home ext3 defaults 0 2
/dev/hda4 /home ext3 defaults 0 2
# /dev/hda1
UUID=8616c7f3-81c0-4cbc-9ed4-4db38e189104 /media/hda1 ext3 defaults 0 2
# /dev/hda3
UUID=0f3c0398-f620-4b8e-b570-4283783a973b none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto,exec 0 0

ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 2007-10-26 12:25 0f3c0398-f620-4b8e-b570-4283783a973b -> ../../hda3
lrwxrwxrwx 1 root root 10 2007-10-26 12:25 22cd74be-f962-46a8-91a2-db457e956e40 -> ../../hda2
lrwxrwxrwx 1 root root 10 2007-10-26 12:25 8616c7f3-81c0-4cbc-9ed4-4db38e189104 -> ../../hda1

sudo tune2fs -l /dev/hda4

tune2fs 1.40.2 (12-Jul-2007)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: 204005e9-0e83-46cf-8d0a-95f3b4f14ced
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal filetype needs_recovery sparse_super
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 7898880
Block count: 15859712
Reserved block count: 634388
Free blocks: 11947734
Free inodes: 7859847
First block: 0
Block size: 4096
Fragment size: 4096
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 16320
Inode blocks per group: 510
Last mount time: Fri Oct 26 12:25:36 2007
Last write time: Fri Oct 26 12:25:36 2007
Mount count: 13
Maximum mount count: 30
Last checked: Wed Oct 24 21:31:07 2007
Check interval: 0 (<none>)
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Journal backup: inode blocks

My problem is that I understand the benefits of mounting by UUID in fstab and I would like to do so with my /dev/hda4. I need to mount it to /home. But whenever I change the fstab entry to be the UUID for /dev/hda4, it says it is unable to find the drive and then I end up with no /home which produces myriad errors. Have I done something to my /dev/hda4 to make it unmountable by UUID? If so, how can I fix it without reformating?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
ag65151
Solved:
Last query:
Last reply:
Revision history for this message
ag65151 (ag65151) said :
#1

I just found in the System>Preferences>Hardware Information that the drive is being listed as an LVM Member, but when I created it with gparted, it showed as a Linux partition. I don't know which is true or where to remove the "LVM Member" designation. If I could figure that out, I think I could get it solved.

Revision history for this message
ag65151 (ag65151) said :
#2

Apparently, when I first created the partition, I created it as an LVM Member. That flag stuck through multiple moves. I copied this partition numerous times with gparted in order to get my system set up exactly the way I wanted it.

The solution to the problem was to create a new partition, copy all of my data to the new partition, delete the old partition and then move a partition on top of the old one. To just create a new partition where the other one was still left me with no UUID. Now, I have 3 partitions with UUIDs (/, /home, and /swap). My system seems happy.

Hope this is helpful for someone else. LVM to me is not worth a thing.