You are not logged in.

#1 2006-07-13 07:57:58

mdv
Member
From: Poland
Registered: 2005-04-09
Posts: 145

udev restart and /etc/mtab

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

#2 2006-07-13 23:30:19

petebull
Member
Registered: 2006-06-19
Posts: 4

Re: udev restart and /etc/mtab

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

#3 2006-07-14 08:13:50

mdv
Member
From: Poland
Registered: 2005-04-09
Posts: 145

Re: udev restart and /etc/mtab

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

Board footer

Powered by FluxBB