|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
in my Linux Fedora Enterprise, the df shows Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 190361300 5441648 175249816 4% / /dev/sda1 101086 10049 85818 11% /boot none 448464 0 448464 0% /dev/shm ##no info about /home; /tmp; /var; /usr,etc and cat /etc/fstab # This file is edited by fstab-sync - see 'man fstab-sync' for details /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 /dev/hdd /media/cdrom auto pamconsole,fscontext=system_u bject_r:removable_t ,exec,noauto,managed0 0 /dev/hdc /media/cdrecorder auto pamconsole,fscontext=system_u bject_r:removable_t ,exec,noauto,managed0 0 I'm wondering, 1. how to know which disk the home, usr reside in? 2. how to set/enable disk quotas for /home, /usr 3. if user me has quota limiation, but me mv files into disk which not quota enabled, did that mean me still have un-limit quota usage -- Thanks John Toronto |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
john_woo@canada.com wrote:
> Hi, > > in my Linux Fedora Enterprise, the df shows > > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/mapper/VolGroup00-LogVol00 > 190361300 5441648 175249816 4% / > /dev/sda1 101086 10049 85818 11% /boot > none 448464 0 448464 0% /dev/shm > > ##no info about /home; /tmp; /var; /usr,etc > > and > > cat /etc/fstab > # This file is edited by fstab-sync - see 'man fstab-sync' for details > /dev/VolGroup00/LogVol00 / ext3 defaults > 1 1 > LABEL=/boot /boot ext3 defaults > 1 2 > none /dev/pts devpts gid=5,mode=620 > 0 0 > none /dev/shm tmpfs defaults > 0 0 > none /proc proc defaults > 0 0 > none /sys sysfs defaults > 0 0 > /dev/VolGroup00/LogVol01 swap swap defaults > 0 0 > /dev/hdd /media/cdrom auto > pamconsole,fscontext=system_u bject_r:removable_t ,exec,noauto,managed> 0 0 > /dev/hdc /media/cdrecorder auto > pamconsole,fscontext=system_u bject_r:removable_t ,exec,noauto,managed> 0 0 > > > I'm wondering, > > 1. how to know which disk the home, usr reside in? > 2. how to set/enable disk quotas for /home, /usr > 3. if user me has quota limiation, but me mv files into disk which not > quota enabled, did that mean me still have un-limit quota usage > This has nothing to do with the shell. This is an admin question, crossposting to comp.unix.admin and setting followups there. 1. You have a unitary file system, which is both a common and reasonable setup for a home system. You don't have a separate filesystem for /home, /tmp, /var, /usr or just about anything else. It's all in /, except for a small auxiliary partition /boot which holds your kernel and a few files associated with your bootloader. 2. You can't set separate quotas for /home and /usr because they aren't separate filesystems on your system. You can only set a quota for /, which will be a quota for your whole system. 3. If you move files from a filesystem with quotas to one without, the file will not count against the quota on the old filesystem (as it no longer on the old filesystem) nor will it count against a quota on the new filesystem (as the new filesystem has no quota for it to count against). Quotas are simply applied to your usage on your filesystems; they don't follow files around. This, of course, is not much of a concern on your system, since you only have one filesystem, so the user is not going to moving files from one filesystem to another. BTW, I notice your filesystem is only 4% full. With 190 gigs of disk, you probably won't be running out anytime soon... Chris Mattern |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On 24 Aug 2006 10:48:57 -0700, john_woo@canada.com
<john_woo@canada.com> wrote: > Hi, > > in my Linux Fedora Enterprise, the df shows > > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/mapper/VolGroup00-LogVol00 > 190361300 5441648 175249816 4% / > /dev/sda1 101086 10049 85818 11% /boot > none 448464 0 448464 0% /dev/shm > > ##no info about /home; /tmp; /var; /usr,etc > df with no arguments shows the free space for each mounted filesystem. Free space in a filesystem does not belong to a particular directory. > > I'm wondering, > > 1. how to know which disk the home, usr reside in? df /home df /usr -- Don't kid yourself. Little is relevant, and nothing lasts forever. |
|
![]() |
| Outils de la discussion | |
|
|