LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-29-2003, 06:16 PM   #1
elconde
Member
 
Registered: Sep 2001
Location: Cherry Hill, NJ
Distribution: Gentoo baby!
Posts: 67

Rep: Reputation: 15
Question rootfs is mounted twice!


I type:

df

and it spits this out:
Code:
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                 5036316   3662800   1117684  77% /
/dev/root              5036316   3662800   1117684  77% /
/dev/hda1                15522      6066      8655  42% /boot
/dev/hda6                46636      4338     39890  10% /tmp
/dev/hda10             9242400   5118304   3654600  59% /home
Yo! Why is my root partition mounted twice?
And why doesn't it say /dev/hda9 instead of /dev/root or rootfs?

I'm using devfsd if that's important.
 
Old 10-29-2003, 09:36 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
It sort of looks like you have /etc/mtab linked to /proc/mounts

That's not the way it should be in my opinion.


david@slacker:~$ cat /etc/mtab
/dev/hda2 / ext3 rw 0 0
none /proc proc rw 0 0


david@slacker:~$ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw 0 0
none /dev devfs rw 0 0
none /proc proc rw 0 0

Last edited by DavidPhillips; 10-29-2003 at 10:14 PM.
 
Old 10-29-2003, 09:41 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
root@slacker:~# mv /etc/mtab /etc/mtab2
root@slacker:~# ln -s /proc/mounts /etc/mtab

david@slacker:~$ df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 5928940 4929216 693688 88% /
/dev/root 5928940 4929216 693688 88% /

root@slacker:~# mv /etc/mtab2 /etc/mtab

david@slacker:~$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda2 5928940 4929216 693688 88% /






It should be noted that `mount` maintains both /proc/mounts and /etc/mtab. It is ok to make it the way you have it to some extent. It will cause some inconvenience and should be seperate files as they are not supposed to be identical.

Last edited by DavidPhillips; 10-29-2003 at 10:11 PM.
 
Old 11-04-2003, 08:37 PM   #4
elconde
Member
 
Registered: Sep 2001
Location: Cherry Hill, NJ
Distribution: Gentoo baby!
Posts: 67

Original Poster
Rep: Reputation: 15
Sweet! I did this:

mv /etc/mtab /etc/mtab.old
cp /etc/mtab.old /etc/mtab
emacs /etc/mtab

I then deleted one line and fixed the other line to say /dev/hda9 like I wanted

DON'T FORGET:
rm /etc/mtab~

I forgot to do this and everything went haywire. Stupid emacs!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic :VFS :unable to mount rootfs 16:02 abirami Linux - Software 5 01-02-2006 11:01 PM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
why ext3 change to rootfs ?? jiawj Red Hat 5 02-02-2005 03:10 AM
NFS: a mounted to b, b mounted to c, c can't read a? Steve Cronje Linux - Networking 9 10-25-2004 09:51 AM
lilo.conf rootfs DavidPhillips Linux - General 6 03-25-2003 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration