LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-18-2004, 02:27 PM   #16
MrOuija
Member
 
Registered: Jan 2004
Location: California
Distribution: SuSE10.1, Ubuntu Edgy, Fedora 7
Posts: 30

Original Poster
Rep: Reputation: 15
Bootsector DATA


When I look at the BS data that I've copied with the dd command with less, I can see LILO and GRUB in there- I don't think this is right; I don't think the bootloader is correctly writing itself (or overwriting itself) to the bootsector. If it's not being written correctly, it's not going to be extracted correctly which would explain my problem.

The SuSE 9 install disc can boot Linux, what commands is it using to do so? Any way to check?
 
Old 01-20-2004, 10:59 AM   #17
djbello
LQ Newbie
 
Registered: Jan 2004
Location: Chicago
Posts: 2

Rep: Reputation: 0
Same Problem, different distro

MrOuija,

I have the same problem with Fedora Core 1. Due to conflicts with my ATI Radeon 9800 Pro, I had to figure out a way to get the system booting into init 3 mode (w/o X). Obviously, GRUB was the bootloader of choice because the LILO package wasn't even installed at all.

I used the rescue image from the original boot CD to boot into rescue mode, chroot'ed to make /mnt/sysimage the new root folder; then I looked for the LILO package on all three CDs and for sure found it on the last one, installed LILO package; finally I made a copy of a file called lilo.conf.anaconda, which was already prepared by the installation script on the fly through the installation process.

Now, here's what: I have a SATA Raid Volume that hold my Windows XP, and I have a regular ATA drive that is connected to the IDE port on the motherboard. The XP partition is NTFS only, and the IDE drive has the following partitions:

/dev/hda1 -> /boot (100megs, to stay below the 1024 cyl. limit)
/dev/hda2 -> / (30+gigs)
/dev/hda3 -> swap (1 gig)
/dev/hda4 -> extended partition
/dev/hda5 -> fat32 (~8 gigs)

Right. So, on my IDE drive I don't have a primary DOS partition. Okay? Because that would allow the XP installation to put boot.ini on to the IDE drive. That means that ntldr and boot.ini are, in fact, on the SATA Raid Volume in the NTFS partition.

This post made it clear that dd .... bs=512 count=1 is needed, so I extracted the LILO bootloader from the first bootsector of /dev/hda1. With the same lilo.conf that I used to write the loader to the first boot sector, I also created a boot sector on a floppy disk by typing:

lilo -b /dev/fd0

I'd say that at this point, both floppy disk and /dev/hda1 have a valid and exactly the same boot sector on it using LILO. By the way, the directive boot= in the lilo.conf determines the device/partition that holds the boot sector, so changing that directive to point to the floppy disk is wrong in my eyes. I also found that the directive 'linear' breaks the process of putting the bootsector on the drive, so I changed that to 'lba32' as well.

I put the floppy in the drive and the BIOS boots from the floppy; then a prompt appears, I hit enter, and voila: there's my Fedora (booting the kernel image off the /dev/hda1 partition, which is pretty fast).

Then, I use the file that I already copied to my C:\ drive (remember its NTFS on a SATA Raid), I choose "Linux" and the screen goes blank and it says:

LI (blinking cursor)

Long story short, my suggestion to MrOuija is to use a floppy disk ;-))) Anybody reading this post that knows what's going on with ntldr and that 512 bytes long file with the boot sector?

Thanks for any suggestions... ;-)

P.S.: Sorry for the long post and for sounding a bit fuzzy. It's kinda hard to explain what happened on your screen/PC to somebody else. Right ? ;-)
 
Old 01-20-2004, 12:17 PM   #18
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Try the bootpart program I mentioned in the previous post, it works better than extracting the raw bootsector with dd.
 
Old 01-20-2004, 03:28 PM   #19
MrOuija
Member
 
Registered: Jan 2004
Location: California
Distribution: SuSE10.1, Ubuntu Edgy, Fedora 7
Posts: 30

Original Poster
Rep: Reputation: 15
I have tried it

