Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
When I type mount at the prompt, I get the drives that are mounted.
I have two drives in my system, and I am trying to mount the second one.
I am trying to mount doing the following:
mount /dev/sda2 /hdDrive #hdDrive is a sub directory that has already been created
Typing mount doesn't show it to be mounted, but when I try to mount it as above, it comes back already mounted. What am I doing wrong?
You shouldn't be helping people even voluntarily if you don't even know that Linux is an Operating system. I would rather not even have help than to be dealing with someone so rude. I don't use Linux, did Unix some 30 years ago. It is not fresh in my mind, and I am tying to get some legitimate help. But I don't have to be a wizard to know that Linux is an operating system.
I believe and assume that Habitual was asking what linux distribution/version you are running.
When trying to mount the partition did you see any error or warning messages?
It is more common to use UUIDs or labels instead of device IDs, since with modern computers drives can be recognised in any order. So are you sure you are specifying the correct drive/partition?
Please post your /etc/fstab file as well as the output of the console command
blkid.
Thanks Michael. I appreciate your professionalism.
I had a problem with a system running Linux, and so I have created an identical system on another disk. I have both in the system and want to one directory/file at a time identify what caused my problem. So I am obviously booting form one disk, and then want access to the other going back and forth.
To be specific, I believe I am using Centos 6.5. Would that make sense? It says that when booting up.
When at the prompt I do ls /dev/sd*
I get /dev/sda /dev/sda1 /dev /sda2 /dev/sdb /dev/sdb1
I am guessing that /boot is looking at /dev/sda, and / is looking at /dev/sd1 or /dev/sd2. Again, only a guess.
But I want to be able to look at /dev/sdb1
I don't deal with this at all, and am drawing on some of my unix days at Bell Labs. I'll know how young you are by if you have ever heard of them before.
If you want to see sdb1, change your mount to: mount /dev/sdb1 /hdDrive
The command above would mean you have the directory hdDrive in the root of the filesystem so that it would show when your run: ls / What happens when you try the above command?
Quote:
Typing mount doesn't show it to be mounted, but when I try to mount it as above, it comes back already mounted. What am I doing wrong?
Do you mean sda2 doesn't show as mounted or nothing shows mounted on hdDrive?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.