[ILUG] SCSI devices

Paul Jakma paul at clubi.ie
Thu Jun 15 03:23:26 IST 2000


On Wed, 14 Jun 2000, Fergal Daly wrote:

> plug the disk into a different SCSI card and still have the OS go
> "oh yeah, that's the disk we're calling /dev/twiggy in fstab". A

ext2 has this already: label's and UUID's. See man mke2fs, mount,
uuidgen and tune2fs:

[root at hibernia /proc]# uuidgen 
afb12621-42e3-4fc4-9b0c-dac73a1f7fb5
[root at hibernia /proc]# tune2fs -U \
afb12621-42e3-4fc4-9b0c-dac73a1f7fb5 /dev/Main_VG/test
tune2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
[root at hibernia /proc]# mount \
UUID=afb12621-42e3-4fc4-9b0c-dac73a1f7fb5 /mnt/floppy/
[root at hibernia /proc]# tune2fs -L test /dev/Main_VG/test 
tune2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
[root at hibernia /proc]# mount LABEL=test /mnt/floppy/

and you can then replace the device in /etc/fstab with either
LABEL=... or UUID=....

(this doesn't work for me on LVM devices.. but allegedly it does work
on regular partitions)

regards,
-- 
Paul Jakma	paul at clubi.ie
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
Yesterday I was a dog.  Today I'm a dog.  Tomorrow I'll probably still
be a dog. Sigh!  There's so little hope for advancement.
		-- Snoopy






More information about the ILUG mailing list