LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dual boot (https://www.linuxquestions.org/questions/linux-newbie-8/dual-boot-617873/)

spagoti13 02-01-2008 02:49 AM

dual boot
 
i have i have two hd. one have winxp installed and in other fedora 6 with win 98. i can dual boot win98 or fedora using the 2nd hd but when i use both the hd winxp starts automatically.

my question is can i configure grub in some way so that i can boot winxp, fedora , win98. how should i connect my two hd then.

thecarpy 02-01-2008 03:33 AM

Yes, of course it is possible.

What I would do, if I were you, would be to use the windows bootloader with grub here, that way you do not have to change much hardware-wize ...


First, find out what your drive is called with fedora/windows98 ... I guess it is hdb - but there is no way I could know ;-) - it could also be sdc.



to find out, boot into fedora and type
mount

check to see which drive is mounted as /boot, if there is non, check wich drive is mounted as /

dd if=/dev/hdb1 of=/path/to/windows98/partition/bootsec.lnx bs=512 count=1

(make sure you replace hdb with whatever you find)

you take the /path/to/windows98/partition/bootsec.lnx file and put it onto your c drive in windows xp, you should be able to access the windows98 partition from within xp.

In windows xp, open cmd.exe and type

cd\
attrib -R -S -H C:\boot.ini

In notepad open c:\boot.ini and you add a line like the following:
c:\bootsec.lnx="Linux and Windows 98"

save, once that is done, go back to cmd.exe

cd\
attrib +R +S +H C:\boot.ini
attrib +R +S +H c:\bootsec.lnx

Larry Webb 02-01-2008 06:40 AM

I may be misunderstanding, but here is an article explaining the boot system and how to's.

http://www.justlinux.com/forum/showt...hreadid=147959

There are several different ways to accomplish the same thing but the best about this setup is that any upgrades won't bother your boot. You boot the partitions instead of the operating systems.

spagoti13 02-12-2008 03:40 AM

here is the reply i got from mount

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hdc7 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/hdc1 on /mnt/Windows/C type vfat (rw,umask=0000)
/dev/hdc5 on /mnt/Windows/D type vfat (rw,umask=0000)
/dev/hdc6 on /mnt/Windows/E type vfat (rw,umask=0000)

where should i put

dd if=/dev/hdb1 of=/path/to/windows98/partition/bootsec.lnx bs=512 count=1

and i can not find bootsex.lnx

thanks


All times are GMT -5. The time now is 07:51 AM.