Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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 been trying to figure this out for a couple of days. I can partition, mount, resize, read, etc. to a couple of hard drives, but I don't have access to it. I can't write, copy, etc. I am running Kubuntu, and also tried the newest version of Knoppix, but neither seems to let me. I tried using commands, but I don't really know what it is I'm supposed to do. One of the drives was NTFS, and I switched it to ext3, and everything looks right, but the other I just bought today, and I don't have access to it, either.
If someone could please help, I would be grateful.
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 9352 75119908+ 83 Linux
/dev/hda2 9353 9729 3028252+ 5 Extended
/dev/hda5 9353 9729 3028221 82 Linux swap / Solaris
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 2101 16876251 83 Linux
/dev/sda2 2102 7200 40957717+ 83 Linux
/dev/sda3 7201 11025 30724312+ 83 Linux
/dev/sda4 11026 19457 67730040 83 Linux
Disk /dev/sdb: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 48641 390708801 83 Linux
/etc/fstab is a configuration table and not executable. Use cat /etc/fstab.
If the partition on the drive is mounted, also post the long listing of the partition.
For example, if you have it mounted on /mnt/data, the use: ls -ld /mnt/data.
For the ext3 filesystem, you can use chown, chgrp and chmod on the mounted partition to change the permissions. If you want exclusive access, then you can change the ownership and permissions to the same as your home directory uses. You can even have it mounted on a directory inside your home directory.
I have a very similar problem: Edgy can't write to certain folders an a SATA hard disk, while Mandriva and Winblows can. I used to have found the solution on another machine, but, shame on me, I forgot where I found the answer. All I remember is it was some magic incantation of chmod. Well, now I found it again!
Storage wasn't listed in your /etc/fstab file. You haven't indicated the filesystem used. If it is vfat or smbfs or cifs, then you can't use chmod or chown or chgroup on the mounted partition.
If it is ext3 for example, you could use "chown yourusername:yourgroupname /mountpoint" to make yourself the owner.
Well, correct, but that wasn't the problem. My Fat32 partition was correctly listed in fstab and mtab, but I still couldn't write to some folders because I apparently had no permissions (Fat32 doesn't know permissions!!!). I never changed anything to the two configuration files, after the chmod command the drive just worked as expected.
All the permissions for files and folders on a fat32 partition, unless otherwise stated in fstab, will be set to allow only the user that mounted the partition. If it automounts as you boot your machine, that'll be root, so you wouldn't be able to modify that partition. You can modify the mounting behaviour by editing fstab. Check out the man page for all the options.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.