LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-23-2003, 12:39 PM   #31
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Original Poster
Rep: Reputation: 30

of course I can't do any of that if it's mounted as slave drive on a redhat macchine, plus I'd have t work out how chroot works, it was that that lost me loads of files when I tried to upgrade my hard drive a couple of weeks ago. Still everything is now backed up, so I think I'll just reinstall and try again using your "debian method", thanks for the help
 
Old 12-23-2003, 01:03 PM   #32
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You can;
you can mount the drive with mount etc as above;
you can also create a floppy boot disk using the following method;

Creation of a floppy with LILO on MBR:

Lilo is the "Boot Loader" for Linux which typically resides on the MBR of your hard drive. This may easily get wiped out on a multiboot system where a re-loading of the Windows operating system will reload the MBR. If the MBR is overwritten and LILO removed, there will be no way of booting to Linux. Thus it is wise to have a floppy with LILO residing on the MBR of the floppy which can point the system to boot off of the Linux kernel residing on your hard drive. Here is how it is created:



fdformat /dev/fd0 # Lay tracks on new diskette
mkfs -t minix /dev/fd0 # Create minix file system on floppy
cp -p /boot/chain.b /floppy # Copy chain loader from Debian system (/mnt/boot....
cp -p /boot/boot* /floppy #/mnt/boot....
lilo -v -C /etc/lilo.floppy # Install lilo and the map onto floppy


Note that LILO sets the MBR to the settings as defined by the configuration file /etc/lilo.floppy.

Sample file: /etc/lilo.floppy
boot=/dev/fd0 - Floppy drive (Location of Lilo boot sector)
map=/mnt/floppy/map - Locations on hard drive where the kernel can be found for boot
prompt
linear - Specific to SCSI configurations
timeout=50 - Give the user time to decide (number of seconds) if there are multiple choices
image=/boot/vmlinuz-2.4.18-k7 - Boot this Linux kernel. This depends on your release of the operating system.
label=hd_linux
root=/dev/sdb6 - System instructed to boot from this drive. It is unique to your system. It could be /dev/hda4, it depends on your installation.
initrd=/boot/initrd.img-2.4.18-k7 - This is specific to systems using SCSI hard drives. This line is omitted for IDE.
read-only


Note:

Actual kernel name and version will depend on your Linux release.
Most of the information for /etc/lilo.floppy should be copied from /etc/lilo.conf
Actual names for the files to be used may be seen in the directory /boot
The file initrd-2.2.17-14.img is required by systems using modular SCSI support.
It is generated using the command: mkinitrd /boot/initrd-2.2.17-14.img 2.2.17-14
and should also be copied to the floppy.

You could also mod your RH (Lilo or grub) boot method to include the Debian system and therefore boot the Debian system (multiboot option).

Last edited by TigerOC; 12-23-2003 at 01:05 PM.
 
  


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
Can't mkinitrd for Kernel 2.6.11.6 (when compiling) LordOfer Linux - Newbie 3 04-02-2005 12:20 PM
Newbie Fedora kernel upgrade help kevinb583 Linux - Newbie 2 10-12-2004 01:43 AM
kernel 2.6.6 mkinitrd problem ziox Linux - Software 0 07-13-2004 08:48 PM
mkinitrd doesnt exist in slackware? Newbie kernel compile question! nmoog Slackware 3 01-08-2004 07:22 PM
Newbie Kernel upgrade ? & up2date rpm hell lsgko Linux - Newbie 2 08-06-2003 07:59 PM


All times are GMT -5. The time now is 08:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration