xfs
[Top] [All Lists]

Re: root mount mislabled..

To: Joseph Southwell <joseph@xxxxxx>
Subject: Re: root mount mislabled..
From: Nathan Straz <nstraz@xxxxxxx>
Date: Tue, 4 Sep 2001 10:38:29 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <CE3977C27DC7CE42A5D4EAC5B8049513B83407@xxxxxxxxxxxxxxx>
Mail-followup-to: Joseph Southwell <joseph@xxxxxx>, linux-xfs@xxxxxxxxxxx
References: <CE3977C27DC7CE42A5D4EAC5B8049513B83407@xxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.3.20i
On Tue, Sep 04, 2001 at 09:24:00AM -0500, Joseph Southwell wrote:
>    I am trying to use xfs as my root partition and it is being
> mislabeled. for instance I installed on /dev/hda3. I setup a smaller
> partition on dev/hda1 with xfs and booted to that partition. The data
> and the size of the root partition indicate that /dev/hda1 is mounted as
> root. however df indicates that /dev/hda3 is mounted as root. 

There are two mounted partitions tables, /etc/mtab and /proc/mounts.
/proc/mounts is what the kernel uses and is always correct.  /etc/mtab
is the user space table and can be wrong.  This usually happens if you
pass a "root=" option to the kernel that differs from what's in
/etc/fstab.  If /proc/mounts has /dev/root use /usr/sbin/rdev to find
out what your real root partition is.  Sometimes is do a `cat
/proc/mounts > /etc/mtab` if the differences get in my way, but I don't
know how safe that is.  
-- 
Nate Straz                                              nstraz@xxxxxxx
sgi, inc                                           http://www.sgi.com/
Linux Test Project                                  http://ltp.sf.net/


<Prev in Thread] Current Thread [Next in Thread>