homepage Welcome to WebmasterWorld Guest from 54.242.126.126
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Fedora 5 user quota
Cary

5+ Year Member



 
Msg#: 3065318 posted 5:04 am on Aug 30, 2006 (gmt 0)

I am new to Linux when I installed my Fedora 5 system so I chose to use the default file/partition structure and I did not apply any quota restriction to the system. Now there are 3 domains running in the system and I would like to apply quota to user accounts which are at /home. I searched around and found that I have to modify the etc/fstab file to add in the line:-
/dev/hdd2 /home ext3 defaults,usrquota,grpquota 1 2

There isn't the /home line so I followed to add the line and rebooted the machine. What happened was that the system could not boot again and I had to use linux rescue to changed back the file.
Firstly, I questioned whether hdd2 is correct but it seems to be ok from the result of running fdisk -l:-

[root@localhost ~]# fdisk -l

Disk /dev/hdd: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 13 104391 83 Linux
/dev/hdd2 14 3738 29921062+ 8e Linux LVM

Disk /dev/sda: 82.3 GB, 82347195904 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 5005 40202631 7 HPFS/NTFS
/dev/sda2 5006 10011 40210695 7 HPFS/NTFS
[root@localhost ~]#

Then I searched the web again and found a page on the web saying that quota applied to an entire partition and it seems that in my system /home is just a directory in the / partition. I also found that it works if I put usrquota,grpquota in the / line but I prefer to apply quota to /home only.

So the problem is what can I do to achieve my purpose?

This is my fstab file:-

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

Thank you.

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved