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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!