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 |
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.
|
 |
05-30-2004, 06:11 PM
|
#1
|
LQ Newbie
Registered: Apr 2004
Location: Left Coast
Posts: 7
Rep:
|
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.
|
|
|
05-30-2004, 06:28 PM
|
#2
|
Member
Registered: Oct 2003
Location: Portugal
Distribution: Gentoo
Posts: 116
Rep:
|
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.
|
|
|
05-30-2004, 06:42 PM
|
#3
|
Member
Registered: Jul 2003
Location: London
Posts: 548
Rep:
|
# mount /dev/hda2 /mnt/somewhere
assuming that it's on the first IDE channel of the first controller. What's the output of this?
|
|
|
05-30-2004, 07:13 PM
|
#4
|
LQ Newbie
Registered: Apr 2004
Location: Left Coast
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
05-30-2004, 08:18 PM
|
#5
|
Member
Registered: Aug 2003
Location: Texas, USA
Distribution: Slackware 9.1, SuSE 9.1
Posts: 245
Rep:
|
hda2 means a partition within the first hard drive. Try hdb instead.
|
|
|
05-30-2004, 08:51 PM
|
#6
|
LQ Newbie
Registered: Apr 2004
Location: Left Coast
Posts: 7
Original Poster
Rep:
|
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
|
|
|
05-30-2004, 09:01 PM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,800
|
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.
|
|
|
05-30-2004, 09:14 PM
|
#8
|
LQ Newbie
Registered: Apr 2004
Location: Left Coast
Posts: 7
Original Poster
Rep:
|
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'
|
|
|
05-30-2004, 09:30 PM
|
#9
|
Moderator
Registered: Aug 2002
Posts: 26,800
|
Post what you actually typed on the command line
|
|
|
05-30-2004, 09:52 PM
|
#10
|
LQ Newbie
Registered: Apr 2004
Location: Left Coast
Posts: 7
Original Poster
Rep:
|
[root@localhost root]# mount -t <ext3> /dev/hdb1 /mnt/<hdb1>
bash: syntax error near unexpected token `newline'
|
|
|
05-30-2004, 10:02 PM
|
#11
|
Moderator
Registered: Aug 2002
Posts: 26,800
|
Sorry, it should be:
mount -t ext3 /dev/hdb1 /mnt/hdb1
I didn't expect my posts to be taken so literally 
|
|
|
05-31-2004, 07:59 AM
|
#12
|
LQ Newbie
Registered: Apr 2004
Location: Left Coast
Posts: 7
Original Poster
Rep:
|
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?
|
|
|
05-31-2004, 08:32 AM
|
#13
|
Member
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229
Rep:
|
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.
|
|
|
05-31-2004, 09:13 AM
|
#14
|
LQ Newbie
Registered: Apr 2004
Location: Left Coast
Posts: 7
Original Poster
Rep:
|
I added a line to the fstab and it seems to be working now.
Thanx to all for the help.
|
|
|
All times are GMT -5. The time now is 09:50 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
|
|