LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-08-2007, 06:23 AM   #1
yanewbie
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
my old /dev/hda became /dev/hdb due to a new hard drive


Hi!
I have recently installed a new hard drive(a Seagate Barracuda) and set my old hard drive as the master. When I boot, my grub boot-screen appears properly and I have no problems if I boot into my Windows installation, but when I boot into my Fedora Core 3 installation, it stops after printing a couple of lines after "Press 'I' for interactive startup" (or something similar) and says it can't start because of problems with the filesystem, and drops me to a shell. With my little knowledge and typing 'help' every third time, I figured out that my old hard-drive became /dev/hdb now(using fdisk). Previously, it used to be /dev/hda, and my Fedora installation was on /dev/hda3. So, I am not able to boot into my Fedora installation.
Can someone tell me how I can make the system recognize that my old hard-drive is /dev/hda and the new one must be /dev/hdb?

Thanks,
Yanewbie.
 
Old 12-08-2007, 10:55 AM   #2
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Hi,


I could tell you that a quick fix would be using a LiveCD, mount hdb3 using that livecd and then chrooting to hdb3 to modify the /etc/fstab file so you can have something like:

Code:
/dev/hdb3  /  filesystem....
Instead of:

Code:
/dev/hda3  /  filesystem....

But....


You should check the connections you've made, are you really sure that you set the old-hard drive as master? because the problem, as you showed, says otherwise.

It could happen if the new drive is a S-ATA, (AFAIK) sata drives are loaded first than ata drives.

Also, if you can, using the livecd you can use fdisk -l and post the results, will be great, that will let us know your current hd setup.



Regards
 
Old 12-09-2007, 11:55 AM   #3
yanewbie
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Acron,

I did a 'cat /etc/fstab | grep hda3' and came up with nothing in the output. The first line of my fstab file says:
LABEL=/1 / ext3 defaults 1

It's written in the forum advice that model no.s make no sense, but anyway, my old HD is a Seagate Barracuda ST380011A, which is an "Ultra ATA" HD, and the new one is a Seagate Barracuda ST3320620AV which also an "Ultra ATA".

If my old hd is the master, I boot to the old grub boot-screen, but if my new hd is the master, I directly boot into the Windows installation on it. Since the grub screen is coming up, I guessed that the old hd is the master right now. I put the jumper on the second slot from the left on the new drive(I read that you ought to put the jumper on the first slot from the left on the drive you intend to be the master, but this doesn't seem to work somehow in my case: it seems to boot into the new hd's Windows installation if I do this.) However, if I look at the BIOS, it says my new drive is the PATA Primary Master and the old drive is the PATA Primary Slave. I don't understand this since I boot into the grub screen.Do you think exchanging the data cables will do the trick?

Sorry if all this is confusing.

I did a 'fdisk -l' in the shell I was dropped to and this is what I came up with:
******************************************************
Disk /dev/hda: 320.0 GB, <blah> bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = <blah blah>

Device Boot Start End Blocks Id System
/dev/hda1 * <blah blah>
/dev/hda2 <blah blah>
/dev/hda5 <blah blah>
/dev/hda6 <blah blah>
/dev/hda7 <blah blah>

Disk /dev/hdb: 80.0 GB, <blah> bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * <blah blah> FAT32(LBA)
/dev/hdb2 <blah blah> Ext'd(LBA)
/dev/hdb3 <blah blah> Linux
/dev/hdb4 <blah blah> Linux swap
/dev/hdb5 <blah blah> FAT32
/dev/hdb6 <blah blah> FAT32
/dev/hdb7 <blah blah> FAT32
******************************************************
(Sorry about this output... I had to type this since I can't paste the output since the root drive is being mounted readonly in the shell to which I am being dropped: in fact, this is another mystery to me: it seems to be mounting the root drive alright, and then during the boot process, it says couldn't find /dev/hda3 and drops me to a shell)

I know that my old hd is 80 GB and the new hd is 320 GB, and I know that the second disk's partition layout is the old hd's layout.

What do you think the problem is?

Thanks,
yanewbie

Last edited by yanewbie; 12-09-2007 at 12:14 PM. Reason: Demarcated the output of 'fdisk -l' clearly
 
Old 12-09-2007, 11:25 PM   #4
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Odd...


Let see, first, I want to have something clear

When you say 'cat /etc/fstab | grep hda3' you're doing that after the chroot right? I know, silly question but I just want to know if you aren't checking the fstab of the liveCD instead of the fstab of your hard drive. If that's not the case and you're doing cat after being chrooted in the mounted linux partition, you could still try to edit the fstab and change LABEL=1 to /dev/hdb3

If the BIOS is showing the new drive as the primary master, something is wrong with the connections, you could try to remove the jumper in the new hard drive, turn on the machine and check if the BIOS is still saying that the new hard drive is the primary master, also, check that the old drive is jumped as Master.

I know, the grub thing is weird and I really can come up with and idea to that right now to be honest, but anyway, you can still try the things I've said to check.



Regards
 
  


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
Install lilo on external drive (/dev/sda), then boot as INTERNAL (/dev/hda)? slackware-elf Slackware 3 08-18-2007 04:51 PM
/dev/hda under lilo.conf even thoug my HD is under /dev/hdb Basel Slackware 8 10-27-2005 06:00 PM
dd if=/dev/hda of=dev/hdb taking forever to complete fechin Linux - Hardware 7 06-19-2005 12:04 AM
Clone with dd if=/dev/hda of=/dev/hdb question wrc1944 Linux - Hardware 2 11-28-2004 09:10 AM
How can I boot either one of my hard drives /dev/hda or /dev/hdb, I have RH9 and FC2 omogunkristi Linux - General 1 06-21-2004 05:11 AM

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

All times are GMT -5. The time now is 08:03 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
Open Source Consulting | Domain Registration