]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/mountfs
2 ########################################################################
3 # Begin $rc_base/init.d/mountfs
5 # Description : File System Mount Script
7 # Authors : Gerard Beekmans - gerard@linuxfromscratch.org
13 ########################################################################
20 boot_mesg
"Remounting root file system in read-write mode..."
21 mount
-n -o remount
,rw
/ &>/dev
/null
24 # Remove fsck-related file system watermarks.
25 rm -f /fastboot
/forcefsck
27 boot_mesg
"Recording existing mounts in /etc/mtab..."
29 mount
-f / || failed
=1
30 mount
-f /proc || failed
=1
31 mount
-f /sys || failed
=1
35 # This will mount all filesystems that do not have _netdev in
36 # their option list. _netdev denotes a network filesystem.
37 boot_mesg
"Mounting remaining file systems..."
38 mount
-a -O no_netdev
&>/dev
/null
43 boot_mesg
"Unmounting all other currently mounted file systems..."
44 umount
-a -d -r &>/dev
/null
49 echo "Usage: ${0} {start|stop}"
54 # End $rc_base/init.d/mountfs