LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-21-2005, 04:34 PM   #1
daysinn
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Rep: Reputation: 0
connecting two hard drives


I have two hard disks. One is 10gb (ibm)and and other is 15gb (wester digital). I have installed fedora core 3 on both of my hard drives but for some unknow reason I can't boot from my 2nd hard drive. I thing the boot loader has the problem. Anyway my question is how do i access my 2nd hard drive? My first hard drive works fine but I want to acces my 2nd hard drive so that I can back up my jpeg, and other doucments and reformat the 2nd hard drive.
 
Old 04-21-2005, 04:41 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
You should be able to access the second hard drive in the same way as the first, by setting up mount points in /etc/fstab.

Various install/configure utilities will do this for you, but you can equally do it yourself. http://www.tldp.org/LDP/sag/html/x13...unt-and-umount is a good place to start reading.

If you have an IDE disk, then you probably want to use hdb, hdc or hdd instead of hda.
 
Old 04-21-2005, 04:45 PM   #3
downfall
Member
 
Registered: Dec 2004
Location: Victoria, BC, Canada
Distribution: Gentoo
Posts: 37

Rep: Reputation: 15
From the sounds of it, your second hard disk isn't being mounted, so punch the following into your favourite terminal:

Code:
#  If need be, replace the appended '1' with whatever partition you want to access

su

mkdir /mnt/hdb1
mount /dev/hdb1 /mnt/hdb1
You should then be able to see the drive.
 
Old 04-23-2005, 03:27 AM   #4
daysinn
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for your reply. I have mounted the hdb, but i don't see any of my files on the drive. Can you please provide more details. I''m a new to linux. Thank you.
 
Old 04-25-2005, 03:12 PM   #5
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Quote:
Originally posted by daysinn
Thank you for your reply. I have mounted the hdb, but i don't see any of my files on the drive. Can you please provide more details. I''m a new to linux. Thank you.
Please post the command you use to mount it, so we can see what you are actually doing.

It sounds like you are probably mounting the wrong partition on the disk. You probably want the partition that corresponds to your old /home directory. Without knowing what files you can see, I can't guess at what you might have mounted, except it could be / or /boot if you chose the first partition.

This will list the different partitions on your system:
Code:
su -c '/sbin/fdisk -l'
You probably want to mount something like /dev/hdb2, /dev/hdb5, or something like that. Try each one and see what you get
 
Old 04-26-2005, 04:43 PM   #6
daysinn
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Original Poster
Rep: Reputation: 0
when i type in this command: su -c '/sbin/fdisk -l' , I get the following:
[root@localhost utpanchal]# su -c '/sbin/fdisk -l'

Disk /dev/hda: 10.1 GB, 10141286400 bytes
255 heads, 63 sectors/track, 1232 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 1232 9791617+ 83 Linux

Disk /dev/hdb: 15.3 GB, 15382241280 bytes
255 heads, 63 sectors/track, 1870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 1870 14916352+ 8e Linux LVM
[root@localhost utpanchal]#
I like to access the files on /dev/hdb2, so i try to mount and I get this
[root@localhost utpanchal]# mount /dev/hdb2
mount: can't find /dev/hdb2 in /etc/fstab or /etc/mtab
[root@localhost utpanchal]#
 
Old 04-26-2005, 05:34 PM   #7
power_pole
LQ Newbie
 
Registered: May 2004
Location: Australia, QLD
Distribution: Redhat, Fedora, Debian, Windoze 2K, any other distro I get my hands on :)
Posts: 20

Rep: Reputation: 0
use this


mkdir /mnt/hdb2

mount /dev/hdb2 /mnt/hdb2

the not found in fstab means is just telling you
that mount doesn't know where you want to
mount the drive.
 
  


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
two hard drives slinky2004 Linux - Hardware 2 12-26-2004 11:32 PM
External Hard Drives/Hard Drives ddrfreak Mandriva 1 12-16-2004 06:12 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM
using 2 hard drives sparkplug55 Linux - Newbie 2 09-11-2003 12:40 PM
How do you use two hard drives? calimer Linux - Hardware 2 07-08-2002 05:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:17 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