LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-29-2004, 10:25 PM   #1
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Rep: Reputation: 31
need help creating a linux boot cd


I've googled and searched linuxquestions.org I cannot find a solution to my problem. I'm having two problems.

First problem is that I cannot get Mandrake 9.2 to rescue the bootloader. I get a fatal error.

Second problem is that since I cannot find a solution to the first problem I'd like to create a bootable cdrom that will allow me to boot directly into the linux installed on the laptop.

How do I create such a bootable cd-r?
 
Old 02-29-2004, 10:34 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
There is a command which will create a rescue disk cd that you can use to boot also.
mkrescue --iso.
This will produce an iso file about 4 MB that you can burn to cd. I burned mine to a 24 min mini cd.

---

About your present problem. I Mandrake the only OS on your machine? Do you have a normal boot disk, or do you just have the rescue system to boot up to on the 1st install disk?

Does the mount drive on /mnt option work? I so, you can cd to /mnt and enter:
chroot /mnt.
Then you can enter:
bash -l
This will load in the bash startup scripts.

What might be happening is that there is a problem with the lilo.conf. If that is the case, then lilo won't write a new bootstrap. Check if the boot= line in lilo.conf looks correct, and then run:
lilo
See if one of the sections errors out. If so, maybe that partition is inaccessable. If it is an entry that you don't need, comment out the section and re-enter lilo.

Lilo takes options that you may want to try:
lilo -M <master-device> will rewrite the mbr.

Last edited by jschiwal; 02-29-2004 at 11:03 PM.
 
Old 03-01-2004, 11:25 AM   #3
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
This is a dual boot laptop with WinXP Pro and Mandrake 9.2

Right now the only way I can access linux is to put the Mandrake Install CD 1 in the cdrom.
Mounting the linux partitions works. I've tried running lilo -v -C /path/to/lilo.conf
but I got the fatal error.
I'll try the lilo -M and see if that works.

About the mkrescue --iso is that any different from the Mandrake CD1?

Will it mount the partitions and boot Linux automatically?
 
Old 03-01-2004, 07:14 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
The disk produced includes a pci scan program, which examines your computer, and makes suggestions on any needed boot options to include.

The initial menu is similar to a normal booting menu, and includes a 'boot from HD' entry.

If your laptop includes a small hidden initial partition, then the lilo-mbr install will work. If the first partition is the NTFS XP partition, then you can add an entry boot.ini, copy the first 256 bytes of the boot= partition to a file on the c: drive, and boot via the NTLDR bootstrap loader.

Assuming that your first non-swap linux partition is on /dev/hda6
Code:
A) Edit lilo.conf - change the boot= partition to the first non-ramdrive linux partition and execute /usr/lilo to write the linux loader there.
B) Copy the linux boot-strap loader to a file on floppy disk
  1) mount -t vfat /dev/fd0 /mnt/floppy
  2) dd if=/dev/hda6 of=/mnt/floppy/Mandrake92.lnx bs=1 count=256
  3) umount /mnt/floppy
C)  Boot into XP and copy the file from floppy to the C:\ drive
  1) copy a:Mandrake92.lnx c:\
D) Add linux entry to boot.ini file
  2) c:\> attrib -r -s -h c:\boot.ini
  3) c:\> edit c:\boot.ini
  4) add the line to boot.ini:
c:\Mandrake.lnx="Mandrake Linux 9.2"
  5) attrib -r -s -h c:\boot.ini
notes: the name of the linux boot file is arbitrary. You will get the lilo menu later on, so that is were you can select between different entries. I made an assumption on your partitioning.

I hope this works and helps. Good Luck!
 
Old 03-01-2004, 07:28 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
When I reread your initial post, It gave me a couple thoughts. Did you just install Windows XP for the first time, or did the lilo loader work before you re-installed Windows XP. If the latter is the case, running /usr/lilo again with boot=/dev/hda ( i.e. mbr ) should fix your problem. If installing the lilo loader to the MBR worked before with XP, it should work again. Windows XP uses a recent version of the NTFS file system, so you can't just write fdisk /mbr to get the windows mbr back again. You need to boot up with the windows XP disk and select the repair option. There is a 'fixmbr' command you can use.

Often, the reason that the computer can't load linux, is because there is a problem with the lilo.conf entries. Lilo would fail, and the old MBR is not updated. When running lilo, what what the output says. If one of the entries fails, you need to delete that boot section or fix the lilo.conf file, before retrying to run lilo again.
 
  


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
Creating Boot CDs beanimanius SUSE / openSUSE 4 03-17-2005 02:55 PM
creating a dual boot for ubuntu linux nathj72 Linux - Software 3 01-17-2005 12:42 PM
Creating a Boot Floppy for Dual Boot Setup? jdanniel Linux - Newbie 8 08-07-2004 03:08 PM
Creating boot floppy Gennady Linux - Newbie 1 04-14-2004 04:23 PM
Creating a Boot Disk? moh289 Linux - Newbie 2 02-15-2002 02:02 PM


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