LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-13-2002, 07:03 PM   #1
jackflamer
LQ Newbie
 
Registered: Mar 2002
Posts: 3

Rep: Reputation: 0
Question Why can't I dual boot Linux with W2k using NT loader


I have a computer like below,

20G WD hard disk
hda1 200M boot disk FAT16
hda2 extend
hda5 win98 5G FAT32
hda6 win2k 5G NTFS
hda7 Data 5G FAT32
hda8 /boot 10M
hda9 /
hda10 /usr 3.5G
hda11 /home

I installed LILO in hda8, and I can dual boot w2k and win98 before and after installed linux, and I can boot linux 7.0 with the boot disk.
I want to dual boot linux with w2k and w98 by using NT loader.

I use following command to extract the linux boot sector to a file called linux.lnx
dd if=/dev/hda8 bs=512 count=1 of=/mnt/floppy/linux.lnx
then I copied this file to the C: drive which is hda1
and I edited the boot.ini file with one more option c:\linux.lnx="Linux"
Then I restart the computer, if I choose the linux option from the NT loader option menu, all I can see is a black screen with a blinking cusor on top left conner of the screen. What is wrong?

Would like to have your help!
 
Old 03-13-2002, 09:51 PM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
I thought that you were supposed to copy the linux boot sector file to the same directory as boot.ini. Wouldn't that be on hda6? What is hda1 supposed to be for?
 
Old 03-13-2002, 10:02 PM   #3
jackflamer
LQ Newbie
 
Registered: Mar 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Question

The boot.ini is located in the hda1. The reason that I use hda1 is to put all the boot files in the partition, such as autoexec.bat, config.sys, ntdetect.com, etc.
This is why I put the linux.lnx to hda1.

Another question, is the linux.lnx suppose to be 512k? or 512bit?
Cause the file is just 1K in size. If this is the reason, what is the wrong?
dd if=/dev/hda8 bs=512 count=1 of=/mnt/floppy/linux.lnx anything wrong with the command line?

Thanks!
 
Old 03-13-2002, 10:38 PM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
In the ' dd ' command, ' bs ' is the number of bytes to read and write. ' count ' is the number of times to read and write. The command you used is to read and write 512 bytes one time. So, the actual file size would be 512 bytes.

It could be that you need to run the command /sbin/lilo. First, boot into linux and then check your /etc/lilo.conf to make sure it is correct. Then, run /sbin/lilo. Next, make a copy of the linux boot sector again ( dd if=/dev/hda8 bs=512 count=1 of=/mnt/floppy/linux.lnx ) and copy it to hda1. Then try to boot linux from win2k's boot loader.
 
Old 03-14-2002, 11:46 PM   #5
jackflamer
LQ Newbie
 
Registered: Mar 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Question

I tried, but result is the same. I found something maybe is the cause. The file linux.lnx, if I look it in linux with ls -l, it shows the size of 512K, but after I copied into C: and look at it, it is 1K in size, what did I do wrong? I mounted the floppy as MS with this command, mount -t msdos /dev/fd0 /mnt/floppy
 
Old 03-15-2002, 02:48 AM   #6
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
The bootsector is 512 bytes not kilobytes. You have to have the bootloader installed properly on hda8 before you dd. Everytime you change something in lilo and rerun /sbin/lilo you have to dd the bootsector to file again
I think you also have to make the partition a boot partition you can do that in fdisk. I'm not totally sure on that because you are just linking it to the next partition.
 
Old 03-15-2002, 03:33 AM   #7
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
I followed the same steps you did and my file was always 512 bytes in size. Are you sure it said 512k and not just 512? I don't know why your file would be 1k after being copied to the c: drive. Are you sure that the 1k was the actual file size and not just how much space it took up on the c: drive?

Last edited by linuxcool; 03-15-2002 at 03:34 AM.
 
  


Reply



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
accessing linux on W2K-RH9 dual boot romanski Linux - Newbie 2 03-18-2005 04:27 AM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Error 0x10 loading Linux on dual boot with W2K noggin Linux - Software 4 12-25-2004 10:04 AM
Linux Boot Floppy Went Bad on W2K-Linux Dual Boot rzward Linux - General 2 01-15-2003 10:52 AM
dual boot - blinking cursor after selecting LINUX at win2k loader its4 Linux - General 7 06-26-2002 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:00 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
Open Source Consulting | Domain Registration