[linux-l] Ext2fs Quotas

Raphael Bugajewski alpha13 at born.eu.org
Mo Sep 23 17:25:46 CEST 2002


Hallo,

da ich mit ReiserFS und Quota Probleme hatte und mir jeder gesagt hat,
dass diese Konstellation auch nicht richtig zusammen laeuft, habe ich
kurzerhand ein Backup gemacht, danach mkfs.ext2 /dev/hda1 und gehofft,
dass es mit dem alten, guten und stabilen Ext2fs laufen wuerde... das
war ein kleiner Fehler. Ich habe laut Quota mini-HOWTO
(http://www.tldp.org/HOWTO/mini/Quota.html) die dreizehn Kernel
Patches in (hoffentlich) richtiger Reihenfolge angewendet (zumindest
kam kein einziger Fehler) und den 2.4.19'er Kernel kompiliert. Nach
einem Reboot dachte ich, dass alles laufen wuerde. Zuerst kam aber die
Fehlermeldung:

root at host:/# quotacheck -avug
quotacheck: Can't stat() mounted device /dev/root: No such file or directory
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.

Naja, ich habe mir gedacht, dass ich einfach einen Link mit folgendem
Befehl erstellen kann:

root at host:/# ln -s /dev/sda6 /dev/root

Klappt alles ganz wunderbar, jetzt kommt wiederum die Meldung:

root at born:/# quotacheck -avug
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.

Dem bin ich nachgegangen und die Konfigration scheint richtig zu sein.
Hier die komplette /etc/fstab:

root at host:/# cat /etc/fstab
# Begin /etc/fstab

/dev/sda5   /boot          ext2      noatime                  1 2
/dev/sda6   /              reiserfs  noatime,notail           0 0
/dev/sda7   /var           reiserfs  noatime,notail           0 0
/dev/sda8   /tmp           reiserfs  noatime,notail           0 0
/dev/sda9   /usr           reiserfs  noatime,notail           0 0
/dev/sda10  swap           swap      pri=1                    0 0
/dev/hda1   /home          ext2      defaults,usrquota        1 1
/dev/hdb    /cdrom         auto      ro,noauto,exec           0 0
/dev/fd0    /floppy        auto      noauto                   0 0

proc        /proc          proc      defaults                 0 0
devpts      /dev/pts       devpts    gid=4,mode=620           0 0

# End /etc/fstab

Sieht meiner Meinung also auch O.K. aus. Das Problem habe ich dann
aber erkannt, als ich folgendes gemacht habe:

root at host:/# mount
rootfs on / type rootfs (rw)
/dev/root on / type reiserfs (rw,noatime)
proc on /proc type proc (rw)
/dev/sda5 on /boot type ext2 (rw,noatime)
/dev/sda7 on /var type reiserfs (rw,noatime)
/dev/sda8 on /tmp type reiserfs (rw,noatime)
/dev/sda9 on /usr type reiserfs (rw,noatime)
/dev/hda1 on /home type ext2 (rw)
devpts on /dev/pts type devpts (rw)

Bei hda1 muesste die Option usrquota definitiv aufgefuehrt sein. Nun
weiss ich leider nicht, wo ich hier ansetzen kann, moechte das Problem
aber moeglichst schnell beheben. Fuer jede Hilfe waere ich sehr
dankbar. Falls noch Informationsbedarf besteht bitte nochmals
nachfragen, ich weiss naemlich nicht, ob noch irgendwelche anderen
Sachen damit zusammenhaengen. Ach ja, das waere vielleicht auch nicht
schlecht:

root at host:/# quota -V
Quota utilities version 3.07.
Compiled with RPC and EXT2_DIRECT
Bugs to mvw at planets.elm.net, jack at suse.cz

Und ein 'quotaon /home' bzw 'quotaon /dev/hda1' (was prinzipiell das
Gleiche sein duerfte) fuehrt er ohne rumzujaulen aus:

root at host:/# quotaon /dev/hda1
root at host:/#

Ich hoffe, dass mir jemand weiterhelfen kann.


Gruss

-- 
Raphael Bugajewski
Kl. Mittelstr. 1
13585 Berlin
Tel.: +(49) 175 331 93 92
mailto: <born at bugajewski dot de>




Mehr Informationen über die Mailingliste linux-l