mount -o remount dont work plz plz help

Discussion in 'Installation/Configuration' started by judgey, Aug 19, 2011.

  1. judgey

    judgey New Member

    Hey im on ubuntu-11.04

    i do

    mount -o remount /

    and get

    mount: / not mounted already, or bad option

    Can you please help me :)
     
  2. judgey

    judgey New Member

    Here is what i edited

     
  3. judgey

    judgey New Member

    Ok i fixed the above but now im stuck again...

    Code:
    WARNING -  Quotafile //aquota.group was probably truncated. Cannot save quota settings...

    and

    Code:
    quotaon: Cannot find quota file on / [/dev/root] to turn quotas on/off.
    quotaon: Cannot find quota file on / [/dev/root] to turn quotas on/off.
    I can not fix this :x
     
  4. judgey

    judgey New Member

    Fix was

    1) modprobe quota_v2 and check if the module was loaded ( lsmod |grep quota )

    2) echo 'quota_v2' >> /etc/modules

    3) delete the files previously created ( aquota.group aquota.user )

    4) quotacheck -avugm
    quotaon -avug
     
  5. linus3xx

    linus3xx New Member

    Expanded Fix for Debian Squeeze Upgrade

    Had this same error this morning when I upgraded from Debian Lenny to Squeeze. Probably should do a full tutorial but too lazy/pressed for time.

    Anyway, if you follow either of these tutorials and get errors, read on:

    http://www.howtoforge.com/how-to-set-up-journaled-quota-on-debian-lenny
    http://www.howtoforge.com/perfect-server-debian-squeeze-with-bind-and-courier-ispconfig-3-p4

    Basically, I was getting the same errors as outlined above - everything was fine with my /etc/fstab file, made the correct edits, created the two aquota files, but was getting the same errors judgey was getting:

    Code:
    WARNING -  Quotafile //aquota.group was probably truncated. Cannot save quota settings...
    And

    Code:
    quotaon: Cannot find quota file on / [/dev/root] to turn quotas on/off.
    quotaon: Cannot find quota file on / [/dev/root] to turn quotas on/off.
    So I followed these steps:

    Code:
    /# lsmod | grep quota
    quota_v2                2133  0
    quota_tree              5423  1 quota_v2
    
    So it was running. Then:

    Code:
    /# echo 'quota_v2' >> /etc/modules
    Then deleted the 2 files I had set up in the tutorials:

    Code:
    /# rm -f /aquota.group
    /# rm -f /aquota.user
    
    Then ran the two statements - here is the output:

    Code:
    /# quotacheck -avugm
    quotacheck: Scanning /dev/disk/by-uuid/ffffffff-4444-5555-8888-999999999aaa [/] done
    quotacheck: Cannot stat old user quota file: No such file or directory
    quotacheck: Cannot stat old group quota file: No such file or directory
    quotacheck: Cannot stat old user quota file: No such file or directory
    quotacheck: Cannot stat old group quota file: No such file or directory
    quotacheck: Checked 9068 directories and 81028 files
    quotacheck: Old file not found.
    quotacheck: Old file not found.
    
    /# quotaon -avug
    /dev/disk/by-uuid/ffffffff-4444-5555-8888-999999999aaa [/]: group quotas turned on
    /dev/disk/by-uuid/ffffffff-4444-5555-8888-999999999aaa [/]: user quotas turned on
    
    It seems to be working now. I'll report back if I run into any errors but it looks like this is the fix.
     

Share This Page