disks renamed in 8.04

Oliver Grawert ogra at ubuntu.com
Sun Apr 27 10:14:34 UTC 2008


hi,
Am Freitag, den 25.04.2008, 21:27 +0100 schrieb R Kimber:
> Is this new assignment permanent?  Can I rely on it being /dev/sdd1, as
> it now is, from reboot to reboot?
no, it isnt, the linux kernel uses partition UUIDs by default for
identifying devices now, the /dev/sddX and /dev/hddX devices can change
all the time, use a UUID entry in your fstab to identify the drive. this
ID stamp gets written at formatting time and will only change if you
change the formatting of your partition. to get the UUID of a partition
use the command:

blkid <partition name>

where partition name is /dev/sddX or hddX ...

in your fstab have a line like (indeed adjust the filesystem if you dont
use ext3):

UUID=f8c42a53-f50b-4d40-a56f-d1463ba0e822 /backups ext3 defaults 0 0

with the UUID output the first command gave you.

while gvfs/nautilus shows labels on the desktop if they are available,
using labels is not the best idea in an fstab. 
your label might be "backups" and guess the USB key your friend gave you
yesterday with the cool new holiday photos you want to copy has the same
label.... will be fun if your backup scrpts run overnight while the key
is plugged in and overwrite all the stuff of your friend :)

ciao
	oli 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080427/f79bc158/attachment.sig>


More information about the ubuntu-users mailing list