understanding /etc/fstab and root mounting

Ask questions about Arch Linux ARM. Please search before making a new topic.

understanding /etc/fstab and root mounting

Postby garyj » Mon Nov 07, 2011 7:21 pm

I notice there is no entry in /etc/fstab for the root filesystem on my arch install (GoFlex Home). If I wanted to turn on disk quota, which is usually done by adding usrquota and/or grpquota options to fstab, how would I do that? If I add an entry for the root filesystem, this seems to make it unbootable.
garyj
 
Posts: 7
Joined: Fri Aug 19, 2011 6:17 pm

Re: understanding /etc/fstab and root mounting

Postby hydro » Tue Nov 08, 2011 10:54 am

At least on my DockStar editing /etc/fstab does work.
My root partition has a label "root" as blkid /dev/sdc2 reveals
$this->bbcode_second_pass_code('', '
/dev/sdc2: LABEL="root" UUID=""3a00a73b-ed4d-495f-be88-3dbb42ac6f63 TYPE="ext4"
')
which I use in the /etc/fstab to pass options noatime and nodiratime. I also added usrquota to the home partition now
$this->bbcode_second_pass_code('', '
LABEL=root / ext4 defaults,noatime,nodiratime 0 0
LABEL=boot /boot ext2 defaults,noatime,nodiratime 0 0
LABEL=home /home ext4 defaults,noatime,nodiratime,usrquota 0 0
')
This obviously works, since mount reports
$this->bbcode_second_pass_code('', '
/dev/root on / type ext4 (rw,noatime,nodiratime,user_xattr,acl,barrier=1,data=ordered)
/dev/sdc1 on /boot type ext2 (rw,noatime,nodiratime)
/dev/sdc3 on /home type ext4 (rw,noatime,nodiratime,usrquota)
')
The Arch Boot Process is described here.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany


Return to User Questions

Who is online

Users browsing this forum: No registered users and 10 guests