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.
I assume you meant mount (instead of month). How did you mount the first hard disk? You need to mount the second exactly the same way (just only the mount point will differ).
sudo mkdir /mnt/sdb1
sudo mount /dev/sdb1 /mnt/sdb1
The first line creates a new directory in /mnt. The second line mounts the drive (/dev/sdb1) to the new directory (/mnt/sdb1). Replace /dev/sdb1 with the device you're trying to mount; sdb would be the second hard drive, and the number afterward is the partition number (if you're not sure which partition number to use, you can use
Your icon suggests that you posted from a Windows 7 system, and mounting on a Windows OS is different from Linux mounting. Could you tell us which Linux distribution you're using? (You should have specified that when you created your LinuxQuestions account. Then it would be automatically displayed in all you posts, and we wouldn't need to ask. )
On many modern Linux distributions a new drive will automatically be mounted under either /media or /run/media. Each drive partition will be mounted as a separate sub-directory of the sub-directory of media named with the drive's default name - usually the drive brand name and/or model number.
The suggestion by YellowApple, above, will only mount the first partition of the drive, and needs to be done from within a terminal window. And it assumes that your account has been set up so that you can use the sudo command. Not every distribution will have automatically done that.
Again, if you tell use which distribution you're using and which of the many desktop managers offered by most distribution you use, we can offer much more focused advice.
Remember, Linux is not Windows and doesn't work like Windows. It's not harder; it's just different.
Because it is different, it seems complicated. It's isn't; it's that the creators of Unix and Linux reached different conclusions as to the best way to accomplish certain tasks.
Say the disk is sdb (SATA or SCSI Drive B). If it has only one partition, that partition might be sdb1. A second partition might be sdb2, and so on.
On Linux, you will not see a disk mounted as a "drive" is on Linux, the way you seem to in Windows. As YellowApple indicated, you don't mount the disk, sdb, you mount the partition sdb1.
And you mount it to a directory in a location specifically intended for mounting partitions, usually in the directory /mnt (mount) or /media. /run/media is a new thing.
If then you want to be able to jump to it directly from, say, your /home/[username] folder, you create a "softlink," similar to a Windows shortcut, for doing that.
Here's a article which is a pretty good explanation. Note that the use of hdX (Hard Disc "X") referred to in the article has been deprecated.
The suggestion by YellowApple, above, will only mount the first partition of the drive, and needs to be done from within a terminal window. And it assumes that your account has been set up so that you can use the sudo command. Not every distribution will have automatically done that.
I made assumptions because there's little concrete info to go off of other than the OP wanting to "month" a "second harddisk". For all I know, he could be running a minimal Debian box, and this "second harddisk" could very well be a single-partition external USB drive.
That said...
Quote:
Originally Posted by PTrenholme
On many modern Linux distributions a new drive will automatically be mounted under either /media or /run/media. Each drive partition will be mounted as a separate sub-directory of the sub-directory of media named with the drive's default name - usually the drive brand name and/or model number.
If OP happens to be running a distro that lacks sudo access (highly unliklely nowadays), then the likelihood of there being a working /media folder is slim.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.