Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Thanks for the replies. I'll try when i have the time to sit and concentrate on it.
Does it have to be set to /mnt/usbdrive or can it be a folder in my home dir? (ex. /home/user/USB_Drive)
What if i wanted more than one usb hard drive connected? They would be mounted to different folders, but would they be /dev/sda1 and /dev/sda2? Seems like a dumb question, but just making sure.
I do have a sata drive, but it's my main internal drive. My question is if my first external usb drive is /dev/sda1, what would a second one be if i connected it?
You have to be careful on the naming of removable devices. It could be that the order might change due to how they are connected in back or order of connection. It would most likely be sdb1.
I do have a sata drive, but it's my main internal drive. My question is if my first external usb drive is /dev/sda1, what would a second one be if i connected it?
Using /dev/sda1 as an exaample
"sd" denotes SCSI disk but the SCSI is meaningless because so many disk types are treated as virtual SCSI disks.
"a" denotes the first one. Subsequent ones would be "b", ""c, "d" ...
"1" denotes the first primary partition on the disk. Logical partitions are 5 and upwards.
Thus your internal drive should be /dev/sda and your externals should be /dev/sdb, sdc, sdd in the order they are plugged in.
Does it have to be set to /mnt/usbdrive or can it be a folder in my home dir? (ex. /home/user/USB_Drive)
What if i wanted more than one usb hard drive connected? They would be mounted to different folders, but would they be /dev/sda1 and /dev/sda2? Seems like a dumb question, but just making sure.
You can use any directory (= folder) as a mount point.
If each external drive had only one partition then those partitions would be /dev/sdb1, /dev/sdc1, /dev/sdd1 ...
automount would be good, jkzfixme gave the instructions on how to do that earlier. still havent given this a try, havent had time... ill try to get on it tonight though.
...and wrt naming of (removable) devices have a look at /dev/disk/by-*. As long as partitions on the device have unique names there shouldn't be any problems referencing them in /etc/fstab, HAL scripts or anywhere else.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.