public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] /etc/mtab
@ 2012-02-05 18:23 Grant
  2012-02-05 18:31 ` Michael Hampicke
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Grant @ 2012-02-05 18:23 UTC (permalink / raw
  To: Gentoo mailing list

I was just going over the Baselayout and OpenRC Migration Guide:

http://www.gentoo.org/doc/en/openrc-migration.xml

and I'm not sure how to make sure my /etc/mtab is set up according to
the instructions:

"Previously, the initial rootfs entry was removed from /etc/mtab, and
only the real root / entry was present. The duplicate rootfs item was
actually added back during shutdown. In OpenRC, both entries must be
present for full support of initramfs and tmpfs-on-root. This also
means that less writing is required during shutdown."

My systems have different /etc/mtab files but here is one:

rootfs / rootfs rw 0 0
/dev/root / ext3 rw,noatime,errors=continue,barrier=1,data=ordered 0 0
proc /proc proc rw,relatime 0 0
rc-svcdir /lib/rc/init.d tmpfs
rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
usbfs /proc/bus/usb usbfs rw,noexec,nosuid,devmode=0664,devgid=85 0 0

Should I change anything?

- Grant



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

* Re: [gentoo-user] /etc/mtab
  2012-02-05 18:23 [gentoo-user] /etc/mtab Grant
@ 2012-02-05 18:31 ` Michael Hampicke
  2012-02-05 18:35 ` Dale
  2012-02-05 19:47 ` Alan McKinnon
  2 siblings, 0 replies; 5+ messages in thread
From: Michael Hampicke @ 2012-02-05 18:31 UTC (permalink / raw
  To: gentoo-user



Am 05.02.2012 19:23, schrieb Grant:
> I was just going over the Baselayout and OpenRC Migration Guide:
> 
> http://www.gentoo.org/doc/en/openrc-migration.xml
> 
> and I'm not sure how to make sure my /etc/mtab is set up according to
> the instructions:
> 
> "Previously, the initial rootfs entry was removed from /etc/mtab, and
> only the real root / entry was present. The duplicate rootfs item was
> actually added back during shutdown. In OpenRC, both entries must be
> present for full support of initramfs and tmpfs-on-root. This also
> means that less writing is required during shutdown."
> 
> My systems have different /etc/mtab files but here is one:
> 
> rootfs / rootfs rw 0 0
> /dev/root / ext3 rw,noatime,errors=continue,barrier=1,data=ordered 0 0
> proc /proc proc rw,relatime 0 0
> rc-svcdir /lib/rc/init.d tmpfs
> rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755 0 0
> sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
> udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
> devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
> shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
> usbfs /proc/bus/usb usbfs rw,noexec,nosuid,devmode=0664,devgid=85 0 0
> 
> Should I change anything?
> 
> - Grant
> 

/etc/mtab just contains whats in /proc/mounts - mtab will be set up
automatically, you don't have to do anything.



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

* Re: [gentoo-user] /etc/mtab
  2012-02-05 18:23 [gentoo-user] /etc/mtab Grant
  2012-02-05 18:31 ` Michael Hampicke
@ 2012-02-05 18:35 ` Dale
  2012-02-05 19:47 ` Alan McKinnon
  2 siblings, 0 replies; 5+ messages in thread
From: Dale @ 2012-02-05 18:35 UTC (permalink / raw
  To: gentoo-user

Grant wrote:
> I was just going over the Baselayout and OpenRC Migration Guide:
> 
> http://www.gentoo.org/doc/en/openrc-migration.xml
> 
> and I'm not sure how to make sure my /etc/mtab is set up according to
> the instructions:
> 
> "Previously, the initial rootfs entry was removed from /etc/mtab, and
> only the real root / entry was present. The duplicate rootfs item was
> actually added back during shutdown. In OpenRC, both entries must be
> present for full support of initramfs and tmpfs-on-root. This also
> means that less writing is required during shutdown."
> 
> My systems have different /etc/mtab files but here is one:
> 
> rootfs / rootfs rw 0 0
> /dev/root / ext3 rw,noatime,errors=continue,barrier=1,data=ordered 0 0
> proc /proc proc rw,relatime 0 0
> rc-svcdir /lib/rc/init.d tmpfs
> rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755 0 0
> sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
> udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
> devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
> shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
> usbfs /proc/bus/usb usbfs rw,noexec,nosuid,devmode=0664,devgid=85 0 0
> 
> Should I change anything?
> 
> - Grant
> 
> 


The system should take care of mtab.  I don't think use mortals are
supposed to touch mtab.  Do you mean fstab?

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



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

* Re: [gentoo-user] /etc/mtab
  2012-02-05 18:23 [gentoo-user] /etc/mtab Grant
  2012-02-05 18:31 ` Michael Hampicke
  2012-02-05 18:35 ` Dale
@ 2012-02-05 19:47 ` Alan McKinnon
  2012-02-06 18:13   ` Grant
  2 siblings, 1 reply; 5+ messages in thread
From: Alan McKinnon @ 2012-02-05 19:47 UTC (permalink / raw
  To: gentoo-user

On Sun, 5 Feb 2012 10:23:56 -0800
Grant <emailgrant@gmail.com> wrote:

> I was just going over the Baselayout and OpenRC Migration Guide:
> 
> http://www.gentoo.org/doc/en/openrc-migration.xml
> 
> and I'm not sure how to make sure my /etc/mtab is set up according to
> the instructions:
> 
> "Previously, the initial rootfs entry was removed from /etc/mtab, and
> only the real root / entry was present. The duplicate rootfs item was
> actually added back during shutdown. In OpenRC, both entries must be
> present for full support of initramfs and tmpfs-on-root. This also
> means that less writing is required during shutdown."
> 
> My systems have different /etc/mtab files but here is one:
> 
> rootfs / rootfs rw 0 0
> /dev/root / ext3 rw,noatime,errors=continue,barrier=1,data=ordered 0 0
> proc /proc proc rw,relatime 0 0
> rc-svcdir /lib/rc/init.d tmpfs
> rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755 0 0
> sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
> udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
> devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
> shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
> usbfs /proc/bus/usb usbfs rw,noexec,nosuid,devmode=0664,devgid=85 0 0
> 
> Should I change anything?

I don't see a problem. The portion you quoted says exactly what mtab
should contain, and your mtab does contain it.

Your mtab looks correct to me. In what way do you believe that it is
not?

-- 
Alan McKinnnon
alan.mckinnon@gmail.com




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

* Re: [gentoo-user] /etc/mtab
  2012-02-05 19:47 ` Alan McKinnon
@ 2012-02-06 18:13   ` Grant
  0 siblings, 0 replies; 5+ messages in thread
From: Grant @ 2012-02-06 18:13 UTC (permalink / raw
  To: gentoo-user

>> I was just going over the Baselayout and OpenRC Migration Guide:
>>
>> http://www.gentoo.org/doc/en/openrc-migration.xml
>>
>> and I'm not sure how to make sure my /etc/mtab is set up according to
>> the instructions:
>>
>> "Previously, the initial rootfs entry was removed from /etc/mtab, and
>> only the real root / entry was present. The duplicate rootfs item was
>> actually added back during shutdown. In OpenRC, both entries must be
>> present for full support of initramfs and tmpfs-on-root. This also
>> means that less writing is required during shutdown."
>>
>> My systems have different /etc/mtab files but here is one:
>>
>> rootfs / rootfs rw 0 0
>> /dev/root / ext3 rw,noatime,errors=continue,barrier=1,data=ordered 0 0
>> proc /proc proc rw,relatime 0 0
>> rc-svcdir /lib/rc/init.d tmpfs
>> rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755 0 0
>> sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
>> udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
>> devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
>> shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
>> usbfs /proc/bus/usb usbfs rw,noexec,nosuid,devmode=0664,devgid=85 0 0
>>
>> Should I change anything?
>
> I don't see a problem. The portion you quoted says exactly what mtab
> should contain, and your mtab does contain it.
>
> Your mtab looks correct to me. In what way do you believe that it is
> not?

I just didn't understand the part about mtab in the Baselayout and
OpenRC Migration Guide:

http://www.gentoo.org/doc/en/openrc-migration.xml

Thanks for checking it for me.

- Grant



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

end of thread, other threads:[~2012-02-06 18:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-05 18:23 [gentoo-user] /etc/mtab Grant
2012-02-05 18:31 ` Michael Hampicke
2012-02-05 18:35 ` Dale
2012-02-05 19:47 ` Alan McKinnon
2012-02-06 18:13   ` Grant

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