Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

fstab and UUID

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
JohnnyBeGood
Posts: 13
Joined: 2011-01-13 07:06

fstab and UUID

#1 Post by JohnnyBeGood »

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!

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: fstab and UUID

#2 Post by llivv »

HELLO
read the manual

set defaults than check you options one by one

don't expect us to do your work for you..
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

JohnnyBeGood
Posts: 13
Joined: 2011-01-13 07:06

Re: fstab and UUID

#3 Post by JohnnyBeGood »

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?

User avatar
michapma
Posts: 544
Joined: 2008-05-04 20:49
Location: Prague

Re: fstab and UUID

#4 Post by michapma »

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

pabloncho
Posts: 1
Joined: 2011-03-31 19:55

Re: fstab and UUID

#5 Post by pabloncho »

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:

JohnnyBeGood
Posts: 13
Joined: 2011-01-13 07:06

Re: fstab and UUID

#6 Post by JohnnyBeGood »

Thanks!

Post Reply