LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-16-2004, 02:42 PM   #1
Larsin
Member
 
Registered: Jan 2004
Posts: 40

Rep: Reputation: 15
2 HDD Dual Boot issue(and SBC/DSL)


Lots of information in these forums regarding SBC DSL with dynamic IP that I have read. I have 2 hdd's and like the rest, trying to acquire a dual boot setup with SBC dsl on both.

I followed the posts I have read thus far concerning dual boot with 2 HDDS, and this is what I have done. I wiped out 80GB HDD and partitioned in a 70/30 format to use for Windows. The 70 for NTFS and the 30 for Fat32 to be shared data by Linux. I setup Win2k and it boots fine as a single drive. I then took my 2nd HDD which is 40GB and installed Suse 9.0 and it boots fine by itself. I kept the 40GB Suse drive as master, and hooked the Win2k 80GB drive as slave. Both are recognized in CMOS.

I went into /boot/grub and edited the menu.lst to include these parameters at the end of the file:

title Windows 2K

map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
makeactive

If I remove the Suse drive, I can still boot to Win2K normally. With a dual boot setup as above, I can boot to Suse 9.0 fine. The problem is, I still get this error when choosing Windows from the Grub gui when trying to dual boot:

Booting 'windows'
rootnoverify (hd1, 0)
Filesystem type unknown, partition type 0x7
chainloader +1

Wondering what I may have done wrong...

If that's not bad enough, the other issue is getting DSL with SBC to work in Suse. I have an A7N8X Deluxe motherboard with 2 ethernet onboard ports. The 3com(Eth0) module is loaded, but Yast finds an unconfigured DSL device. The other ethernet port onboard is a Realtek. Do I have to also load a module for the 2nd NIC? Or can the DSL be configured on just the one 3Com?

I have gone to the DSL option in Yast, and entered my user information, but it still cannot connect. I have tried to run adsl-setup, but apparently the SUSE distro doesn't have that. SBC uses 151.164.1.8, 151.164.1.1 and 151.164.11.201 as DNS. I know I may have to add these manually to the resolv.conf, but wasn't sure if I have to have the 2nd(Realtek) NIC module loaded first. I guess my next step may be to try the Roaring Penquin software I have read; or purchase a 4-port Linksys router to configure DHCP for me.

I'm a newb, but I'm learning a lot really quick(thanks to this forum). Thank you all for the time you contribute to the rookies : )

Last edited by Larsin; 02-16-2004 at 04:00 PM.
 
Old 02-17-2004, 08:25 AM   #2
Larsin
Member
 
Registered: Jan 2004
Posts: 40

Original Poster
Rep: Reputation: 15
I'm still trying to get this straightened out. I redid it again. Fresh copy of Win2K on 1st HDD. Works like a charm by itself. Fresh copy of Suse 9.0 on another HDD. Works like a charm by itself.

Edited the menu.lst, reboot and it shows the Windows option. When I select to boot into Windows, the computer just restarts.

Anyone?

On the SBC side of things. I went to console as root and typed
ifconfig up eth0 and it returns me back to #. I then try the dhcpcpcd(going from memory) command and it doesn't really do anything.

Here is my question regarding the DSL connection:

I have an Efficient Networks Speedstream 5100 DSL modem. My motherboard has 2 onboard nics. My 3Com Nic(Eth0) is currently being used. Is the DSL modem supposed to be configured as Eth1 or something?

Last edited by Larsin; 02-17-2004 at 08:28 AM.
 
Old 02-17-2004, 08:45 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
it would be easier to set the machine up with both drives in how you're going to use
them from the start.
if you're leaving the windows drive as the primary master, you don't need to remap
anything to boot it. if you're installing linux as the primary master, then moving it to
slave, you don't need to remap anything. you need to edit your /etc/fstab and change
the /dev/hda entries to /dev/hdb. then change your grub conf entries for linux.
you'll then need to do something of your choice to get the machine to boot the
second hard drive. freebsd's booteasy is simple. so would be adding an entry for
linux in boot.ini in windows.
there are several multi-boot howto's on the web you could look at to see what appeals
to you.
i don't know enough about the dsl to help you there, but the realtek would use a
different module. you might couldload that and plug your dsl into there and try
that.
 
Old 02-17-2004, 08:58 AM   #4
Larsin
Member
 
Registered: Jan 2004
Posts: 40

Original Poster
Rep: Reputation: 15
Hiya Whansard and thanks for the reply,

So you are saying the Win2k 80GB drive should be left as master? I thought I needed the mbr on the Suse drive? From what I understood, the addition of :

title Windows 2K

map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
makeactive


makes the Windows drive think it is the 1st drive. I was also following another link that suggested that you setup both drives independently and make sure they work first, then edit the menu.lst.
 
Old 02-17-2004, 09:18 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
i thought you had left the windows drive as the master?

there's a million ways to do it. i hate remapping drives cause it makes things
more confusing. i'm not any good with grub either. i've been using lilo for
years.

whatever howto you're following is probably fine. you're probably just missing
a little something somewhere.

i actually just install lilo in the linux root partition and have the windows boot manager
kickstart linux.


/hda1# cat boot.ini
[boot loader]
timeout=3
default=c:\work\redhat
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation Version 4.00"
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation Version 4.00 [VGA mode]" /basevideo /sos
c:\bootsect.dos="MS-DOS"
c:\work\redhat="Redhat"

that's sort of what it would look like.
the file c:\work\redhat is created with dd
dd if=/dev/hda5 of=/hda1/work/redhat bs=512 count=1
in my case.

you should probably wait until somebody good with grub stops by.
 
Old 02-17-2004, 09:23 AM   #6
Larsin
Member
 
