Sunday 30 December 2007

Mount Error In mtab

On boot, after a clean install of Mepis 7.0, Linux will throw up a error message of....

mount: according to mtab, sysfs is already mounted on /sys


To remedy, remove the sections in the fstab text file that are prefixed with "none", replacing them with the duplicate, complete entries from mtab. Save and reboot.

For example:

After a clean install, /etc/fstab will read as.....

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda5 / ext3 defaults,noatime 1 1
/dev/sda6 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
/dev/sda7 /home auto defaults,noatime 1 2
# Dynamic entries below
/dev/sda1 /mnt/sda1 ntfs-3g noauto,users 0 0
/dev/sda2 /mnt/sda2 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/sda3 /mnt/sda3 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/scd0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0


Remove the values preceded with the word "none" and replace them with their mtab equivalents, as found in the /etc/mtab text file.

/dev/sda5 / ext3 rw,noatime 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
procbususb /proc/bus/usb usbfs rw 0 0
udev /dev tmpfs rw,mode=0755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
shmfs /lib/init/rw/splashy tmpfs rw 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
/dev/sda7 /home ext3 rw,noatime 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0


The resulting file should read as:

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda5 / ext3 defaults,noatime 1 1
/dev/sda6 swap swap sw,pri=1 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
procbususb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
/dev/sda7 /home auto defaults,noatime 1 2
# Dynamic entries below
/dev/sda1 /mnt/sda1 ntfs-3g noauto,users 0 0
/dev/sda2 /mnt/sda2 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/sda3 /mnt/sda3 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/scd0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0

No comments:

Post a Comment