Hi folks, CentOS 4.4 x86_64 I followed; The Perfect Setup - CentOS 4.4 (32-bit) http://howtoforge.com/perfect_setup_centos_4.4_p4 encountering problem on "7 Quota" as follows; (Remark: I'm running x86_64 version) # yum install quota Code: Setting up Install Process Setting up repositories update 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files Parsing package install arguments Nothing to do [root@server ~]# yum search quota Code: Searching Packages: Setting up repositories Reading repository metadata in from local files quota.x86_64 1:3.12-5 base Matched from: quota The quota package contains system administration tools for monitoring and limiting user and or group disk usage per filesystem. http://sourceforge.net/projects/linuxquota/ quota.x86_64 1:3.12-5 installed Matched from: quota The quota package contains system administration tools for monitoring and limiting user and or group disk usage per filesystem. http://sourceforge.net/projects/linuxquota/ It seems already installed. My "fstab" after editing # cat /etc/fstab Code: # This file is edited by fstab-sync - see 'man fstab-sync' for details LABEL=/ / ext3 defaults,usrquota,grpquote 1 1 LABEL=/boot /boot ext2 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 LABEL=/home /home ext3 defaults 1 2 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 LABEL=/usr /usr ext3 defaults 1 2 LABEL=/var /var ext3 defaults 1 2 LABEL=SWAP-sda6 swap swap defaults 0 0 /dev/scd0 /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0 You have mail in /var/spool/mail/root [root@server ~]# fdisk -l Code: Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 1288 10241437+ 83 Linux /dev/sda3 1289 7662 51199155 83 Linux /dev/sda4 7663 19457 94743337+ 5 Extended /dev/sda5 7663 14036 51199123+ 83 Linux /dev/sda6 14037 14163 1020096 82 Linux swap /dev/sda7 14164 19457 42524023+ 83 Linux Continued # touch /aquota.user /aquota.group # chmod 600 /aquota.* No complaint # mount -o remount / Code: mount: / not mounted already, or bad option # mount / Code: mount: /dev/sda2 already mounted or / busy mount: according to mtab, /dev/sda2 is already mounted on / # quotacheck -avugm Code: quotacheck: Can't find filesystem to check or filesystem not mounted with quota option. Can't proceed further. Pls advise. TIA B.R. satimis
Hi till, Tks for your advice. Something strange happened here. The PC has been turned off a while and just booted. Following warning popup on text scrolling; mount : none already mounted or /dev/pts busy mount : none already mounted or /sys busy rc.sysinit: Mounting local filesystem: failed mount: /dev/sda1 already mounted or /boot busy mount: /dev/sda7 already mounted or /home busy mount: /dev/sda5 already mounted or /usr busy mount: /dev/sda3 already mounted or /var busy etc. Finally it booted to runlevel-3 But I was not allowed to change /etc/fstab as root. Pls help. TIA B.R. satimis
Hi falko, # ls -l /etc/fstab Code: -rw-r--r-- 1 root root 940 Mar 24 12:23 /etc/fstab # df -h Code: Filesystem Size Used Avail Use% Mounted on /dev/sda2 9.7G 287M 8.9G 4% / It seems other partitions not mounted. # fdisk -l Code: Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 1288 10241437+ 83 Linux /dev/sda3 1289 7662 51199155 83 Linux /dev/sda4 7663 19457 94743337+ 5 Extended /dev/sda5 7663 14036 51199123+ 83 Linux /dev/sda6 14037 14163 1020096 82 Linux swap /dev/sda7 14164 19457 42524023+ 83 Linux Edit: I suppose / is mounted read-only # touch /etc/test touch: cannot touch `/etc/test': Read-only file system # ls -l /etc/test ls: /etc/test: No such file or directory. B.R. satimis
Do you remember what exactly you did between when it was working and when it started to make problems?
Sorry, I can't remember exactly. I only played around on; mount -o remount / mount -o / umount / etc. satimis
Hi folks, Performed following test according to; http://www.linuxfromscratch.org/pipermail/hints/2002-November/001360.html Started single user mode. # rm /etc/mtab Code: rm: cannot remove `etc/mtab': Read-only file system It also did not work on "su -" # cat /etc/mtab Code: /dev/sda2 / ext3 rw 0 0 none /proc proc rw 0 0 Now I tried again with -f option # rm -f /etc/mtab rm: cannot remove `etc/mtab': Read-only file system # ls -l /etc/mtab Code: -rw-r--r-- 1 root root 47 Mar 24 13:12 /etc/mtab It is very weird here. Since this is an experiment I will reinstall CentOS 4.4 amd64 after erasing the HD completely. My next installation will be the 3rd round, with failure on 1st and 2nd rounds. If still fail again I'll move to another distro. Tks. B.R. satimis
Hi folks, CentOS 4.4 amd64 revives after performing following steps - started PC with a LiveCD - mount / rw - edited /etc/fstab changing "grpquote" to "grpquota" - rebooted PC I'm surprised one typo "grpquote" can make the whole system failing to work. I'll continue the test. B.R. satimis