You are not logged in.
Pages: 1
hi,
After I restart udev (/etc/start_udev) my /etc/mtab file contains only this
# cat /etc/mtab
none /dev/pts devpts rw 0 0
none /dev/shm tmpfs rw 0 0
What can I do to have all my mounted filesystems in /etc/mtab?
Offline
cut -d ' ' -f2 < /proc/mounts | xargs -n 1 echo mount -o remount
mount -o remount /
mount -o remount /dev
mount -o remount /
mount -o remount /dev
mount -o remount /proc
mount -o remount /sys
mount -o remount /proc/bus/usb
mount -o remount /dev/pts
mount -o remount /dev/shm
mount -o remount /home
drop the echo and you're ready2go
Offline
It desn't work. Even if I simply mount, the filesystem fails to appear in mtab:
[root@claudius ~]# cat /etc/mtab
none /dev/pts devpts rw 0 0
none /dev/shm tmpfs rw 0 0
/dev/sdb1 /mnt/usb1 vfat rw,noexec,nodev,sync,dirsync,noatime,dmask=000,fmask=111 0 0
[root@claudius ~]# mount -o remount /
[root@claudius ~]# cat /etc/mtab
none /dev/pts devpts rw 0 0
none /dev/shm tmpfs rw 0 0
/dev/sdb1 /mnt/usb1 vfat rw,noexec,nodev,sync,dirsync,noatime,dmask=000,fmask=111 0 0
[root@claudius ~]#
Offline
Pages: 1