LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-04-2005, 03:03 AM   #1
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Rep: Reputation: 15
GRUB on a slave drive with linux: install from windows


Ok so i just destroyed my linux Grub boot loader

I was running windows on hda

Linux on hdb (kernel 2.6 Debian Sarge)

I'm a newbie and hence the name

So I was trying to run my slave drive as the first boot device and let GRUB load off that, then have it default to windows on drive hda. but if i saved it in time i could run linux so my sister can use windows without linux disturbing her.

up until now i've been runing the setup with GRUB on a floppy so that linux boots if i put the floppy in.

so now that i can't get into linux because somehow grub screwed with that disk my question is can i do this all from windows?

BTW I absolutely don't wan't to touch the MBR on hda cos as you may have noticed i'm likely (and liable) to screw things up.
 
Old 11-04-2005, 04:35 PM   #2
Back_to_Linux
Member
 
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117

Rep: Reputation: 15
copy your kernel in a directory accessible for windows.
In windows, install the loadlin program you find in install cd, prepare a script with something like 'DIR1\loadlin DIR\your kernel', launch it and you will boot linux.
chearch 'loadlin' in the tutorial
 
Old 11-04-2005, 06:56 PM   #3
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Original Poster
Rep: Reputation: 15
How can i get access to my kernel if i cannot boot linux?
 
Old 11-04-2005, 06:59 PM   #4
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Original Poster
Rep: Reputation: 15
If I reinstall, can i just keep my /usr and /home partitions as they are? So i don't have to download all the programs again.
 
Old 11-05-2005, 07:10 AM   #5
Back_to_Linux
Member
 
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117

Rep: Reputation: 15
don't reinstall, update with the same cd of your first install. it takes some time but let instact all your partition.
during the boot of the cd, it propose you to restor the grub loader. choise it and insert a new floppy. the program know where boot loader where was in the past.
 
Old 11-05-2005, 06:42 PM   #6
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Original Poster
Rep: Reputation: 15
I wish I could have read that earlier, i just reinstalled.

Its ok though because with my /home partition it doesn't effect much, i've done that install about 10 times in a month!

Now that I can get into linux this might be easier to answer:

Since linux is on hdb is there anyway i can set the BIOS to boot from that drive and have grub then redirect everything?

So can i put grub on the MBR of hdb and have it load windows automatically (which is on hda)? I understand that there were issues in lilo doing this because the bios fools the boot loader into believing hdb is really hda but then when the boot loader goes to access hdb it is really access hda.

Does that make sense?
 
Old 11-06-2005, 02:45 PM   #7
Back_to_Linux
Member
 
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117

Rep: Reputation: 15
no matter grub, don't install it.
You can boot on hdb, its name believe hdb. It's because it have a number on the device. see "ls -l /dev/hda".
now you have linux installed, copy your kernel in a dircetory accessible from windows.
restore the windows mbr : fdisk /mbr
and inside windows, launch the command loadlin your_kernel to boot linux, without reboot computer.
to have windows, simply your linux machine.no-one can know you have a linux until you bott on it.
 
Old 11-06-2005, 05:41 PM   #8
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Original Poster
Rep: Reputation: 15
loadlin? without rebooting? so i'll be running linux from windows?

I have windows xp does that matter?
 
Old 11-06-2005, 07:42 PM   #9
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Boot from a slave and want Windows in master disk untouched like a virgin

One can put Grub just about anywhere in any disk and in any partition and it can still boot every system in a PC. My Grub boots 50+ systems in 4 disks, including DOS, BSD and Solaris. Yes One Grub boots the whole lot!

I haven't touch Loadin since the first month I went into Linux. It is a DOS program and has all the limitation of DOS. Grub is simpler and about 100 times more powerful as it boots XP's bootloader NTLDR, itself and Linux's Lilo too, beyond 137Gb and in the partition numbers that some distros can even be installed there, say hda40.

The XP's MBR can be restored by boot up a DOS floppy and type fdisk /mbr. What is the big deal if you have have it back any time your want? I must have changed the mbr in hda over 100 times in installing 50+ systems. I settle on Grub after hitting the limits of NTLDR and Lilo.
 
Old 11-07-2005, 04:17 AM   #10
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Original Poster
Rep: Reputation: 15
Ok so you're saying it has to be on hda?

As to my question... what if i edit the boot menu in grub on hdb so it says linux: boot from hda (even though it's on hdb) and windows hdb so that if i swap the boot process to boot from hdb when the bios fools grub into thinking hdb is hda it will boot linux otherwise if i don't touch anything it boots hdb (hda()
 
Old 11-18-2005, 10:11 PM   #11
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
GRUB and LILO always conflict with Windows. And GNU GRUB is not so robust, causing many problems during boot.

So try GRUB for DOS please. It is a cross-platform boot loader based on GNU GRUB. The GRUB.EXE can be started from DOS/Win9x; and GRLDR can be started from BOOT.INI of Windows NT/2K/XP/2003; and even more, the GRUB.EXE can be started from LINUX via the KEXEC tool.

By using GRUB.EXE or GRLDR, you don't have to touch your MBR. It is the safest way coexisting with DOS/Windows.

You needn't install GRUB for DOS. Just run GRUB.EXE from DOS, or append a line of "C:\GRLDR=START GRUB" into your BOOT.INI(restart and select the "START GRUB" menu item), that will do.

Download GRUB for DOS here: http://freshmeat.net/projects/grub4dos/

There is a fat12grldr.img file with the GRUB for DOS release. You can create a GRUB bootable floppy with this fat12grldr.img file.

Or, you can just copy GRUB.EXE to your DOS floppy and run GRUB.EXE to enter the GRUB environment.
 
Old 11-22-2005, 04:11 AM   #12
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by MrInept
Ok so you're saying it has to be on hda?

As to my question... what if i edit the boot menu in grub on hdb so it says linux: boot from hda (even though it's on hdb) and windows hdb so that if i swap the boot process to boot from hdb when the bios fools grub into thinking hdb is hda it will boot linux otherwise if i don't touch anything it boots hdb (hda()
I did this and it worked
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
install on slave drive? mrchaos Slackware 4 03-15-2005 12:39 AM
how to wipe MBR on slave drive from windows? Ebenonce Linux - Newbie 9 08-16-2004 02:57 AM
Error when I try to install Linux on my slave drive Roger Alexander Linux - Newbie 1 07-24-2003 09:19 PM
Installing Win98 on slave drive to pre-existing linux install on primary eliszka Linux - Software 8 11-07-2001 10:46 PM
Is it possible to install Linux on a slave drive? sunilkgarg Linux - Software 2 11-01-2001 05:05 PM


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