public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] weirdness with the mounting of /
@ 2009-06-12 16:28 Doug Hunley
  2009-06-12 16:41 ` Paul Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: Doug Hunley @ 2009-06-12 16:28 UTC (permalink / raw
  To: gentoo-user

I'm having some weirdness with my '/' mount. Here's the line from /etc/fstab:
douglas ~ # grep 'md3' /etc/fstab
/dev/md3  /  ext4 noatime,journal_checksum,defaults       0   1

Yet, the output of mount shows:
douglas ~ # mount
rootfs on / type rootfs (rw)
/dev/root on / type ext4 (rw,noatime,barrier=1,data=ordered)

As you can see, it doesn't show journal_checksum as being one of the
mount options nor does it show noatime. Why? For that matter, why is
it listed as 'rootfs' *and* '/dev/root' and not '/dev/md3' ?

My grub config:
kernel /boot/vmlinuz-2.6.30-gentoo-r1 root=/dev/md3 rootfstype=ext4

Thanks in advance for cluebatting me.

-- 
Douglas J Hunley - doug@hunley.homeip.net
http://douglasjhunley.com
Twitter: @hunleyd



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] weirdness with the mounting of /
  2009-06-12 16:28 [gentoo-user] weirdness with the mounting of / Doug Hunley
@ 2009-06-12 16:41 ` Paul Hartman
  2009-06-12 16:44   ` [gentoo-user] " Doug Hunley
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Hartman @ 2009-06-12 16:41 UTC (permalink / raw
  To: gentoo-user

On Fri, Jun 12, 2009 at 11:28 AM, Doug Hunley<doug@hunley.homeip.net> wrote:
> I'm having some weirdness with my '/' mount. Here's the line from /etc/fstab:
> douglas ~ # grep 'md3' /etc/fstab
> /dev/md3  /  ext4 noatime,journal_checksum,defaults       0   1
>
> Yet, the output of mount shows:
> douglas ~ # mount
> rootfs on / type rootfs (rw)
> /dev/root on / type ext4 (rw,noatime,barrier=1,data=ordered)
>
> As you can see, it doesn't show journal_checksum as being one of the
> mount options nor does it show noatime. Why? For that matter, why is
> it listed as 'rootfs' *and* '/dev/root' and not '/dev/md3' ?
>
> My grub config:
> kernel /boot/vmlinuz-2.6.30-gentoo-r1 root=/dev/md3 rootfstype=ext4
>
> Thanks in advance for cluebatting me.

I think your root is mounted before fstab comes into play... You may
want to look into the "rootflags" option in your grub kernel
commandline for passing the mount options for your root partition.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user] Re: weirdness with the mounting of /
  2009-06-12 16:41 ` Paul Hartman
@ 2009-06-12 16:44   ` Doug Hunley
  2009-06-12 16:59     ` Nikos Chantziaras
  0 siblings, 1 reply; 4+ messages in thread
From: Doug Hunley @ 2009-06-12 16:44 UTC (permalink / raw
  To: gentoo-user

On Fri, Jun 12, 2009 at 12:41, Paul
Hartman<paul.hartman+gentoo@gmail.com> wrote:
>
> I think your root is mounted before fstab comes into play... You may
> want to look into the "rootflags" option in your grub kernel
> commandline for passing the mount options for your root partition.
>

That jives with what I'm (slowly) finding on Google as well. It seems
the kernel uses /dev/root when the rootfs is RO. Apparently an initrd
would solve this. Grr...


-- 
Douglas J Hunley - doug@hunley.homeip.net
http://douglasjhunley.com
Twitter: @hunleyd



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user]  Re: weirdness with the mounting of /
  2009-06-12 16:44   ` [gentoo-user] " Doug Hunley
@ 2009-06-12 16:59     ` Nikos Chantziaras
  0 siblings, 0 replies; 4+ messages in thread
From: Nikos Chantziaras @ 2009-06-12 16:59 UTC (permalink / raw
  To: gentoo-user

On 06/12/2009 07:44 PM, Doug Hunley wrote:
> On Fri, Jun 12, 2009 at 12:41, Paul
> Hartman<paul.hartman+gentoo@gmail.com>  wrote:
>> I think your root is mounted before fstab comes into play... You may
>> want to look into the "rootflags" option in your grub kernel
>> commandline for passing the mount options for your root partition.
>>
>
> That jives with what I'm (slowly) finding on Google as well. It seems
> the kernel uses /dev/root when the rootfs is RO. Apparently an initrd
> would solve this. Grr...

It is remounted rw after the fschk using fstab options.  If you change 
the options, you'll see they will apply (why would noatime apply otherwise.)

You don't need an initrd.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-12 17:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-12 16:28 [gentoo-user] weirdness with the mounting of / Doug Hunley
2009-06-12 16:41 ` Paul Hartman
2009-06-12 16:44   ` [gentoo-user] " Doug Hunley
2009-06-12 16:59     ` Nikos Chantziaras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox