LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 09-14-2008, 09:45 PM   #16
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15

Code:
mkdir /mnt/osboot
mount /dev/sbd1 /mnt/boot
nano /mnt/boot/grub/grub.conf
 
Old 09-14-2008, 09:47 PM   #17
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
Sorry, that second and third line should be...

Code:
mount /dev/sdb1 /mnt/osboot
nano /mnt/osboot/grub/grub.conf
 
Old 09-14-2008, 09:51 PM   #18
shickidyshade
LQ Newbie
 
Registered: Sep 2008
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by elprawn View Post
Sorry, that second and third line should be...

Code:
mount /dev/sdb1 /mnt/osboot
nano /mnt/osboot/grub/grub.conf
im doing this after i enter
Code:
chroot /mnt/sysimage
Does that sound right??
 
Old 09-14-2008, 10:00 PM   #19
shickidyshade
LQ Newbie
 
Registered: Sep 2008
Posts: 25

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by elprawn View Post
Sorry, that second and third line should be...

Code:
mount /dev/sdb1 /mnt/osboot
nano /mnt/osboot/grub/grub.conf
Ok so i followed the second and third line and I now have a blank screen that says GNU nano 2.0.6.

I am going to try to restart now (which didn't work) ... should I go back to that screen and try to reinstall something into the new grub.conf.

At least enough to get linux or windows to boot?

Thanks for help so far,
Shade

Last edited by shickidyshade; 09-14-2008 at 10:13 PM.
 
Old 09-14-2008, 10:15 PM   #20
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
After you mount /dev/sdb1, what do you get when you run...

Code:
ls /mnt/osboot
??
 
Old 09-15-2008, 10:37 AM   #21
lynnevan
Member
 
Registered: Mar 2006
Location: boise, id
Distribution: windoz, fedora, archlinux, mandriva, ubuntu, suse
Posts: 65

Rep: Reputation: 15
If I understand right, you have vista installed on the 2nd HDD, because
you device.map says
Quote:
# this device map was generated by anaconda
(hd1) /dev/sda
(hd0) /dev/sdb
and from fdisk -l you get:
Quote:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 19458 156288000 7 HPFS/NTFS
In yr bios you must have selected the vista drive to be 2nd in boot order.

Now yr trying to write grub to the MBR of the sdb. There should be no problem if you do what somebody said about using yr fedora disk and choose the "rescue option". When you get to the screen w/ the # prompt type
Quote:
chroot /mnt/sysimage
grub-install /dev/sdb"
. It should say it has done that and repeat an image of the device.map. If it's still the same, and yr grub.conf isn't hosed it should boot ok.

Re 'nano', you can't mount a drive if you can't get fedora to run, so do it after you 'chroot /mnt/sysimage' and run "grub-install /dev/sdb". I don't know if you have a boot directory during the rescue operation, but if you do, cd into /boot/grub.
Quote:
nano grub.conf
and if it comes up blank, back out. You're in the wrong place. If yr in the right place, make changes if necessary and F3 to write, and 'return' to save and either esc or ^x to quit(I forget). If there's no boot directory, type exit to get out of the chroot environment, and try what elspawn said.

Quote:
mount /dev/sdb1 /mnt/osboot
(if you still have an 'osboot' directory in /mnt. If not creat it, and mount it.
Quote:
cd /mnt/osboot/boot/grub
Type ls -l to see if yr in the /boot/grub directory. Do whatever you have to do.

If yr still having problems, post'em. Have you managed to mount fedora yet? In yr grub.conf, put "timeout" to 15. That way yr not in such a rush.

Good luck

lynnevan
 
Old 09-15-2008, 12:19 PM   #22
shickidyshade
LQ Newbie
 
Registered: Sep 2008
Posts: 25

Original Poster
Rep: Reputation: 15
Unhappy

Well my major problem was that I was still getting an Error 17 when trying to load. I originally put in the rescue cd and typed in [CODE]grub-install /dev/sdb [/CODE}. Then restarted the computer. I remained to get and Error 17. I tried to get a little crazy last night and in my rashness typed in
[CODE]grub-install /dev/sda [/CODE} and when I restarted I finally loaded a boot-grub. Now that I have this much I can see more of where the computer is looking to restart. But when it tries to default to Vista I get a screen that says
Code:
GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB
Repeated over and over and over until I turn the computer off. I am assuming that since I now have a grub menu that Ubuntu originally installed the boot grub to the sda hard drive. I tried booting into Fedora too but I really don't exactly what happened so I will check it out again when I get home tonight. I just wanted to give everyone the update to where I currently am. I can now at least tell the computer where to look for the correct file. So hopefully it will work out tonight if I can get around to working on it.


Thanks,
Shade
 
Old 09-15-2008, 12:22 PM   #23
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
Use fixmbr to put your Vista bootsector back onto sda.
 
Old 09-15-2008, 02:23 PM   #24
lynnevan
Member
 
Registered: Mar 2006
Location: boise, id
Distribution: windoz, fedora, archlinux, mandriva, ubuntu, suse
Posts: 65

Rep: Reputation: 15
I'd go into the bios first and put the vista drive as the 1st hard drive. I've heard of problems with grub and switching drive order. Then vista would be sda and fedora would be sdb, which is normal. Then use the vista rescue to fix mbr. That will get yr vista working normally and after that, use yr fedora rescue disk to do the chroot thing and grub-install and when it shows the device.map, make sure it says (hd0) /dev/sda and (hd1) /dev/sdb. If it doesn't, it gives you an opertunity to fix it and run grub-install again.

After that, it SHOULD work right.

Unless fedora doesn't like not being the 1st hard drive any more. Then you may have to re-install fedora.

luck
 
Old 09-15-2008, 03:27 PM   #25
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
I have Windows and Linux both on my second hard drive and even though it's seen as sda by gentoo (the first drive being hdc) and sdb by Fedora, Grub sees it as hd0.
 
Old 09-15-2008, 09:05 PM   #26
shickidyshade
LQ Newbie
 
Registered: Sep 2008
Posts: 25

Original Poster
Rep: Reputation: 15
Talking

So this is the biggest update of this thread to date. I am now able to boot into Windows Vista!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I don't think I will ever be this excited to get back into Vista in my entire life, lol. Ok so moving on to how I fixed this.

I used
Code:
grub-install /dev/sda
And I believe this re initiated the boot grub. This boot grub does however remind me more of a Ubuntu boot grub over a fedora boot grub but who cares I can get some things to boot. However it had the two harddrives backwards so I had to go back into the boot/grub/grub.conf and edit the file to switch hd1 and hd0 on both linux and windows drives.

Now I am trying to reinstall Linux since I feel I have found the solution to the problem is installing the boot grub drive to be sda, but when I get into where the X something takes over I get a wonderful screen of blues and oranges or greens and reds and oranges. Directly before the screen goes out anaconda seems to find to locate my video card and seems to be activating it to be used during the installation process. Do I need to create a new boot disk?

Thanks for all the help so far I would have never been able to get this far without all your help,

Shade

Last edited by shickidyshade; 09-15-2008 at 09:14 PM.
 
Old 09-15-2008, 10:44 PM   #27
lynnevan
Member
 
Registered: Mar 2006
Location: boise, id
Distribution: windoz, fedora, archlinux, mandriva, ubuntu, suse
Posts: 65

Rep: Reputation: 15
Elspawn, you must have a very interesting drive setup. Any PATA drives involved? I've never seen GRUB get confused.
For some reason, when I installed suse & fedora on a usb drive, they both called it sda, but grub knew better. Mandriva did ok for a while, w/ hda & sda, but later decided sda came before hda. Only ubuntu has kept the faith and is still correct. You can run grub-install from inside a shell if your drive order is correct, but not if it's screwed up like mine - I can only use fed9 (the only ide drive) and ubuntu usb(hd1,7).

shickidyshade, yr grub boot screen is,if you want Fedora's,
Quote:
splashimage=(hdX,x)/boot/grub/splash.xpm.gz
or you can just use colors:
Quote:
color light-green/black yellow/red
. It shouldn't look anything like ubuntu - orange vs blue? I don't know what OS yr grub mbr was written by.

Maybe the funny colors come from ubuntu trying to run usplash or splasy. Or, have you commented out hidden in the grub menu?
Quote:
#hiddenmenu
Personally, I keep my windoz mbr virgin using DISKSAVE and/or Diskprobe, but don't know if they work on vista and require a floppy drive which everybody has decided is unnecessary in these enlightened times. With DISKSAVE, I backup my unmodified mbr and bootsector (mbr & vbr). Then if grub ever gets confused I boot from the floppy and restore my original mbr. There's a way to use "dd" to save yr mbr too, but I haven't ever used it, so won't say anymore.

There an easy way to make a grub floppy if yr interested. Once you get grub onto a floppy, it's a lot less nerve racking editing things, and there's also a free prog by HP that can put it on a thumb drive for you either from the grub floppy, or from a file made by "dd".
 
Old 09-16-2008, 08:32 AM   #28
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
Yeah there's a PATA drive involved. HDA, HDB and HDD are optical drives, HDC is a PATA hard disk and SDA is an SATA hard disk. Just to make things nice and confusing, though, Fedora calls HDC SDA and SDA SDB.

Code:
Disk /dev/hdc: 102.9 GB, 102935347200 bytes
255 heads, 63 sectors/track, 12514 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xed8360d9

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1               1        9965    80043831    7  HPFS/NTFS
/dev/hdc2   *        9966       12514    20474842+  af  Unknown

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2b792b78

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        6527    52428096    7  HPFS/NTFS
/dev/sda2            6528        6553      208845   83  Linux
/dev/sda3            6554       13328    54420187+   f  W95 Ext'd (LBA)
/dev/sda4           13329       38913   205511512+  83  Linux
/dev/sda5            6554        6815     2104483+  82  Linux swap / Solaris
/dev/sda6            6816       13328    52315641   83  Linux
In fact, the trouble I was having with GRUB is why I switched to Gentoo. It was then that I saw that Gentoo's grub.conf called my SATA drive hd0 and Fedora's was calling it hd1. Would switching it have helped in hindsight? Not sure. Can't be bothered to go back now. I prefer Gentoo for several reasons, but that's another matter.
 
Old 09-16-2008, 11:34 PM   #29
lynnevan
Member
 
Registered: Mar 2006
Location: boise, id
Distribution: windoz, fedora, archlinux, mandriva, ubuntu, suse
Posts: 65

Rep: Reputation: 15
Yeah, like I said, fedora, suse & later mandriva all decided my usb drive was the first hard drive as listed by fdisk, sfdisk, and the rest of the operating system agreed, except GRUB (there, in all cases, the ide drive is hd0). Fedora GRUB will (so far) consider the 1st ide drive hd0(sda), the 2nd, hd1(sdb), the next external will be hd2(sdc). Even if the rest of the OS has it upsidedown.
Haven't tried SATA yet, although I've got the fixtures, my drives just keep working. I don't know how a Linux OS decides between an ide drive and a sata drive which is hd0.
I don' know how you avoided yr optical drives being labeled hca, hcb, hcd. Or what kind of filesystem "af" is. Maybe it's a gentoo thing.
Me and Gentoo didn't get along the one time I tried it, so I don't know much about it. Are yr optical drives DVD-rw or MO?

Not nosey, just curious.
 
Old 09-17-2008, 01:03 AM   #30
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
When I upgraded Fedora Core 6 to Fedora 9, I couldn't get past stage 1 of grub and trying to load via rescue mode said the image was corrupt. Fedora's GRUB listed the boot drive as hd1 but the Gentoo GRUB as hd0, so perhaps they differ or perhaps Anaconda got it wrong? :S

af is HFS+ (Mac OS X).

I have a separate DVD reader and Writer for on the fly copying and a separate CD-RW that can write the full 99:59 on 99 minute CDs.

In fstab they're /dev/dvd2, /dev/cdrw1 and /dev/dvdrw (less confusing that way).
 
  


Reply

Tags
boot, fedora, grub, install, ubuntu


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
Ubuntu 7.10 Dual Boot with XP, ubuntu partition deleted, grub 1.5 error 22 narchy Linux - Newbie 11 02-07-2011 03:54 AM
installed Ubuntu, can't boot, grub error 18, can I fix without a floppy drive? raymondvillain Linux - Newbie 8 05-23-2008 08:32 AM
GRUB error 21 when trying to boot XP after installing Ubuntu 7.04 on seperate hdd neilksos Linux - Newbie 16 05-05-2008 08:07 AM
Sofware RAID 1 + Fedora Core 3 + Boot Error L1 + GRUB 21 ERROR najeebsyed2 Linux - Hardware 0 10-25-2007 01:20 PM
Ubuntu Warty Live CD grub error 21 on boot PBSchmidt Linux - Distributions 2 01-24-2005 11:20 AM


All times are GMT -5. The time now is 12:41 PM.

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