Registered: Jan 2004
Posts: 40

Original Poster
Rep: Reputation: 15
Yeah I was trying to do something simpler, but your assistance and reply is greatly appreciated.
 
Old 02-17-2004, 10:03 AM   #7
PenguinPwrdBox
Member
 
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
Change the line in GRUB from under the Windows heading from

root=noverify(hd 1,0) - to

root=(0x80, 0)

Windows must believe that it owns the MBR, or it freaks. I am more partial to the NTLDR method described above, but, it's personal preference.

Last edited by PenguinPwrdBox; 02-17-2004 at 10:04 AM.
 
Old 02-17-2004, 10:08 AM   #8
Larsin
Member
 
Registered: Jan 2004
Posts: 40

Original Poster
Rep: Reputation: 15
I will try that when I get home and see how that works.

Thanks for the suggestion PenguinPwrdBox!
 
Old 02-17-2004, 05:31 PM   #9
Larsin
Member
 
Registered: Jan 2004
Posts: 40

Original Poster
Rep: Reputation: 15
If either of you guys were doing this again tonight, how would you set it up? I guess I'm confused with the mbr stuff. I will try it again when I get home, but I really want to understand it all.

If you guys had 2 blank drives in front of you, how would you do it? Would you hook up both drives to pc as master/slave then install the Os? Hook one drive up as single, install Win2k then remove and install Suse as single, making sure both drives boot up correctly to their respective Os's, THEN make a change either to NTLDR or Grub/Lilo? If so, which OS would you have be the master?

Which OS would you make the master? Seems I can either have Win or Lin boot (with both options).

Im frustrated, but excited to learn more...
 
Old 02-17-2004, 06:16 PM   #10
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
>>>Windows must believe that it owns the MBR, or it freaks. I am more partial to the NTLDR >>>method described above, but, it's personal preference.

windows just uses a simple mbr that points to the active partition. that's where the
ntldr is set up. i've been using freebsd's booteasy in my mbr for 6 years. it's really
a partition booter. so i'm going booteasy>ntldr>lilo.
ntldr is a bootsector loader.
i just meant that windows can handle not having the mbr, but it is very jealous,
and will overwrite any other mbr any time you install it.

anyway, do what penguinpoweredbox said.
 
Old 02-18-2004, 05:33 PM   #11
PenguinPwrdBox
Member
 
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
If I had two HDD's in front of me, and had to do it from scratch with both windows, and linux? I would do what I have.

I have two HDD's, as follows:

HDD One
30G 7200 RPM Western Digital stock HDD
IDE Master - connected to position one.
Windows XP NTFS System Partition with Win-bootable MBR

HDD Two
80G 7200 RPM Western Digital Add. Drive
IDE Slave - connected to position two.
Partition One - 70G NTFS Windows File Drive (mp3's, web stuff, etc)
Partition Two - 100MB Boot partition mounted at /boot
Partition Three - 512MB Linux Swap
Partition Four - 9+G Slackware Root Partition


I would install lilo to the Superblock of Partition Four (root partition)
I would then do the following:
Code:
fdformat -fat /dev/fd0
mount /dev/fd0 /floppy

//* /dev/hdb7 is Partition 4 

dd if=/dev/hdb7 bs=512 count=1 of=/bootsect.lin
cp /bootsect.lin /floppy

I would then reboot, into Win XP. Right click on My Computer, and choose properties.

Click the Advanced Tab
Click the Startup and Recovery Options Button
Check the box "Display a list of Operating Systems"
Click the nearby Edit button.
Add the following to the bottom of that file
Code:
C:\bootsect.lin "Linux"
Now, copy the bootsect.lin file off of your floppy to C:\

You now have a dual boot system that will allow you to keep windows on the MBR, but still have a lilo-like choice.....
 
Old 02-18-2004, 06:55 PM   #12
Larsin
Member
 
Registered: Jan 2004
Posts: 40

Original Poster
Rep: Reputation: 15
I appreciate the reply, and definitely the time it took you to do it. I will follow your suggestion and report my inevitable success, and thanks again.

Larsin

Doh! I just realize your instructions are with Lilo.....would you happen to know the comparable ones for Grub? If not, I will still try what you recommend, I'm just totally ignorant to Lilo.

Last edited by Larsin; 02-19-2004 at 08:37 AM.
 
Old 02-20-2004, 11:50 AM   #13
PenguinPwrdBox
Member
 
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
The directions are the same for Grub, just install it to the Superblock, and follow the rest accordingly - because we don't have to bother messing with the bootloader - it really doesn't matter which you use - the first 512 of the root drive will still contain enough to boot the OS from the bootsect.lin file.

Edit:
HEY!!! By the way!!!!! If you for any reason change your boot config AT ALL FOR ANY REASON - you must repeat this process, begiinning at the first command - the whole dd thing - again. If the bootsect.lin file in Windows is even a byte off of what is on the superblock, you will get errors, and the machine will not start - a good rule of thumb, is to do this, right after you change the boot process, and before you restart, otherwise, you may lock yourself out of the machine....

Last edited by PenguinPwrdBox; 02-20-2004 at 11:53 AM.
 
  


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
dual boot w/ 2 HDD Latem Mandriva 2 10-01-2005 07:37 PM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM
Moving root from a dual-boot HDD to a new HDD Androoski Suse/Novell 1 05-13-2005 10:34 PM
Advice (and some) Needed: Dual-HDD, Dual-Boot - Linux, WinXP elnomadkvn Linux - General 1 03-28-2004 10:11 AM
Win2K/Suse 9.0 2 HDD Dual boot issue Larsin Linux - Hardware 3 02-17-2004 10:00 PM


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