I've tried just about everything- with no success. Methinks that when the system tries to boot the .lin file from the RAID array- it loses the other half of striped data located on the second physical drive and takes a yit- In other words- Only half of LILO/GRUB/WTF is loading- causing errors, because the system has no clue how to read a RAID partition. This is why I tried moving the bootsector to a FAT32 partition on the Linux drive, again, with no luck. I think Im just going to be booting off the CD for a while
 
Old 01-20-2004, 08:09 PM   #20
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Does grub even recognise the drive, ie when u're in the grub console(using a grub bootdisk, no linux) does it recogise your harddisk configuration(does root (hd1,0) etc work). Tried installing grub into the mbr?
 
Old 01-20-2004, 11:36 PM   #21
MrOuija
Member
 
Registered: Jan 2004
Location: California
Distribution: SuSE10.1, Ubuntu Edgy, Fedora 7
Posts: 30

Original Poster
Rep: Reputation: 15
Can't

The MBR is striped across 2 hard drives- It can't write correctly to it, and thus- other information will be overwritten. Tried this once already.
 
Old 01-21-2004, 08:32 AM   #22
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 4,064

Rep: Reputation: Disabled
Re: Can't

Quote:
Originally posted by MrOuija
The MBR is striped across 2 hard drives...
Really? Are your raid stripes smaller than 512 bytes?
 
Old 01-21-2004, 10:39 AM   #23
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
If grub is able to recognise the raid volume, you can try install grub into the mbr of the linux drive, set in bios to boot from it then add appropriate entries to menu.lst to load windows.
 
Old 01-21-2004, 01:50 PM   #24
MrOuija
Member
 
Registered: Jan 2004
Location: California
Distribution: SuSE10.1, Ubuntu Edgy, Fedora 7
Posts: 30

Original Poster
Rep: Reputation: 15
No

They aren't, not now that I think about it. They're 64k.
 
Old 03-04-2004, 03:52 AM   #25
DarkManZGZ
LQ Newbie
 
Registered: Mar 2004
Location: Zaragoza, Spain
Posts: 1

Rep: Reputation: 0
Hello
I have a similar problem. My setup is more common (no raid):
One hard disk 80 GB partitioned in:
hda1: 75 Gb FAT32
hda2: 4 Gb ext3 (Debian)
hda3: Swap

I have been using this setup for two years, booting with NTLDR on hda1 and adding the boot sector of hda2 (bootsect.lin) into boot.ini, and everything was ok. I use grub instead of lilo, i hate lilo

Well, yesterday I resized hda1 to make a new10 gb partition, and linux fdisk changed the volume labels in this way:
hda1: 65 Gb FAT32
hda2: 10 Gb unformatted
hda3: 4 Gb ext3 (Debian)
hda4: swap.

I changed fstab, kernel 'root=' parameter and extracted the new bootsector with dd, but now I can't boot into linux. It hangs with no error, only a blinking cursor. If I chage ative partition to hda3, it doesn't boot either because hda3 it's over 2048 hard disk cylinder and 2 gb limit.

So now I can only boot using loadlin.

I can't understand why doesn't work now if it have been right for two years, doing the same process. I hope someone see the mystery.

Thanks.

Last edited by DarkManZGZ; 03-04-2004 at 03:53 AM.
 
  


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
dual boot with suse9.2 and er...win xp topherman SUSE / openSUSE 4 07-16-2005 07:24 PM
XP dual boot with ONE OF FC2/SUSE9.1/MDK10 aus9 Linux - General 5 11-05-2004 09:53 PM
suse9.1 and ntldr, again... toddncl Linux - General 8 07-12-2004 08:05 PM
MBR and/or 1st Sector of HDA1 kaputt after attemting dual boot (win/suse9.1) w/ grub Nathanael Linux - General 2 05-29-2004 08:08 AM
Dual Boot Win XP and FC2 w/ NTLDR on Seperate Drives? manstretch Linux - Newbie 3 05-21-2004 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:01 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration