Find the answer to your Linux question:
Results 1 to 7 of 7
When i try to setup quota in linux 5.6 i add this in /etc/fstab LABEL=/home /home ext3 defaults,usrquota 1 2 after that i tried to mount mount -o remount /home ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    8

    Quota "mount: /home not mounted already, or bad option"

    When i try to setup quota in linux 5.6
    i add this in /etc/fstab
    LABEL=/home /home ext3 defaults,usrquota 1 2
    after that i tried to mount
    mount -o remount /home
    but i get
    not mounted already, or bad option
    How can solve this issue , and why this issue occured ??

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Is your LABEL really /home?

    I notice your line looks exactly like the example line from this guide, so I'm wondering if you're using the correct info for your system. Please post your /etc/fstab file.

  3. #3
    Just Joined!
    Join Date
    Jan 2011
    Posts
    8
    /dev/VolGroup00/LogVol00 / ext3 defaults 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    LABEL=/home /home ext3 defaults 1 2
    tmpfs /dev/shm tmpfs defaults 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    /dev/VolGroup00/LogVol01 swap swap defaults 0 0
    ~
    ~
    ~
    ~

  4. #4
    Just Joined!
    Join Date
    Jan 2011
    Posts
    8
    Quote Originally Posted by agalila View Post
    /dev/VolGroup00/LogVol00 / ext3 defaults 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    LABEL=/home /home ext3 defaults,usrquota,grpquota 1 2
    tmpfs /dev/shm tmpfs defaults 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    /dev/VolGroup00/LogVol01 swap swap defaults 0 0
    ~
    ~
    ~
    ~
    Any Help to solve this issue ?

  5. #5
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Patience. It's only been a couple of hours.

    Is this the default fstab outside of the addition of usrquota and grpquota? Or have you modified this?

    The biggest thing to me is the Label names seem unusual. I personally prefer using the uuid or barring that the /dev name.

    You can get the uuid as so
    Code:
    ls -l /dev/disk/by-uuid
    fstab with uuid Linux by Examples

    Try using that or the /dev name. Post the output of
    Code:
    su -
    fdisk -l
    if you need help identifying the /dev name.

  6. #6
    Just Joined!
    Join Date
    Jan 2011
    Posts
    8
    No , this is not the default fstab file , i add the line LABEL=/home>

    The output is



    Disk /dev/sda: 10.7 GB, 10737418240 bytes
    255 heads, 63 sectors/track, 1305 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 1305 10377990 8e Linux LVM

    Disk /dev/sdb: 2147 MB, 2147483648 bytes
    255 heads, 63 sectors/track, 261 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 13 104391 83 Linux

  7. #7
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    What was the LABEL=/home entry before you changed it?

    I should have asked as well for the output of
    Code:
    df -h
    You have two drives showing up. (Is the ~2 GB one, /dev/sdb a flash drive?) The first is only split into two, /dev/sda1 and /dev/sda2. The easiest way to have them in fstab is to use the /dev name.

    From your fstab, you only are mounting a /boot partition and a /home partition. What happened to the root partition? You are not required to have a separate /boot partition and it doesn't look like you set one up when you installed based on the above. I would guess /dev/sda1 is meant to be your root partition and /dev/sda2 your /home?

    So the simplest way to put these in fstab is by /dev name
    Code:
    /dev/sda1 / ext3 defaults 1 2
    /dev/sda2  /home ext3 defaults,usrquota,grpquota 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...