LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2009, 03:53 PM   #1
rcmonroig
Member
 
Registered: Mar 2007
Location: Chandler, AZ
Distribution: Fedora 10,12,and 14
Posts: 62
Blog Entries: 1

Rep: Reputation: 15
Question Setting up disk quotas


When I run quotacheck to create aquota.user in the /home directory I get the following message:
[root@frodo ~]# quotacheck -vc /home
quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to journaled quota to avoid running quotacheck after an unclean shutdown.
quotacheck: Cannot remount filesystem mounted on /home read-only so counted values might not be right.
Please stop all programs writing to filesystem or use -m flag to force checking.

my fstab is:
[root@frodo ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Sat Nov 21 07:06:47 2009
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=7c6145e4-a87e-4f90-8d89-4c0b920ae137 / ext3 defaults 1 1
/dev/sda3 /home ext3 defaults,usrquota 0 0
UUID=6b6479c6-3ab6-42f6-ac11-2d80bee57456 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=933ab3f3-bb82-402c-9189-492a85a981df swap swap defaults 0 0


I have the following partitions on my drive:
[root@frodo ~]# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x20b6c1b6

Device Boot Start End Blocks Id System
/dev/sda1 26 2550 20282062+ 83 Linux
/dev/sda2 * 2551 2575 200812+ 83 Linux
/dev/sda3 2576 5176 20892532+ 83 Linux
/dev/sda4 5177 19457 114712132+ 5 Extended
/dev/sda5 5177 5420 1959898+ 82 Linux swap / Solaris

I'm not sure if the problem lies with the way I partitioned my hard drive or how I edited fstab. Can someone help me with this?

Thanks,
Ron
 
Old 12-10-2009, 03:46 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by rcmonroig View Post
When I run quotacheck to create aquota.user in the /home directory I get the following message:
[root@frodo ~]# quotacheck -vc /home
quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to journaled quota to avoid running quotacheck after an unclean shutdown.
quotacheck: Cannot remount filesystem mounted on /home read-only so counted values might not be right.
Please stop all programs writing to filesystem or use -m flag to force checking.

my fstab is:
[root@frodo ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Sat Nov 21 07:06:47 2009
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=7c6145e4-a87e-4f90-8d89-4c0b920ae137 / ext3 defaults 1 1
/dev/sda3 /home ext3 defaults,usrquota 0 0
UUID=6b6479c6-3ab6-42f6-ac11-2d80bee57456 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=933ab3f3-bb82-402c-9189-492a85a981df swap swap defaults 0 0


I have the following partitions on my drive:
[root@frodo ~]# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x20b6c1b6

Device Boot Start End Blocks Id System
/dev/sda1 26 2550 20282062+ 83 Linux
/dev/sda2 * 2551 2575 200812+ 83 Linux
/dev/sda3 2576 5176 20892532+ 83 Linux
/dev/sda4 5177 19457 114712132+ 5 Extended
/dev/sda5 5177 5420 1959898+ 82 Linux swap / Solaris

I'm not sure if the problem lies with the way I partitioned my hard drive or how I edited fstab. Can someone help me with this?

Thanks,
Ron
try adding an -m to your quotacheck command
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
disk quotas shahz Red Hat 4 10-28-2008 02:38 AM
Setting disk quotas in a script JohnE1 Linux - Enterprise 2 06-27-2007 06:05 PM
Quotas: Setting them Swakoo Linux - Newbie 1 10-27-2005 08:59 AM
disk quotas johnnycash Linux - General 1 03-16-2004 09:12 AM
disk quotas skeletal29 Linux - General 1 10-13-2002 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration