View previous topic :: View next topic |
Author |
Message |
drussell Junior Member
Joined: 09 Feb 2012 Posts: 9
|
Posted: Sat Sep 22, 2012 4:59 pm Post subject: Dual Boot with Windows |
|
|
I installed SMS on an existing hard drive that had two existing versions of Windows running on it.
So the Partition table looks like
sda1 - vfat Windows 98
sda2 - Extended Partition
sda5 - ntfs Windows 2000
sda6 - linux swap
sda3 - ext2 boot
sda4 - ext4 sms
I created the partitions prior to running the native install.
It would appear that initially lilo updated the mbr and ada1 to enable the SMS installation on sda4 to boot. I don't believe sda3 was used for anything.
Wanting to make this dual boot, I restored the Windows mbr.
So I can now boot Windows 98 or 2000 again.
I would like to be able to boot into the SMS installation again, but have not been able to figure out how.
Tried using boot-repair and super grub disk 2 but sda4 is not bootable as is. Also tried sda3. Both generate "missing operating system" messages.
I'd prefer not to start over with another hard drive since I did a fair bit of custom work on the installation on sda4. It's SMS 1.66
Is there a simple fix to this problem? |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sat Sep 22, 2012 5:23 pm Post subject: |
|
|
As the SMS installer says at boot, once you are at boot prompt (SMS.Native.CD-Install.iso) type
Code: | hugesmp.s root=/dev/sda4 rdinit= ro |
Now you have two ways to fix this
1. boot from boot.ini
Once you boot to SMS edit /etc/lilo.conf and change
boot= /dev/sda
to
boot= /dev/sda4
and type "lilo" to install LILO.
Now according to where your boot.ini is, most likely is on the first installation you ever made, and that's windows 98, so mount sda1 with.
Code: | mount /dev/sda1 /mnt/sda1 |
and copy the boot sector with dd
Code: | dd if=/dev/sda4 of=/mnt/sda1/sms.lnx bs=512 count=1 |
and add in boot.ini
Code: | C:\sms.lnx="SMS 1.6.6" |
You can easily do the above with bootpart.
2. boot with lilo.
Once you boot to SMS edit /etc/lilo.conf to boot windows too, for instance add at bottom
Code: | other=/dev/sda1
label=Win98
table=/dev/sda
other=/dev/sda5
label=win2000
table=/dev/sda |
and change values default to set default system and timeout to set seconds of prompt to choose e.g.
default=win2000
timeout = 70
and type "lilo" to install LILO.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
drussell Junior Member
Joined: 09 Feb 2012 Posts: 9
|
Posted: Mon Sep 24, 2012 1:49 am Post subject: Success |
|
|
Thank you for the prompt and detailed reply.
I was initially unable to Boot from the CD. Eventually realized that I needed to set the Linux partition active.
Then LILO wouldn't run because it couldn't find vmlinuz. Somehow /boot was my Windows directory, so I copied vmlinux to C.
Since I was attempting option one, I proceed with copying the boot sector to C nd updated boot.ini
On reboot, LILO was ready for action. Both options (SMS and Windows) booted Ok.
So thanks again for the help. Saved me a lot of rework. |
|
Back to top |
|
|