LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-10-2007, 04:33 PM   #1
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Rep: Reputation: 15
trouble with grub and SATA drives? can't boot


Here's my setup...

DFI Ultra II LanParty motherboard

2x 160gig SATA drives (sda, sdb)
2x 300gig standard IDE drives (hda, hdb)

I made a mistake and accidentally formatted the 2x 300 gig drives during an OS install. I have some very important data on these drives I need to recover. Luckily I haven't written anything on the drives after formatting.

Basically I have these 2x 160 gig SATA drives that I can use to install an OS on and I need to boot from them. If I JUST have the SATA drives in my machine and install Ubuntu, I can boot and have no problems.

If I have either of the standard IDE drives installed, Grub won't boot. For example, lets say I have the following drives connected and setup:

Ubuntu installed on sda
Nothing on sdb
Nothing on hda

Install ubuntu, restart, Grub will come up but say that there is nothing on the partitions.

I can have just sda and sdb installed, then install ubuntu, and boot with no problems.

It doesn't make any sense to me. Does anyone have any ideas?
 
Old 01-10-2007, 05:21 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
The drive order is changing - you can probably fix this in the device.map and reinstall grub.

If you are only looking to recover, just use a liveCD, then the problem no longer exists. You can even run from memory, and release the CD drive is you have enough memory.
 
Old 01-10-2007, 05:41 PM   #3
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00
The drive order is changing - you can probably fix this in the device.map and reinstall grub.

If you are only looking to recover, just use a liveCD, then the problem no longer exists. You can even run from memory, and release the CD drive is you have enough memory.
Thanks for the reply. I'm just getting back into using linux after a 3 year absence, so I'm a little rusty. Care to go into more detail on how to perform the tasks you recommended?
 
Old 01-11-2007, 01:18 AM   #4
thtr2k
Member
 
Registered: Mar 2005
Location: Australia
Posts: 71

Rep: Reputation: 15
i just wonder how or what to do with the live cd to the device.map. Can you get more specific like 'command' from the terminal. because i also got this Grub error as well. How do i fix this the error and able to boot my Ubuntu

My system is quite similar to the problem described (i have 1 Sata, 2 Pata drives). I installed Windows in Sata, Mandriva in (PATA IDE) hda, Ubuntu in (PATA IDE) hdb
My bios boot is 1) Sata 2)IDE 200gb (hda) 3) IDE 80gb (hdb). I hope i can fix the problem. Thanks

Quote:
Originally Posted by syg00
The drive order is changing - you can probably fix this in the device.map and reinstall grub.

If you are only looking to recover, just use a liveCD, then the problem no longer exists. You can even run from memory, and release the CD drive is you have enough memory.
 
Old 01-11-2007, 08:31 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
What I think is happening is something like this:
- only S-ATA drives in, they are drives 0 and 1. No problem.
- add the P-ATA (aka IDE) drives, and the BIOS reconises them as drives 0 and 1 - the S-ATA get moved to 2 and 3, and this is how grub will now see them.

If you are only looking to do data recovery, I would use a liveCD - I use Knoppix, but there are special recovery liveCDs out there.
This avoids any embarrasing mess-ups during a (potentially) unnecessary install.

If you want/need to install a Linux distro, make the S-ATA drive of choice your BIOS bootdrive, and then start the install, with all drives installed. Grub should be fine after that.
If not, you will need to adjust /boot/device.map, but that shouldn't be needed.

@thtr2k, you should probably start a new thread. Will need more info - which loader are you using (Windoze, grub ??), is any systems bootable - things like that.
 
Old 01-11-2007, 08:53 PM   #6
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00
What I think is happening is something like this:
- only S-ATA drives in, they are drives 0 and 1. No problem.
- add the P-ATA (aka IDE) drives, and the BIOS reconises them as drives 0 and 1 - the S-ATA get moved to 2 and 3, and this is how grub will now see them.

If you are only looking to do data recovery, I would use a liveCD - I use Knoppix, but there are special recovery liveCDs out there.
This avoids any embarrasing mess-ups during a (potentially) unnecessary install.

If you want/need to install a Linux distro, make the S-ATA drive of choice your BIOS bootdrive, and then start the install, with all drives installed. Grub should be fine after that.
If not, you will need to adjust /boot/device.map, but that shouldn't be needed.
I want to install linux. My BIOS is a little confusing in that it just lets me specify the boot order as HD-0, HD-1, HD-2, HD-3, etc. I don't really have any way of telling which drive is which in the bios.

So, I've tried installing Ubuntu with ALL drives plugged in. The install is fine, but when I reboot and it gets to Grub, it just says "GRUB GRUB GRUB" etc over and over, repeating.

How do I go about getting to my device.map if I boot off of the live cd? Any other ideas?
 
  


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
2 hard drives, XP on my main sata drives, 10.2 on my IDE LILO doesnt show on boot up Dachy Slackware 14 01-03-2008 07:01 AM
Trouble with Slack 10.2 RAID 0 install on SATA drives vonst Slackware - Installation 15 07-21-2006 02:30 PM
fedora core 5 and windows xp (two SATA drives), grub won't boot winXP lankydenny Linux - Newbie 20 06-13-2006 12:48 AM
fedora core 5 and windows xp (two SATA drives) , grub won't boot winXP lankydenny General 4 06-11-2006 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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