LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2003, 03:09 PM   #1
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
Installing a new disk with Windows on it


When I began learning Linux a couple of weeks ago I had to physically switch from one harddisk (with my Windows and files on) to another, fresh one for Linux. In order to boot one or the other I had to pull off the cable from one and connect it to the other because I only had one SCSI II - III adapter. Today I've got another, and I'd like to connect both harddisks and boot either Linux or Windows from Lilo.

The problem is that while I have set the Linux harddisk to be the boot device in the controller setup, Linux starts to boot but then crashes with a kernel panic because it cannot find an ext3 filesystem on the new disk (of course not).

Is there any way I can make this system work so that I can boot either OS from Lilo?

Robin
 
Old 08-13-2003, 03:43 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
hmmm...well I'm assuming if you just have the linux drive installed then everything boots okay correct? Most likely lilo.conf is trying to boot from /dev/sda1(The first partition of the first scsi disk). When you add the windows disk back in make sure you physically set the disk up as a slave drive to the linux disk. I believe this will cause linux to detect the windows disk and assign it to /dev/sdb.

I'm guessing that your current problems are happening because when you add the windows disk it is becoming /dev/sda rather then /dev/sdb. This would cause lilo to try and boot linux off the windows disk which obviously isn't going to happen.
 
Old 08-14-2003, 07:08 AM   #3
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Original Poster
Rep: Reputation: 35
The Linux disk is on ID 2, which I set as boot device ID in the controller; the Win disk is on 0. If I set the boot ID to 0 the Win disk boots ok; the Linux disk obviously begins to boot (Lilo is on that disk, and it does boot the kernel up to a point) but stops when it tries to mount the Win disk; IIRC (I'm in the office right now and can't check) it says something about sd8 or maybe sda8. The Linux partitions are sda1 and 6 respectively.

I can't do a master / slave setup like with IDE drives, only set the boot device in the controller bios.

Robin
 
Old 08-15-2003, 07:39 AM   #4
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Original Poster
Rep: Reputation: 35
Ok, after a bit more fiddling I can now boot from the Windows HD and use a program to read and write the Linux HD. I still can't boot the Linux HD when the Win HD is connected, too, as it still breaks off with a kernel panic in mid-boot.

I guess that there is a configuration for Lilo I can make to tell the system what to expect from the Win HD; I could make such edits from Windows. But what to edit, and what to put in?

Robin
 
Old 08-15-2003, 02:37 PM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Can you post your lilo.conf? lilo is probably trying to boot linux off the wrong disk. Also could you post the output of:

fdisk -l
 
Old 08-16-2003, 09:15 AM   #6
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Original Poster
Rep: Reputation: 35
I've solved it!

The problem was a rather trivial one: The Windows disk had SCSI ID 0 and the Linux one had ID 2; apparently the computer correctly read the boot sector of the Linux disk when I set the boot ID to 2 but Linux then identified sda1 not as the booting disk but as the first disk with an SCSI ID and therefore tried to check the filesystem on the Windows disk. I just switched the SCSI IDs and now I can at least boot either OS by choosing the boot device in the controller setup (Windows doesn't mind to be on ID 2).

I've also got file reading and writing access between the harddisks both from Linux to Win and back.

Next I will try and edit lilo.conf so that it includes the Win boot option, so that I don't have to switch it on the controller anymore. I'll be going by the Lilo-HowTo on control-escape.com first and be back if I fail. But I feel more confident by the minute, especially as the new disk killed my access to my parallel zip drive (which had previously been sdb4, now in conflict with the new hd) and I managed to edit fstab so that the ZIP already works again. One of these days I'll know my way around this OS, too

Robin

Last edited by bitpicker; 08-16-2003 at 09:18 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
is this possible windows XP + WINDOWS 98+RH9 on a single disk? sumux Linux - Newbie 6 02-09-2004 02:56 PM
Installing Slack using Boot Disk (root disk stalls!) guardian653 Slackware 3 10-07-2003 05:03 PM
i c my linux disk in windows ramu_ak Linux - General 3 05-08-2003 01:03 PM
Windows NT on a second disk martinpanda General 3 03-04-2002 10:24 AM
Windows disk in Linux Aiwrtcode Linux - Newbie 7 01-14-2002 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration