Clayton wrote:
I just hate rebooting... it always messed up my mount points... for
some reason I've never bothered to figure out, a couple of my drives
swap around on every reboot... /dev/sde1 and /dev/sdd1 swich around
and it screws everything up (apache etc) until a remount things where
they are supposed to be mounted.
I had that problem too.
On a production server I have two big external USB hard drives which I
use for "hot" backups via rsync.
But on each reboot, the drives would randomly change orders and mount on
the wrong mount points.
The solution for this is to use the UUID of the drive (which is unique
to the drive, I think) rather than the device node.
So in /etc/fstab, I used to have something like:
/dev/sde1 /b reiserfs
defaults 0 0
/dev/sdf1 /b1 ext3
acl,user_xattr 0 0
but of course I couldn't control which drive became sde and which drive
became sdf.
But I looked up the UUID of each filesystem, and now my fstab looks like
this:
UUID=8948fa53-af4f-4db2-b3f7-f256e33ad20e
/b reiserfs defaults 0 0
UUID=98ce791e-93a7-4c84-9652-5d1a1a8c437d
/b1 ext3 acl,user_xattr 0 0
and it works perfectly every time!
To get the UUID, have the (currently assigned) device node (I'll use
/dev/sde1 as an example) and as root do:
(For ext3)
tune2fs -l /dev/sde1
(For reiser - partition must be unmounted first)
reiserfstune /dev/sde1
These printouts will display your filesystems' UUIDs, which you can then
sub in as shown above.
Hope this helps!
Glen
--
Glen Barney
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]