Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Mar 2003
    Location
    London, UK.
    Posts
    70

    Default Need help, am stumped.

    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. #2
    Member
    Join Date
    Mar 2003
    Location
    London, UK.
    Posts
    70

    Default

    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. #3
    Member
    Join Date
    Feb 2003
    Posts
    311

    Default

    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. #4
    Member
    Join Date
    Mar 2003
    Location
    London, UK.
    Posts
    70

    Default

    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. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    What do you mean when you say that you cannot write to /etc/fstab - what errors do you get?
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    Member
    Join Date
    Dec 2003
    Location
    France
    Posts
    300
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    /etc/fstab could be protected ? Did you try to chattr -i /etc/fstab ?
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  7. #7
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  8. #8
    Member
    Join Date
    Mar 2003
    Location
    London, UK.
    Posts
    70

    Default

    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. #9
    Member
    Join Date
    Mar 2003
    Location
    London, UK.
    Posts
    70

    Default

    Quote Originally Posted by chirpy
    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
    That worked perfectly

    thank you, you saved me a re-install

    Much appreciated.

Similar Threads & Tags
Similar threads

  1. This has got me stumped - Is anyone clever enough?
    By happydj in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-13-2006, 12:11 AM
  2. Completely stumped
    By TheZander in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-08-2006, 04:35 PM
  3. Spam email has me stumped!
    By mickalo in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 01-01-2006, 06:58 AM
  4. This spam has me stumped
    By nurseryboy in forum cPanel and WHM Discussions
    Replies: 22
    Last Post: 11-29-2005, 04:16 AM
  5. im stumped and need help
    By apewww in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-14-2004, 05:28 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube