View previous topic :: View next topic |
Author |
Message |
kamagurka Veteran
Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Fri Oct 07, 2005 10:08 am Post subject: [solved] Rebuild mtab? Where are my mounts? |
|
|
For some reason, my mtab is nearly empty; everything still kinda works, but I'm worried when this will stop.
Here's what I see:
Code: | └─# cat /etc/mtab
none /proc proc rw 0 0
none /dev/shm tmpfs rw 0 0 |
Code: | └─# df
Dateisystem Größe Benut Verf Ben% Eingehängt auf
none 252M 0 252M 0% /dev/shm |
All my drives are mounted, though, since I am working on them. Can I rebuild mtab somehow without having to stop using the harddrives so I can umount/remount them? _________________ If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Last edited by kamagurka on Fri Oct 07, 2005 10:27 am; edited 1 time in total |
|
Back to top |
|
|
Rene-dev Apprentice
Joined: 22 Jan 2005 Posts: 163 Location: Münster, Germany
|
Posted: Fri Oct 07, 2005 10:09 am Post subject: |
|
|
cp proc/mounts /etc/mtab
also type
Code: |
rene-dev ~ # mount
/dev/hda1 on / type reiserfs (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw)
192.168.0.221:/usr/portage/distfiles/ on /usr/portage/distfiles type nfs (rw,addr=192.168.0.221,addr=192.168.0.221)
192.168.0.221:/var/www/localhost/htdocs/binpkgs/i686 on /mnt/test type nfs (rw,addr=192.168.0.221,addr=192.168.0.221)
|
Last edited by Rene-dev on Fri Oct 07, 2005 10:11 am; edited 1 time in total |
|
Back to top |
|
|
ecosta Guru
Joined: 09 May 2003 Posts: 477 Location: Brussels,BE
|
Posted: Fri Oct 07, 2005 10:10 am Post subject: |
|
|
try the mount command. It will show what is mounted where.
You should be able to rewrite your fstab this way.
Code: | $ mount
/dev/hda2 on / type ext3 (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
cachedir on /lib/splash/cache type tmpfs (rw)
none on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw,devmode=0664,devgid=85)
|
Ed. _________________ Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB. |
|
Back to top |
|
|
kamagurka Veteran
Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Fri Oct 07, 2005 10:25 am Post subject: |
|
|
Actually, the mount command sources mtab, so that doesn't help.
Copying /proc/mount solved it. _________________ If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word |
|
Back to top |
|
|
ecosta Guru
Joined: 09 May 2003 Posts: 477 Location: Brussels,BE
|
Posted: Fri Oct 07, 2005 11:18 am Post subject: |
|
|
Thanks for leting me know. The Gentoo handbook mentioned /proc/mounts so I should have remembered _________________ Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|