I am trying to remove an rdiff backup folder as some problems occured during the backup and need to remove it's history and try again. However, when I run:
rm -r -f rdiff-backup-data
I get the following on some of the files:
rm: cannot remove `X': Read-only file system
Here is what I get when I run mount:
/dev/sdb1 on /media/usbdisk type ext3 (rw)
So that shows the drive is rw?
ls -la /media/usbdisk gives the following:
[root@localhost v5]# ls -la /media/usbdisk total 36 drwxr-xr-x 5 root root 4096 Mar 31 2010 . drwxrwxrwx 9 root root 4096 Dec 15 2009 .. drwxrwxrwx 39 501 501 4096 Aug 19 09:04 development-backup drwx------ 2 root root 16384 Mar 30 2010 lost+found drwxr-xr-x 8 root 501 4096 Aug 19 00:00 officeshare-backup
Anyone know what is going on and how to fix it?
found out the drive was ro in /proc/mounts so ran the remount command mentioned below and got the following:
ext3_abort called. EXT3-fs error (device sda1): ext3_remount: Abort forced by user mount: block device LABEL=USBDISK1 is write-protected, mounting read-only ext3_abort called. EXT3-fs error (device sda1): ext3_remount: Abort forced by user