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.
|
 |
12-31-2007, 02:21 PM
|
#1
|
LQ Newbie
Registered: Apr 2006
Posts: 25
Rep:
|
two hard drives with HDA designator
Simple question.
I installed fedora core 4 on a hard drive with HDA designator. Since then, I bought a slightly larger HD and installed fedora 8 on it. When I make the larger hd primary and the smaller hd secondary via the pc ribbon cable, fedora 8 doesn't recognize the smaller hd and I suspect it's because both were originally installed as HDA at different times. So, how do I modify the smaller hd to become HDB?
All I really want to do, is mount the smaller hd so I can copy files between the hard drives.
Thanks much folks!!
|
|
|
12-31-2007, 03:15 PM
|
#2
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852
|
AIUI, the linux kernel determines which drive is which based on the bus location, bus 0 master is hda, bus 0 slave is hdb, bus 1 master is hdc, etc. But the location of the files in the tree depends on where the partitions are mounted, and that's determined by the /etc/fstab file.
Are you saying that the drive is now completely unavailable? Or does it just not boot up correctly or something? Try running 'cat /proc/partitions' to see what block devices your kernel is actually seeing.
|
|
|
12-31-2007, 05:15 PM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,399
|
I suspect this is probably a (hardware) jumper issue on the drives themselves. If either/both is specifically jumpered for master/slave, moving them around like that isn't going to work as you want.
Make them both "cable select" - and use a new "80" ribbon cable, not the old grey "40" cable.
|
|
|
01-05-2008, 10:03 AM
|
#4
|
LQ Newbie
Registered: Apr 2006
Posts: 25
Original Poster
Rep:
|
This morning I noticed a partition (/boot) on my smaller hd was visible under 'computer'. When I mounted the volume, I actually have visibility into the /boot partition of my second hd.
Cat /proc/partitions provides (in part)
major minor #blocks name
8 0 9999864 sda
8 1 200781 sda1
8 2 9791017 sda2
8 16 4210920 sdb
8 17 104391 sdb1
8 18 4104607 sdb2
........
So AIUI is seeing a sda, and sdb. Trick is to mount more than just a partition from the second hd.
two options that I'm working on are
a) in menu.lst add
map (hd0) (hda)
map (hd1) (hdb)
b) in fstab
change
LABEL=/boot /boot ext3 defaults 1 2
to
LABEL=Storage /mydata ext3 defaults 1 2
Any suggestions, direction, greatly appreciated
|
|
|
01-06-2008, 11:38 PM
|
#5
|
LQ Newbie
Registered: Apr 2006
Posts: 25
Original Poster
Rep:
|
Well, option a was a flop.
Any suggestions of how to progress, David?
|
|
|
01-07-2008, 01:09 AM
|
#6
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
every filesystem in linux has a mount point, which is a directory, usually in /mnt or /media, although sometimes it is a directory right off the root. The boot drive has the root file system, and the other drive needs to be mounted somewhere. In a twisted sort of way you are correct that since both were /dev/hda at one time, it's messing things up. But it's messings things up because you need to edit /etc/fstab, and put in the correct settings when you swap the hard drives.
Say you have
/dev/hdb1 /data ext3 defaults 0 0
in /etc/fstab, but there is no /data directory in /. You need to make that directory, and mount the file system:
mkdir /data
mount /data
|
|
|
All times are GMT -5. The time now is 05:59 AM.
|
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
|
|