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 a USB external drive that I would like to keep mounted and attached to my Linux box. I think I formated it correctly using FDISK as ext3 however I don't know how I properly mount it to my system was read/write and how this would like properly in /etc/fstab.
Does anyone mind assisting me or providing information that will help me add/mount my USB drive as a writable partition?
/dev/sde1 is a USB drive I use for music and not the drive in question but I would want the new USB drive to work just like /media/handy. When I plug it in, it auto mounts and I can read and write anything I want to it assuming it has enough capacity.
You can make the mount point anything you want instead of /media/handy. Actually, check /media and make sure the "handy" directory is there; it may be dynamically generated by udev/pamconsole and removed when you disconnect the drive. If that's the case, just create /media/handy:
# mkdir /media/handy
or use whatever other name you want for the mount point.
The above entry is set to have sde1 not automount on boot(noauto option) but ordinary users can mount the drive, i.e. you don't have to be root(user option). If you want to automount the drive on boot, just delete the noauto and user option from the line. However, if you do that, you will have to have the drive connected and on at boot time or the system may not boot.
Finally, to set the permissions on sde1 giving all users rwx, mount sde1 and run as root:
# chmod -R 777 /media/handy
The above command must be run with sde1 mounted or it won't work.
Thanks - I will follow what you noted above however I think I did not explain that I am not wanting to replace /dev/sde1 which mounts to /media/handy. That was only an example of a working portable usb drive I have. I am wanting to add another drive which I showed you in qtparted and it shows up on my dmesg as "/dev/sdc1" however I think I can follow that info and rather than replace, just add to fstab.
Now my last question is that it auto mounts the drive as /media/USBDRIVE and /media/usbdisk and I was wondering how I would edit that to read /media/<whatever>?
Last edited by carlosinfl; 03-01-2007 at 02:15 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.