]>
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
25 # Remove fsck-related file system watermarks.
26 rm -f /fastboot
/forcefsck
28 boot_mesg
"Recording existing mounts in /etc/mtab..."
30 mount
-f / || failed
=1
31 mount
-f /proc || failed
=1
32 mount
-f /sys || failed
=1
36 # This will mount all filesystems that do not have _netdev in
37 # their option list. _netdev denotes a network filesystem.
38 boot_mesg
"Mounting remaining file systems..."
39 mount
-a -O no_netdev
&>/dev
/null
44 boot_mesg
"Unmounting all other currently mounted file systems..."
45 umount
-a -d -r &>/dev
/null
50 echo "Usage: ${0} {start|stop}"
55 # End $rc_base/init.d/mountfs