Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
Dual Boot with Windows
View previous topic :: View next topic  
Author Message
drussell
Junior Member


Joined: 09 Feb 2012
Posts: 9

PostPosted: Sat Sep 22, 2012 4:59 pm    Post subject: Dual Boot with Windows Reply with quote

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
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1752
Location: Greece

PostPosted: Sat Sep 22, 2012 5:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
drussell
Junior Member


Joined: 09 Feb 2012
Posts: 9

PostPosted: Mon Sep 24, 2012 1:49 am    Post subject: Success Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional