Tuesday 26 February 2008

about mount

The programs mount and umount maintain a list of currently mounted file systems in the file /etc/mtab. If no arguments are given tomount, this list is printed.


mount options:
user
Allow an ordinary user to mount the file system. The name of the mounting user is written to mtab so that he can unmount the file system again. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line user,exec,dev,suid).



/etc/fstab
file system table
/etc/mtab
table of mounted file systems
/etc/mtab~
lock file
/etc/mtab.tmp
temporary file
/etc/filesystems
a list of filesystem types
========================
Some time, the mounted device or img can not pass fsck, which is determined by the sixth of /etc/fstab option. / as root should be 1-the first device to mount and check, other device should be 2, while partition or img from other device can be 1 too as start parallelism. If error occurs, the boot will be suspended.

To avoid this, you can mark the sixth option as 0. BUT SOME TIME, for example, if you mount it to /home, while some scripts from /home has been running, the mount will not be done.

1. So keep pass option (sixth option in /etc/fstab) 0, and add it manually to /etc/mtab, for example, "/dev/cobd2 /home ext3 sw 0 0". In this case, no suspend when mounting in the boot process.
2. Alternatively, mount command can be put in /etc/rc.local, same effect with above one.



No comments:

My photo
London, United Kingdom
twitter.com/zhengxin

Facebook & Twitter