Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Rebuild mtab? Where are my mounts?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Fri Oct 07, 2005 10:08 am    Post subject: [solved] Rebuild mtab? Where are my mounts? Reply with quote

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
View user's profile Send private message
Rene-dev
Apprentice
Apprentice


Joined: 22 Jan 2005
Posts: 163
Location: Münster, Germany

PostPosted: Fri Oct 07, 2005 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Fri Oct 07, 2005 10:10 am    Post subject: Reply with quote

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
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Fri Oct 07, 2005 10:25 am    Post subject: Reply with quote

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
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Fri Oct 07, 2005 11:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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