No problems under woody and etch at all.
Upgrade to lenny and it instantly gets its drives twisted.
Can it be fixed simply?
and if so, how?
T.I.A.
Ugh. Poor you. I think this is because Lenny has moved to the new UUID
framework, where each device gets a unique identifier, instead of hda, sdb
etc. Theoretically this is to ensure that each drive is recognised properly
every time, instead of sda/sdb getting swapped over if the kernel recognises
the plug-in controller before the on-board one (or whatever) - but
ironically it seems to be causing more problems than it solves so far (it
also provides totally non-human-readable IDs, which is very tedious).
Specifically, GRUB2 uses UUIDs by default, and that may well be your problem
(it's happened on several of my machines). If you can get into the system
via rescue CD and uninstall GRUB2, reverting to GRUB legacy (or LILO), your
system should be fine again.
Good luck,
CC
You can edit your /etc/fstab to use drive names instead of UUID and edit
/boot/grub/menu.lst as needed, I have done both while using a live cd
and GParted will give you the drive info that you need.
Make sure you backup the files before you start messing around. :)
And I agree, the only time I see where UUID is needed is when you use
external USB drives, like on a laptop where you may need extra storage
and want a permanent fstab.
--
Jimmy Johnson
SimplyMEPIS 8.0 64-Bit KDE 3.5.10
Registered Linux User #380263
> Ugh. Poor you. I think this is because Lenny has moved to the new UUID
> framework, ,,,,,,,, If you
> can get into the system via rescue CD and uninstall GRUB2, reverting to
> GRUB legacy (or LILO), your system should be fine again.
I ended up doing the LABEL=thing for every partition (man e2label, mkswap
-L ) and adjustng fstab. HINT; save a working fstab so you can copy it
back if things go pear shape. Lol, working out a 1 liner awk (no vi) to
fix this got the brain going.
Yes, I can not see the point with this UUID stuff either.
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda3 / ext3 errors=remount-ro 0 1
/dev/sda1 /boot ext3 defaults 0 2
/dev/sda4 /home ext3 defaults 0 2
/dev/sda2 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/etc/fstab (END)
>> You can edit your /etc/fstab to use drive names instead of UUID and
>> edit /boot/grub/menu.lst as needed, I have done both while using a
>> live cd and GParted will give you the drive info that you need.
>>
>> Make sure you backup the files before you start messing around. :)
>>
>> And I agree, the only time I see where UUID is needed is when you use
>> external USB drives, like on a laptop where you may need extra storage
>> and want a permanent fstab.
> What is the UUID stuff you are talking about?
It's a "Universally Unique Identifier"
http://en.wikipedia.org/wiki/Universally_Unique_Identifier
If you use the command:"blkid" you can find the UUID of your partitions,
in the example below I'm using it to auto-mount two partitions on a
700GB external E-SATA HDD that I added it to fstab.
UUID=83D8-C147 /home/jimmy/1-Windows vfat
uid=1000,gid=1000,auto,rw,users 0 0
UUID=2d07c642-9322-4245-b84e-0ad185e47b9f /home/jimmy/2-Linux ext3
users,atime,auto,rw,nodev,noexec,nosuid 0 0
I hope that helps. :)
--
Jimmy Johnson
Debian GNU/Linux Lenny 64-Bit KDE 3.5.10
Registered Linux User #380263
> What is the UUID stuff you are talking about?
run blkid
also do an update-grub and you will see in grub.cfg() that the UUID is
listed automatically,
You can create LABELs and use that in fstab. LABELS are hand if you
change hardware, so you do not have to adjust hard disk ids based on bus/
position.
> I'm running Lenny (new
> install, not upgrade) and I don't see anything different in my fstab
> than I ever did (other than 'sda' instead of 'hda' since I'm now using
> SATA rather than IDE).
NOTE cp /etc/fstab /etc/fstab-good FIRST
>
> # /etc/fstab: static file system information. #
> # <file system> <mount point> <type> <options> <dump> <pass>
> proc /proc proc defaults 0 0
> /dev/sda3 / ext3 errors=remount-ro 0 1
e2label /dev/sda3 /root
(you can use your own label)
replace above line
LABEL=/root / ext3 errors=remount,ro(?) 0 1
> /dev/sda1 /boot ext3 defaults 0 2
> /dev/sda4 /home ext3 defaults 0 2
I would try this one above first.
> /dev/sda2 none swap sw 0 0
mkswap -G swapona
replace above line with
LABEL=swapona none swap sw 0 0
> /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
> /etc/fstab (END)
It was useful for me as Lenny picked up the fast IDE hard disks on the
PCI plug in card first, instead of those on the motherboard. This was a
relatively easy fix, once I worked out how to label swap.