[H-GEN] RE: the order hdd's are mounted

James Mcpherson j.mcpherson at mailbox.uq.edu.au
Thu Jun 11 20:09:53 EDT 1998


On Fri, 12 Jun 1998, Michael wrote:
> I have been following the emails about how to partition your hard drive
> correctly.. and i have decided to make a seperate partition for /usr /tmp
> /var /home and /.
> But for some reason they get mounted the wrong way up  like:
> /dev/hdb8              54410    8970    42631     17%   /
> /dev/hdb12            209960     210   198908      0%   /home
> /dev/hdb11            396500    4606   371413      1%   /var
> /dev/hdb10           1181123  149344   970734     13%   /usr
> /dev/hdb9             303251      21   287569      0%   /tmp
> The fstab contents are:
> /dev/hdb8       /        ext2        defaults   1   1
> /dev/hdb9       /tmp        ext2        defaults   1   1
> /dev/hdb10       /usr        ext2        defaults   1   1
> /dev/hdb11       /var        ext2        defaults   1   1
> /dev/hdb12       /home        ext2        defaults   1   1
> 
> How can i get the hard drives to be mounted in the order i want ie
> hdb9,10,11,12?  Also being a newbie how can i get /usr mounted read only?

Michael, they _are_ mounted in the order your /etc/fstab specified. It's 
just that mount (the program) is printing them in the alphabetical order
of where they are mounted. I don't think there is a way of getting around
this at all, unless maybe you want to hack the source ;)

If you look at the partition names on the left and match them with the
mount-points on the right, you get

> /dev/hdb8   /
> /dev/hdb12  /home
> /dev/hdb11  /var
> /dev/hdb10  /usr
> /dev/hdb9   /tmp

which is just what you specified.

cheers,
jcm
libBofh
-- 
 I do not speak for the University of Queensland or the University Library
J.McPherson at mailbox.uq.edu..au   | this space _not_ for rent. 
j.mcpherson at library.uq.edu..au   | remove erroneous char to reply properly


----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe



More information about the General mailing list