Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-29-2014, 02:27 PM
|
#1
|
LQ Newbie
Registered: Oct 2011
Posts: 9
Rep: 
|
Questions on mounting drives
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?
|
|
|
08-29-2014, 02:44 PM
|
#2
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
What OS exactly?
Are you trying to mount as a regular (unprivileged) user, or as root?
|
|
|
08-29-2014, 02:50 PM
|
#3
|
LQ Newbie
Registered: Oct 2011
Posts: 9
Original Poster
Rep: 
|
It is Linux, and I am logged in a root.
|
|
|
08-29-2014, 03:37 PM
|
#4
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
Quote:
Originally Posted by dcsimmonssr
It is Linux, and I am logged in a root.
|
"Linux" is not an OS.
I said exactly.
If you want help, you need to answers questions. We're all volunteers here.
or see https://www.google.com/?gws_rd=ssl#q...t+sda+in+linux
first hit.
Last edited by Habitual; 08-29-2014 at 03:38 PM.
|
|
|
08-29-2014, 03:43 PM
|
#5
|
LQ Newbie
Registered: Oct 2011
Posts: 9
Original Poster
Rep: 
|
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.
|
|
|
08-29-2014, 05:09 PM
|
#6
|
Moderator
Registered: Aug 2002
Posts: 26,911
|
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.
Last edited by michaelk; 08-29-2014 at 05:35 PM.
|
|
|
08-29-2014, 05:45 PM
|
#7
|
LQ Newbie
Registered: Oct 2011
Posts: 9
Original Poster
Rep: 
|
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.
Again. I appreciate your help.
|
|
|
08-29-2014, 06:23 PM
|
#8
|
Moderator
Registered: Aug 2002
Posts: 26,911
|
sda references the entire disk vs sda1, sda2 individual partitions.
You did it post the output of the fstab or blkid so I can not tell which drive is the running system and which is the "copy".
The default partition scheme for CentOS uses LVM (Logical Volume Management) whereby /boot is sda1 and sda2, the LVM partition contains / and swap.
Your second disk sdb only has one partition which is not wrong but as a beginner manual partitioning can be a bit of a daunting task.
Last edited by michaelk; 08-29-2014 at 06:25 PM.
|
|
|
08-29-2014, 06:56 PM
|
#9
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,345
|
|
|
|
08-29-2014, 06:59 PM
|
#10
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,435
|
Quote:
But I want to be able to look at /dev/sdb1
|
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?
|
|
|
All times are GMT -5. The time now is 02:38 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.
|
Latest Threads
LQ News
|
|