Enabling rwx permissions on my removable USB hard disk?
Good afternoon folks,
I have a Freecom USB Network Drive, which is automatically mounted at /media/Network_Drive when I switch it on. I want to gain full access to this resource, but I don’t know how. I tried changing the permissions using File Manager in Super User Mode, which gives me this error: Could not modify the ownership of file /blah/blah/blah You have insufficient access to the file to perform the change. Surely I should be able to change the permissions as root? Please help! Many Thanks, mejpark |
What file system type is the drive formatted to? If it is fat32 or NTFS that will not work. SU mode should be able to change file and directory permissions.
|
Quote:
The mind boggles |
Linux mounts NTFS partitions as read only by default. You can force it to mount the partition as read write. Since this is automatically mounted when it is detected then you can use the remount option to change the mount characteristics (read only). You have to know the name of the raw device. It is probably /dev/sda1 but you can check it by reading the /proc/mounts file when the USB is plugged in and mounted.
Code:
root> cat /proc/mounts Code:
root> mount -o remount,rw,gid=100 /dev/sda1 /media/Network_Drive Code:
/dev/sda1 /media/Network_Drive ntfs rw,gid=100 0 0 A better solution would be to put a file system on the USB device that can be reliably used by Linux. If the USB device needs to be used in both Linux and in Windows then I would format the USB device with the FAT32 file system. Linux can reliably write to that kind of file system. If you don't have to use the USB device with Windows then I would put a journaling file system on there such as XFS. I won't write instructions for that unless you say that you want to take that advise. |
Quote:
|
Quote:
You then make a new partition(s) as required, format with a linux supported file system Ie, reiser, ext2 , ext3 or the one of your choice. Make mount points, and mount the new file systems. Then you can copy any data to the new file systems you want linux to read and write to. Make sure you back up your data on the NTFS first; you have been told. |
Quote:
Quote:
mejpark |
mejpark,
There is no reliable NTFS driver yet ( for any linux distro ) to write to NTFS drives. There are some that do it, but come with warnings, and do not guarantee the results. Is it an 'issue' ? That is for you to decide. My intention is to dump windoze all together, and I knew in advance about NTFS. I still share a partition with w98 on my main machine, but it is fat32. That works very well and has never given my any problems. NTFS is propriatory code, Bills boys wrote it, they own it. The drivers that exist are basically reverse engineered drivers. Fat32 is a much simpler file system and was part of DOS, long before IBM gave it away to Bill and the boys. |
Okay, I've taken stress_junkie's advice and formatted the disk into several smaller 32 GB FAT partitions, but I have a new problem:
What should I put in /etc/fstab to allow normal users full rwx access to this partition? I tried the following otions and neither of these worked for me: 1st try: /dev/hdb1 /mnt/projects vfat defaults 0 0 2nd try: /dev/hdb1 /mnt/prpojects vfat noauto 0 0 I also tried changing the owner from root to michael like so: # su - # chown -R michael /mnt/projects Operation not permitted. please help me! Thanks in advance. |
Here is what works on my system with vfat partitions. These two partitions mount at boot time and regular users have full access. The lines are from my /etc/fstab file.
Code:
/dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-15,codepage=850 0 0 Let us know how it goes. |
That's great camorri (it worked like a charm)... Just out of interest, where did you find out the appropriate options to use?
Thanks again |
I glad it worked for you. I went through a long learning curve, like most first time linux users, about 3 years ago. I found a thread on this board when I was figuring out how to mount a partition. I copied the options from there. Since then I spent some time reading the man pages ( boring I know ). Since then fstab is no longer either a mystery or difficult to figure out.
|
All times are GMT -5. The time now is 01:34 PM. |