DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have just copied some files off of a secondary hard drive using mv. The only problem is I can't access them now. I can look in the folder if I'm logged in as root, but I can't do anything else. The permissions are set at -r----... I've tried "chmod a+rw *" and it says: "chmod: changing permissions of 'filename': Read-only file system. I then check the permissions and it's still the same. Anyone know what I'm doing wrong?
You file system is mount as read-only. You have to mount is as read-write. What is the file system that the reside in? If it is an NTFS, you probually do not want to write to it.
Originally posted by tangle You file system is mount as read-only. You have to mount is as read-write. What is the file system that the reside in? If it is an NTFS, you probually do not want to write to it.
The hard drive (/dev/hdb1) is NTFS. I just want to get all my music off of it because I'm replacing it with a bigger drive. How do I mount it as read-write then?
The drive your files are on is probably NTFS, as I ran into the same problem after I installed Linux and tried to access some files from my other HD otherwise than root.
You can anyway set the permissions on the entire drive to whatever you want by editing the /etc/fstab file. Add a line like this:
Note that here is a line from my fstab file and hda5 is the other HD in my situation. So change the line accordingly.
And be careful if you add the line at the end of the file, leave another line blank as the last line.
Originally posted by tangle Just copy the music. You do not need write premission to copy.
To answer your question, /etc/fstab is where the mounting is handled.
This is what I'm trying to do. Like I said though, I can't do anything with the copied music. Konquer shows the icons all with a little lock on them. And ls -l says they only have -r--- permission. And I can't change the permission (of the copied files).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.