LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-28-2008, 04:14 PM   #1
dreamer.redeemer
LQ Newbie
 
Registered: Jan 2008
Distribution: Ubuntu, Suse 11, etc...
Posts: 20

Rep: Reputation: 0
GRUB hard disk error on fresh ubuntu RAID install


Clean install of Gutsy Server, set up partitions manually for softwareRAID like so:
Drive 1: auto partitioned into 2 partitions, root and swap
drive 2: same as drive one
changed all 4 partitions to "use as physical volume for RAID"
disks 3 and 4: one partition, use for RAID.
set up RAID as RAID1, 3 different devices: 1 for root, 1 for swap(disks 1 and 2), 1 for home (on disks 3 and 4)
went back to partitioner, set raid device 1, which happened to be the home partition, to mount as /home
set raid device 2 to mount as /
set raid device 3 to mount as swap
wrote changes to disk, finished installation, and got the "GRUB hard disk error"

I know from googling that this means grub can't map the disk geometry, which isn't very suprising.
Booted into knoppix and both RAID devices are there, and root has all the stuff in it it's supposed to have.

Did i do something wrong? possibly RAIDing the swap is wrong? What do i do next?

Thanks!
 
Old 01-28-2008, 04:22 PM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
http://tldp.org/HOWTO/Software-RAID-HOWTO-7.html

if that fails....re-partition so /boot is first partition non-raided
 
Old 01-28-2008, 06:05 PM   #3
dreamer.redeemer
LQ Newbie
 
Registered: Jan 2008
Distribution: Ubuntu, Suse 11, etc...
Posts: 20

Original Poster
Rep: Reputation: 0
looks great, thanks. I got ubuntu to load by unplugging the second hd in the array. Now, trying to edit the grub configuration, typing "device (hd0) /dev/sda" as well as sdb gives "Error 15: file not found"

any suggestions?
 
Old 01-28-2008, 10:59 PM   #4
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
since you mention sda etc I assume you have sata drives?

do you have a /boot/grub/device.map file and if so can you post contents.

mine is
(fd0) /dev/fd0
(hd0) /dev/sda

Yes I use a floppy drive to flash my bios. Yes I have only one sata I do not like any raid.

in case our replies are delayed....pls check out my troubleshooter...it won't help with the device.map file but it will help you see if grub can find its /boot partition or subfolder.
 
Old 01-29-2008, 11:22 AM   #5
dreamer.redeemer
LQ Newbie
 
Registered: Jan 2008
Distribution: Ubuntu, Suse 11, etc...
Posts: 20

Original Poster
Rep: Reputation: 0
Yes, they are all SATA.

(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
(hd3) /dev/sdd
(hd4) /dev/sde

in case you need it /proc/mdstat:

md1 : active raid1 sdb1[0] sdc1[1](S)
x blocks [1/1] [U]


md3 : active raid1 sda5[0]
x blocks [1/1] [U]


md2 : active raid1 sda1[0]
x blocks [1/1] [U]

for md2 and md3 the other hard drive is disconnected. Now that i'm looking at that that doesn't look quite right?

anyway, i took a quick glance at your guides last night but wasn't certain what i was looking for. I'll give it another go.
Thanks for your help!

edit:

So i went ahead and reinstalled, this time leaving /boot and swap out of the raid. No luck, i get the same error.
As part of the process of cutting out variables i removed that last drive, so now device.map looks like:

(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
(hd3) /dev/sdd

I've tried many different things trying to get this to work, maybe it's time to try a completely different approach. What i'm thinking is i could just get a small drive for the OS and back it up manually, then have the rest with all the data on them RAIDed. Are there any packages that just allow you to copy an entire hard drive to another drive?

Last edited by dreamer.redeemer; 01-29-2008 at 12:03 PM. Reason: more info
 
Old 01-30-2008, 02:32 AM   #6
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
yeah well this is dd but first some references that may help

software raid howto
http://tldp.org/HOWTO/html_single/Software-RAID-HOWTO/

I do not use raid...but the installer needs to set up the raid devices correctly....

http://www.gentoo-wiki.com/HOWTO_Gen..._Software_RAID
 
Old 01-30-2008, 02:33 AM   #7
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
yeah well this is dd but first some references that may help

software raid howto
http://tldp.org/HOWTO/html_single/Software-RAID-HOWTO/

I do not use raid...but the installer needs to set up the raid devices correctly....

http://www.gentoo-wiki.com/HOWTO_Gen..._Software_RAID
 
  


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
GRUB hard disk error NinjaGeek Linux - Software 2 04-11-2007 10:57 AM
FastTrak Raid causing Buffer I/O Error on fresh FC2 install on a separate IDE drive abunn Linux - Hardware 3 10-21-2004 12:22 PM
grub hard disk error gtanghookup Linux - Software 7 04-24-2004 12:33 AM
GRUB Hard Disk Error joe_wilkins2001 Linux - Newbie 1 01-25-2004 04:29 PM
Gentoo Grub Error (Fresh Install) dkaplowitz Linux - Distributions 6 11-21-2003 02:55 PM


All times are GMT -5. The time now is 11:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration