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 just recently partitioned my external hdd, as i'm going to use one partition for backing up and only mount it when doing backups. however, i've had a lot of problems since making the partitions, and i'm not exactly sure what to do. currently, i am not allowed to write to the first partition. when i try it says "access denied." i tried to change this with the chmod command. i did the following two commands:
chmod 664 /dev/sda1
chmod 664 /mnt/maxtor (the mount point for sda1)
but i still can't write to /mnt/maxtor. anyway, i figure maybe the problem is in my fstab. here is what my fstab used to say about this drive before the partition:
/dev/sda1 /mnt/maxtor auto user,iocharset=utf8,kudzu,auto,umask=0,exec 0 0
what kind of changes should i make? i would like /dev/sda1 to be mounted automatically upon booting up, and for everyone to have read, write, and execute permissions. i would like everyone to have read, write, and execute permissions for /dev/sda5, but only root should be allowed to mount it, and it should not be mounted on bootup. any help greatly appreciated.
For sda5, put "owner,noauto" next to the "umask=0" option. Owner means only root can mount.
For sda1 put "umask=0" for everyone to have rwx permissions. The "defaults" option should make it mount automatically on startup, if it doesn't, add an "auto" option.
thanks a lot! just a quick question on syntax. does that mean there should be a total of three zeros in the sda1 line? i'm not sure what the two zeros at the end do. here's how i have it now:
well, i made the suggested changes, and now i'm having different problems. i just rebooted the system, and then i opened up /mnt/maxtor (my mount point for /dev/sda1). it displayed all sorts of folders and files with random characters for names (probably because i reformatted--or tried, at least, the disk without bothering to delete everything). i tried to delete a directory, and i was told that it didn't exist. then, i tried to copy something to the drive, and was told that it could not create the directory. any ideas on what this could be? i'm really hoping that i didn't hose the drive--when i tried to reformat it in diskdrake it froze right away. but, it should be formatted as vfat anyway, which is what i was trying to reformat it as.
umask=0 sets the default permission to rwxrwxrwx.
The first "0" is for whether the filesystem should be dumped (backed up). You put "1" there if you want that. The second is for scanning on startup. "0" means no scan, "1" means scan this first (should be the "/" drive), "2" means scan these second.
<edit>You need to use umask to set permissions because the windows filesystems don't support them.</edit>
well, i was having trouble formatting /dev/sda1 to fat32, so i gave up and formatted it as reiser fs (i don't use my xp partition that much anyway, so why not?)
anyway, now i'm having the exact same problems with the drive.
i can't write to /mnt/maxtor (still mount point for /dev/sda1). what should i do to my fstab now? here's the relevant part of my fstab. my whole fstab is also posted in the reply just below this one:
i'm also having problems all of a sudden with my cdrom drive. after installation of mandrake 9.1, my cdrom drive was working fine, and every time on bootup an icon showed on my desktop for the cdrom drive, mounted at /mnt/cdrom. after running k3b setup for the first time, it made changes to my fstab so that i could use the cd burning capabilities of the drive. however, this didn't change the original settings of the drive, and everything still worked as it originally had, with the cdrom being mounted on bootup at /mnt/cdrom.
well, since my difficulties with the partitioning, the line for this in the fstab got deleted, and i'm not sure how to put it back in (no, unfortunately, i didn't save my fstab first ). below is my whole fstab for reference. thanks to all who can help!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.