The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help, am stumped.

Discussion in 'General Discussion' started by loststryk, Sep 13, 2006.

  1. loststryk

    loststryk Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London, UK.
    Hi,

    I am currently running :

    WHM 10.8.0 cPanel 10.8.2-R119
    CentOS 4.4 i686 - WHM X v3.1.0
    1 GB Ram

    Yesterday i had the DC add a 3rd drive to the system, but i have come across a weird proble,/

    I can't write to fstab, so the drive won't auto mount, however i can manually mount the drive and it works perfectly, i recently followed some guides and installed csf as well as harden sysctl, installed chkrootkit and rkhunter.

    I have root before anyone asks, but when when ever i try to edit fstab and then save, it says permission denied.

    Any help would be appreciated as this is starting to bug me.

    Thanks.
     
  2. loststryk

    loststryk Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London, UK.
    this is my current fstab

    # This file is edited by fstab-sync - see 'man fstab-sync' for details
    LABEL=/ / ext3 defaults,usrquota 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    none /dev/pts devpts gid=5,mode=620 0 0
    none /dev/shm tmpfs rw,noexec,nosuid,nodev 0 0
    none /proc proc defaults 0 0
    none /sys sysfs defaults 0 0
    /dev/hda3 swap swap defaults 0 0
    /dev/hdb1 /home2 ext2 defaults,usrquota 1 2
     
  3. compunet2

    compunet2 Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    310
    Likes Received:
    0
    Trophy Points:
    16
    Have you asked your data center? Were you able to modify fstab before? It sounds like /etc may be marked read only.. but thats just my guess.
     
  4. loststryk

    loststryk Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London, UK.
    Fromt what i am able to read from various sources it appears it's been locked by HAL

    can anyone help me add this drive ?

    would be appreciated.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    What do you mean when you say that you cannot write to /etc/fstab - what errors do you get?
     
  6. yapluka

    yapluka Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    France
    cPanel Access Level:
    Root Administrator
    /etc/fstab could be protected ? Did you try to chattr -i /etc/fstab ?
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It's probably been made immutable. Check:

    lsattr /etc/fstab

    If it has the a i or s flags set simply:

    chattr -ais /etc/fstab
     
  8. loststryk

    loststryk Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London, UK.
    nano /etc/fstab

    made changes

    ctrl o / ctrl x (save / exit)

    nano throws up this error : [ Could not open file for writing: Permission denied ]

    I am root, running nano as root, this is a dedicated server not VPS.

    wont let me edit or change fstab

    think i may just do a re-install :(
     
  9. loststryk

    loststryk Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London, UK.
    That worked perfectly :)

    thank you, you saved me a re-install

    Much appreciated.
     
Loading...

Share This Page