I run a Samsung NC10 with Ubuntu Netbook remix.
Yesterday I noticed that my external hard drive (a 500GB Transcend) was running very tight on space. I used the BAOBAB disk usage analyser and deleted about 150GB of old backups. When trying to then create a new folder in which to put a shiny new backup, I noticed that I couldn't do so. In fact, I couldn't do anything with it that involved writing to the hard drive.
After a short bit of googling I reckoned I should run a chown command to change ownership of the drive to me by force. That didn't work. I then used chown -R to ensure that all files would also change. Still didn't work.
I am completely and utterly stumped - how in the world could the drive suddenly become read-only?
Any pointers would be appreciated...
![]()
-
Could you post the output of this command:
Code:mount
Code:sudo touch /mnt/mydisk/myfile
I'm sure you cannot delete files if the drive were mounted read-only.
Also is it by any chance an NTFS file system ? chown will work only on *nix based file systems. -
ALLurGroceries Vegan Vermin Super Moderator
Look at your permissions of the folder in question with the -l flag:
Code:ls -l /media/blah
You can also make sure it didn't get mounted read-only somehow. Look at the output of:
Code:cat /proc/mounts
-
Thanks for the replies. Happily, problem is solved.
A friend suggested that there might be some corruption in the drive. I hooked it up to a Windows PC (Vista) and ran the standard error checking tool on the drive. It completed after about 2 hours and, sure enough, it reported a good deal of errors. After using the tool to repair the errors the drive was immediately usable again. -
-
External hard drive turned itself read-only...
Discussion in 'Linux Compatibility and Software' started by amcg01, Aug 8, 2011.