fstab and UUID

Kernels & Hardware, configuring network, installing services

fstab and UUID

Postby JohnnyBeGood » 2011-02-07 08:31

Hi,

Just installed 6.0 and have trouble setting up these steps:

I added ,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 to the partition with the mount point /):
now it looks like this

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=76aa67c7-76c4-40b1-bdef-ef27ad6e0d4d / ext3 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1
# swap was on /dev/sda5 during installation
UUID=a1be961d-3203-43bf-8237-9d08bcb16a32 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/sdc1 /media/usb0 auto rw,user,noauto 0 0



After running these commands
touch /aquota.user /aquota.group
chmod 600 /aquota.*
mount -o remount /
and try this


root@linux:~# quotacheck -avugm
quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Cannot save quota settings...
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Cannot save quota settings...
root@linux:~# quotaon -avug
quotaon: Cannot find quota file on / [/dev/disk/by-uuid/76aa67c7-76c4-40b1-bdef-ef27ad6e0d4d] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/disk/by-uuid/76aa67c7-76c4-40b1-bdef-ef27ad6e0d4d] to turn quotas on/off.
root@linux:~#



Why is this?

Thanks in advance!
JohnnyBeGood
 
Posts: 11
Joined: 2011-01-13 07:06

Re: fstab and UUID

Postby llivv » 2011-02-07 08:47

HELLO
read the manual

set defaults than check you options one by one

don't expect us to do your work for you..
in the kitchen with Julia ....
[...]
Get on the D bus to B Can ....
[...]
User avatar
llivv
 
Posts: 5539
Joined: 2007-02-14 18:10
Location: will O' the tree hug

Re: fstab and UUID

Postby JohnnyBeGood » 2011-02-07 23:22

Wow, how does your reply help me. I already spent time reading and can't figure it out. So you never ask a questions? do people tell you read the manual?
JohnnyBeGood
 
Posts: 11
Joined: 2011-01-13 07:06

Re: fstab and UUID

Postby michapma » 2011-02-09 15:48

Looks like you're following this:
http://www.howtoforge.com/how-to-set-up ... bian-lenny
...which is for Lenny. Have you checked the documentation to see what might have changed in the version in squeeze?

You might also check out some other guides for further steps. For instance:
http://www.linuxhomenetworking.com/wiki ... ith_Quotas
Editing the /etc/fstab file and remounting the file system only alerted Linux to the fact that the filesystem has quota capabilities. You have to generate a quota table, separate from the aquota files, that lists all the current allocations for each user on the file system.... Be prepared: You'll get an error the first time you enter the command, because Linux will realize that the aquota file wasn't created using one of the quota commands


Hope it helps
User avatar
michapma
 
Posts: 444
Joined: 2008-05-04 20:49
Location: to the left of Zurich

Re: fstab and UUID

Postby pabloncho » 2011-03-31 20:01

The Solution it´s simple:

1) modprobe quota_v2 and check if the module was loaded ( lsmod |grep quota )

2) echo 'quota_v2' >> /etc/modules

3) delete the files previously created ( aquota.group aquota.user )

4) quotacheck -avugm
quotaon -avug

and that's All

Regards
Pablo :mrgreen:
pabloncho
 
Posts: 1
Joined: 2011-03-31 19:55

Re: fstab and UUID

Postby JohnnyBeGood » 2011-03-31 22:02

Thanks!
JohnnyBeGood
 
Posts: 11
Joined: 2011-01-13 07:06


Return to System configuration

Who is online

Users browsing this forum: izar and 13 guests

fashionable