Operating System - Linux
1753776 Members
7485 Online
108799 Solutions
New Discussion

Acces denied for 1TB USB Disk in RHEL4

 
Rohit Nagare
Frequent Advisor

Acces denied for 1TB USB Disk in RHEL4

Hi Good morning Friends,

I am using HP Workstation xw8400 Rhel4 Installed on it. I have connected 1TB USB hard disk. And made the single ext3 partion and mounted on a perticular folder. But when i copy a folder a file it get copy but after few minutes or hour when i copy a folder or file it gives the error as.

cp: cannot create regular file `/magma1tb': Read-only file system

As i have tried with chmod -R 777 /magma1tb
And chmod 777 /magma1tb

Any solution for this

Thanks in advance
Rohit


Regards

1 REPLY 1
Matti_Kurkela
Honored Contributor

Re: Acces denied for 1TB USB Disk in RHEL4

"Read-only file system" is not related to file/directory permissions nor chmod at all.

With default settings, RHEL switches a filesystem into read-only mode when it detects a hardware error.

You can verify the read-only mode using this command:
grep ro, /proc/mounts

You may try to switch the filesystem back to read-write mode with this command:

mount -o remount,rw /magma1tb

but if the system has detected filesystem errors, the command may be rejected.

In that case, you must unmount the filesystem, run a filesystem check on it, and then mount it again. (replace /dev/sdX1 with the real device name of the ext3 partition on your USB disk)

umount /magma1tb
fsck -C 0 /dev/sdX1
mount /dec/sdX1 /magma1tb

Also check the USB cable connections: a loose connector may cause random errors.

MK
MK