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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-04-2005, 03:03 AM
|
#1
|
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:
|
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.
|
|
|
11-04-2005, 04:35 PM
|
#2
|
Member
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117
Rep:
|
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
|
|
|
11-04-2005, 06:56 PM
|
#3
|
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:
|
How can i get access to my kernel if i cannot boot linux?
|
|
|
11-04-2005, 06:59 PM
|
#4
|
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:
|
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.
|
|
|
11-05-2005, 07:10 AM
|
#5
|
Member
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117
Rep:
|
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.
|
|
|
11-05-2005, 06:42 PM
|
#6
|
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:
|
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?
|
|
|
11-06-2005, 02:45 PM
|
#7
|
Member
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117
Rep:
|
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.
|
|
|
11-06-2005, 05:41 PM
|
#8
|
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:
|
loadlin? without rebooting? so i'll be running linux from windows?
I have windows xp does that matter?
|
|
|
11-06-2005, 07:42 PM
|
#9
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep: 
|
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.
|
|
|
11-07-2005, 04:17 AM
|
#10
|
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:
|
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()
|
|
|
11-18-2005, 10:11 PM
|
#11
|
Member
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84
Rep:
|
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.
|
|
|
11-22-2005, 04:11 AM
|
#12
|
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:
|
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
|
|
|
All times are GMT -5. The time now is 02:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|