LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-30-2004, 06:11 PM   #1
sturgeonman
LQ Newbie
 
Registered: Apr 2004
Location: Left Coast
Posts: 7

Rep: Reputation: 0
mounting hard drives


I had to reinstall Linux. I have 2 hds and wanted to keep #2 intact.
I reformatted #1 and installed RedHat 9.0 and now I can't seem to
mount #2. It shows when I type in dmesg or in fdisk but when I try
to mount it , Linux tells me it cant find it.
Any suggestions? Please.
 
Old 05-30-2004, 06:28 PM   #2
Covel
Member
 
Registered: Oct 2003
Location: Portugal
Distribution: Gentoo
Posts: 116

Rep: Reputation: 16
A little more info please. How are you trying to mount it. What is the exact command you are using. Please also post what fdisk shows.
 
Old 05-30-2004, 06:42 PM   #3
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 30
# mount /dev/hda2 /mnt/somewhere
assuming that it's on the first IDE channel of the first controller. What's the output of this?
 
Old 05-30-2004, 07:13 PM   #4
sturgeonman
LQ Newbie
 
Registered: Apr 2004
Location: Left Coast
Posts: 7

Original Poster
Rep: Reputation: 0
I'll have to give ya more info later. I'm runnin 2 boxes through a KVM
and it is not problem free. But thanx for the reply. I hope to be back soon.
 
Old 05-30-2004, 08:18 PM   #5
Rico16135
Member
 
Registered: Aug 2003
Location: Texas, USA
Distribution: Slackware 9.1, SuSE 9.1
Posts: 245

Rep: Reputation: 30
hda2 means a partition within the first hard drive. Try hdb instead.
 
Old 05-30-2004, 08:51 PM   #6
sturgeonman
LQ Newbie
 
Registered: Apr 2004
Location: Left Coast
Posts: 7

Original Poster
Rep: Reputation: 0
ok hers is fdisk info

[root@localhost root]# fdisk -l

Disk /dev/hda: 13.0 GB, 13020069888 bytes
255 heads, 63 sectors/track, 1582 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1484 11815807+ 83 Linux
/dev/hda3 1485 1582 787185 82 Linux swap

Disk /dev/hdb: 2557 MB, 2557771776 bytes
128 heads, 63 sectors/track, 619 cylinders
Units = cylinders of 8064 * 512 = 4128768 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 619 2495776+ 83 Linux


I'm trying to mount hdb
 
Old 05-30-2004, 09:01 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,816

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Do you remember what filesystem that you formatted hdb1?

mount -t <fstype> /dev/hdb1 /mnt/<disk2>

Change <fstype> to actual filesystem type. If you do not know then use auto
Be sure to create a directory /mnt/<disk2> Change <disk2> to whatever you want to call the mount point.
 
Old 05-30-2004, 09:14 PM   #8
sturgeonman
LQ Newbie
 
Registered: Apr 2004
Location: Left Coast
Posts: 7

Original Poster
Rep: Reputation: 0
I'm really just beginning so please bear with me.
I'm sure its ext3 file system, when I try and run the line you suggested I get an error:
syntax error near unexpected token 'newline'
 
Old 05-30-2004, 09:30 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,816

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Post what you actually typed on the command line
 
Old 05-30-2004, 09:52 PM   #10
sturgeonman
LQ Newbie
 
Registered: Apr 2004
Location: Left Coast
Posts: 7

Original Poster
Rep: Reputation: 0
[root@localhost root]# mount -t <ext3> /dev/hdb1 /mnt/<hdb1>
bash: syntax error near unexpected token `newline'
 
Old 05-30-2004, 10:02 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,816

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Sorry, it should be:

mount -t ext3 /dev/hdb1 /mnt/hdb1

I didn't expect my posts to be taken so literally
 
Old 05-31-2004, 07:59 AM   #12
sturgeonman
LQ Newbie
 
Registered: Apr 2004
Location: Left Coast
Posts: 7

Original Poster
Rep: Reputation: 0
Ok, now i feel like an lame. I guess that what using Microsoft for so long
will do to you. Anyway, I've got it mounted, now how do I get it to
auto mount on boot?
 
Old 05-31-2004, 08:32 AM   #13
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
you need to add a line to /etc/fstab for this drive, you can look to the existing lines for the format needed for this file.

EDIT: you can take a look at this thread which gives more information about fstab and some links. also read the information in the fstab manual page.

hope this helps.

Last edited by lyceum; 05-31-2004 at 08:46 AM.
 
Old 05-31-2004, 09:13 AM   #14
sturgeonman
LQ Newbie
 
Registered: Apr 2004
Location: Left Coast
Posts: 7

Original Poster
Rep: Reputation: 0
Talking

I added a line to the fstab and it seems to be working now.
Thanx to all for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mounting Hard Drives Greebo Linux - Hardware 14 11-29-2005 04:53 PM
Mounting Hard Drives AndrewZorn Linux - General 2 04-03-2005 04:45 PM
mounting 2 linux hard drives milesstandish Linux - Hardware 4 03-31-2004 06:31 AM
mounting hard drives deathl Linux - Hardware 3 01-16-2004 01:17 AM
Mounting Hard Drives Q12321 Linux - Newbie 5 11-26-2003 08:50 PM


All times are GMT -5. The time now is 04:44 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration