LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 08-29-2014, 02:27 PM   #1
dcsimmonssr
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Rep: Reputation: Disabled
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?
 
Old 08-29-2014, 02:44 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
What OS exactly?
Are you trying to mount as a regular (unprivileged) user, or as root?
 
Old 08-29-2014, 02:50 PM   #3
dcsimmonssr
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
It is Linux, and I am logged in a root.
 
Old 08-29-2014, 03:37 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by dcsimmonssr View Post
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.
Code:
man mount
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.
 
Old 08-29-2014, 03:43 PM   #5
dcsimmonssr
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-29-2014, 05:09 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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.
 
Old 08-29-2014, 05:45 PM   #7
dcsimmonssr
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-29-2014, 06:23 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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.
 
Old 08-29-2014, 06:56 PM   #9
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Please try

Code:
cat /proc/mdstat
 
Old 08-29-2014, 06:59 PM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I start slackware without mounting drives, but have drives accessible? Lufbery Slackware 15 08-25-2008 07:18 AM
Mounting Drives JediDB MEPIS 15 08-03-2005 04:50 PM
Help in Mounting my cd drives coderasm Linux - Newbie 3 12-06-2004 05:52 AM
questions about mounting drives jaylee Linux - General 15 06-23-2003 01:04 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration