Getting windows 2000 to stop reading a HD Edit: linux workarounds?

Thyme

Platinum Member
Nov 30, 2000
2,330
0
0
I am having windows 2000 (NTFS file system) problems presumeably because it is trying to read a Linux Ex2 hd on its own drive.

I have tried removing the HD from the device manager but get a BSOD2000. If done in safe mode, I get a BSOD2000 on the next boot.

I have tried loading the Disk Management, but the only options are to reformat and delete the partitions. If I delete the partition, will it delete the partition or just from windows?

I tried unplugging the physical drive, but LILO gives the classic 01 01... and grub gives an error. It looks like it has the bootloader on the HD.
The windows 2000 boot disk doesn't work (bad drive maybe), but the linux one does.


Is there a way to put the bootloader on a disk and not in my MBR or whatnot so that it just goes right to NT without having to read the second hard disk?

Any other things to try?

TYI
-Thyme
 

Bozo Galora

Diamond Member
Oct 28, 1999
7,271
0
0

Im not near my 2K box, but from mem, you have to delete Linux from boot.ini file in Win2K root directory, change number of O/S to 1 etc. and something in sys.ini or config.sys. I can post it later. Or just do a search on guys who had dual 98/2K boot and wanted to fully get rid of one.
 

Thyme

Platinum Member
Nov 30, 2000
2,330
0
0
it isn't using the w2k boot loader. It's using lilo or grib. I have to get windows proper to stop trying to use the physical disk.
 

Thyme

Platinum Member
Nov 30, 2000
2,330
0
0
Is there a way to boot from the windows 2000 cd without installing, just running?
 

bigbootydaddy

Banned
Sep 14, 2000
5,820
0
0


<< Is there a way to boot from the windows 2000 cd without installing, just running? >>


the boot cd will only let you:

1. install 2k
2. repair
3. create/delete partitions
4. format to fat32 or ntfs
5. there is no number 5
 

Thyme

Platinum Member
Nov 30, 2000
2,330
0
0
I didn't think so, but I have to cover all the ground possible, since nothing wants to work. Pisses the hell out of me. Anyone know how to use the win2k bootloader instead[/u] of the linux ones?
 

Thyme

Platinum Member
Nov 30, 2000
2,330
0
0
how about turning the linux bootloaders off completely and just using the boot diskette? Anyone know how?
 

Bozo Galora

Diamond Member
Oct 28, 1999
7,271
0
0

????????????????

Booting GNU/Linux II

Breaking the 1024 cylinder barrier

Until recently, 'LiLo', the standard bootloader in all LM releases up
to 7.0, didn't support BIOS LBA translations. Because of a
traditional restriction of the IDE interface, the BIOS can't 'see'
anything which lies beyond the 1024th 'cylinder' of a disk. To
circumvent this problem, a BIOS hack was made, called 'Large
Block Access' (LBA).
But since 'LiLo' didn't support LBA and needed the files in the
'/boot' directory, it was necessary for this directory to be on a
partition which was entirely below the 1024th cylinder (usually
within the first eight GB of a disk).

Since version 21.4.2, LiLo supports LBA and thus booting from
beyond the 1024th cylinder if you add the option lba32 to the first
section of '/etc/lilo.conf'. This version is included in LM 7.1, which
however uses GNU GRUB (GRand Unified Bootloader) as the
standard boot manager. GNU GRUB uses BIOS translations by
default and thus is even better suited to boot from large disks.

But what if you've already installed a pre-7.1 release of LM and now
can't boot it from the disk, because you've put your boot partition
beyond that barrier (despite the warnings of the installer ...)?
If you have a working boot-floppy, that's easy. Boot the system from
floppy, get the latest LiLo RPM from your favourite Cooker mirror,
install it with rpm -U [packagename]. RPM has back-uped your
original '/etc/lilo.conf' to '/etc/lilo.conf.rpmsave'. Move it back to its
old name (mv /etc/lilo.conf.rpmsave /etc/lilo.conf), add the
option lba32 and run lilo. Reboot and you should be able to boot
GNU/Linux from the disk.

If you don't have a working boot-floppy, things are a bit more
complicated. Use your other operating system to download
Explore2fs, which will allow you to read GNU/Linux partitions from
Windows. Go to its 'Options' dialogue and turn on 'INT13h' support.
Use it to copy the GNU/Linux kernel ('/boot/vmlinuz-[version]') to a
Windows partition. This step will allow you to use the loadlin
program.

section index / top

'loadlin' - Booting GNU/Linux From MS-DOS

'loadlin' lets you boot GNU/Linux via MS-DOS. You might prefer this
to using LiLo if you don't want it to change the boot-record of your
hard drive, or if LiLo can't boot your system since the 'root' partition
lies beyond the 1024 cylinder barrier.

You will need to know how GNU/Linux calls the partition where the
'boot' directory is located. Usually this is the first GNU/Linux
partition on your disk. Use either 'Explore2fs' or cfdisk
/dev/[diskname] (usually hda) to find out.
If you need help with GNU/Linux' partition naming scheme, read the
appropriate paragraph on the 'Mounting' page.

1.Create a directory like 'c:\linux'. Copy 'loadlin.exe' from the
'dosutils' directory of your LM CD there.

2.Copy your GNU/Linux kernel image ('vmlinuz-[version]') from
'/boot' to 'c:\linux' and rename it to 'bzimage'.

3.To boot GNU/Linux, boot into MS-DOS mode and - being in
'c:\', type

linux\loadlin bzimage root=/dev/[GNU/Linux root
partition] ro

'bzimage' is the name of your kernel image file, 'root' points to
the partition where the GNU/Linux root partition '/' resides and
'ro' is short for 'read-only' (see above).

Ready. Remember that every time you update the kernel you have
to put an updated version into 'c:\linux\', too.

You can make this much more convenient, e.g. by starting 'loadlin'
via the Windows boot menu.

section index / top

Uninstalling LiLo, GNU GRUB and GNU/Linux

Note that uninstalling GNU/Linux and the bootloader are two
different things! Uninstalling one of them does not remove the other.

Uninstalling LiLo

In Linux:

lilo -u /dev/[disk]

This will restore the previous boot record.

In DOS / Windows (either system or boot floppy):

fdisk /mbr

This will overwrite the boot record with a new, DOS / Windows only
entry.

Uninstalling GNU GRUB

There seems to be no way uninstalling GNU GRUB from within
Linux. Overwrite the boot sector from DOS/Windows using the
undocumented command:

fdisk /mbr

Removing GNU/Linux

Note that DOS 'fdisk' can't delete Linux partitions. In Linux, open a
virtual terminal and type (as 'root')

cfdisk

or - on LM 7.0 and later -:

diskdrake

Now delete all GNU/Linux partitions and set the flag of the Windows
root partition to 'active'. If you can't boot into Linux anymore, create
a rescue floppy from the image in 'images/' on your Mandrake CD.
Since LM 7.1, you can also use the rescue system on the first CD:
just boot from the CD and type

rescue

on the boot prompt.

Both systems use the older fdisk program, started with

fdisk /dev/[disk]

Use 'p' to print the partition table, 'd' to delete partitions and 'w' to
write the changed partition table and quit the program.

Use either the proprietary Partition Magic or the free GNU Parted
(7.1: package 'parted', second CD. Run parted as 'root' and then
type help) to regain the disk space previously allocated to
GNU/Linux.
 

Blundar

Golden Member
Oct 19, 2000
1,144
0
0
here is a nice, simple explanation of what you need to do.

FIRST:
1. boot linux
2. edit your /etc/lilo.conf
-change the first line
boot = /dev/hda
to
boot= /dev/hda59 (hda59 is the linux boot partition if you have one, root if not)

3. Rerun lilo to update the bootsector.

what this does is moves lilo from the MBR of the drive to the local partition containing linux.


SECOND:

boot into Win2K off of the CD or something.
use the recovery console to write a new bootsector and bootloader.
(I forget the exact commands - the help system is decent)

At this point, your system should boot 2000 without any knowledge of linux.

THIRD:

you need a utility called bootpart. If you really can't find it, shoot me a PM and I'll send it to you. Bootpart creates a ghetto bootsector you can feed the Win2K bootloader in the form of a boot.ini line that will cause it to load the bootloader you put in your linux partition. The docs on bootpart are decent.

I need sleep, PM me if you can't figure it out. The end result of this is a 'Linux' option in the nice pretty Win2K boot loader menu.