loststryk

Well-Known Member
Mar 25, 2003
69
0
156
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.
 

loststryk

Well-Known Member
Mar 25, 2003
69
0
156
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
 

compunet2

Well-Known Member
Feb 21, 2003
309
0
166
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.
 

loststryk

Well-Known Member
Mar 25, 2003
69
0
156
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.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
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
 

loststryk

Well-Known Member
Mar 25, 2003
69
0
156
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 :(
 

loststryk

Well-Known Member
Mar 25, 2003
69
0
156
London, UK.
chirpy said:
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.