Re: [HOWTO]: Dual-boot Knoppix with Windows NT/2000/XP
Hi all-
Thanks for the great step-by-step tutorial on this. With a few tweeks, it got me up and running! You folks rock! I've quoted jdong's method and noted my tweeks to the process.
FWIW, I have three drives on my machine:
hd0 is for Win2k, split into an OS partition and a data/apps partition, both set up with FAT32
hd1 is a data storage drive with two large partitions formatted FAT32, but also holds a pair of 2G partitions for Win2k's (also FAT32) and Linux's swap files (formatted as Linux swap--go figure...javascript:emoticon(':wink:'))
hd2 is the Linux drive, with three partitions, one formatted ext3 for /, one that's currently not formatted, but will be formatted ext3 for /home when I'm done setting this up, and one 750M slice formatted FAT32 and named /CD_PREP for prepping CDs, which I will make visible to both Win2k and Linux.
I'm installing in place of RH9, but repartitioned to use no /boot partition per the Knoppix setup, as I am enough of a noobie at this to not want to mess with the stock Knoppix partitioning for the boot/OS areas. I will be pointing Knoppix at the /home, though, as I want to be able to keep that separate from the boot/OS partition....
This worked for me, but may not be advisable for those working with NTFS on their Windows partition. I used FAT32 because, when I installed Windows and RH Linux last year, there was an issue over whether Linux could read and write NTFS. If you feel comfortable with the recent NTFS rw ability that has been mentioned lately on some sites, try it. I'd back up that NTFS partition first, if it were me, though.... I plan to reformat my /CD_PREP partition as NTFS and experiment there first, since it's not critical and won't crash the Win2k OS.
Anywho, here goes:
Quote:
Originally Posted by jdong
Ok, I just confirmed that this procedure works. Tried it on TWO PC's. One XP, the other 2000.
This procedure will install a 'true' dual-boot of Knoppix. Not poor-man's install, REAL dual-boot. Plus, with the help of some free tools, you can do it without damage to your data.... Here it goes...
(Expected System Configuration, modify if needed): 2 physical Hard disks. C:\ drive is NTFS with Win NT/2k/XP installed. D:\ drive is empty.
(1) MOST IMPORTANT: Make backups of all your important data. Imagine that all your data is gone. Think about what you need to backup. Although this procedure shouldn't cause any data loss, when you're doing something of this magnitude (messing with partitions and installing new OS), you should backup. Not to mention that you should REGULARLY backup!!
(2) Create an 'ERD' (Emergency Repair Disk). This can restore your MBR in case you really goof! The process depends on your OS:
(2a) Windows NT 4: Run 'RDISK.exe'.
(2b) Win 2000 and XP: Start the Windows Backup tool, then choose 'Emergency Repair Disk'. XP/2k users have the Recovery Console and FIXMBR, plus XP users have a 'repair install' mode, so an ERD isn't too necessary for them.
(3) Boot the Knoppix CD.
(4) Start a Terminal session.
(5) Type in sudo knx-hdinstall (yes, use this older install script. From my experience, it's more stable/reliable.)
(6) Next, partition your /dev/hdb. I'm no Linux partition expert, so I just make a 300MB swap partition and use the remaining space for a Linux partition.
(7) The steps from here to after files copy should be self-explanatory.
(8) Once you get to the prompt 'Install LILO into MBR?', make sure you answer NO. Failure to do so could mean that your Windows boot partition will be removed, and you'll have to use your ERB/ Recovery Console.
(9) When prompted to make a boot floppy, make sure you make a boot floppy!. It's REQUIRED in a later step.
(10) Once Knoppix setup is done, remove the floppy and reboot. Make sure Windows still works. After doing so, pat yourself on the back... the hardest part is over!!
(11) Next, start up your computer from the boot floppy. It should load the copy of Knoppix that you just installed. If this works, then pat yourself on the back again! You're almost done!
(12) Once Knoppix is running, get to a console/terminal again. Make sure your boot floppy is still inserted!
(13) Issue the command dd if=/dev/hdx# of=/bootsect.knx bs=512 count=1. This will copy the Linux bootsector to a file. Replace hdx# with your installation partition (like hdb2)
At this point, I varied from the instructions on the second attempt to set up the bootloader....
What I did instead:
(14) Mount the C:\ drive partition in the Konqueror file browser
(15) Edit Boot.ini in KWrite as stated in (20) above.
(16) Save the file. Reboot.
(17) It should now offer Windows or Knoppix on bootup.
Thanks for the help, you saved my weekend!!! javascript:emoticon(':D')
C ya,
Dutch
Bwah ... virgin Linux user having problems.
Hey... this is my first experience with Linux -- a friend gave me a Knoppix Live CD and I had an older system lying around and thought it would be slick to learn something new, so I installed it to the HD yesterday. :D
I read up on types of installation procedures, partitions, etc., and although I'm sure I didn't do it as a pro would, I figured my setup would at least allow me to cut my teeth to a degree on Linux. So I went ahead a partioned my 15gb HD, making a 500mb swap partition first, a 5gb partition to Debian/Knoppix on the HD second, and a third and final partition for my WinXP (at the moment, I'm viewing this as my life-preserver). The Linux partition is ext3, and the WinXP partition is ntfs.
-= So, just to be clear, I believe I currently have this setup: /dev/hda1 is Linux swap, /dev/hda2 is Linux install, and /dev/hda3 is my ntfs WinXP, correct? =-
Long story short, for whatever reason my WinXP part came out as "Drive G:", my CD writer and second CD drive are "Drives E & F," and I've installed Ext2IFS v0.3, so my Linux partitions show up as "C & D." Weird and a bit clumsy, but for right now it'll do. :roll:
Now, I opted to try the initial version of a dual boot as outlined by this guide, and declined any installation of LILO into the MBR. Unfortunately, at this point I can only boot Knoppix from the ERDisk created during installation as the dual boot guide, when followed to the best of my ability, leaves me with this Windows error message when I try to initialize Knoppix from the bootload screen: " ... Windows could not start because of a computer disk hardware configuration problem. Could not read from the selected boot disk. Check boot path and hardware ..." Currently, my boot.ini file has been modified with this line here; "g:\bootsect.knx = "Knoppix"", referencing my copied bootsect.knx file sitting in the root of my WinXP partition (g:\).
When checked, it reveals that the WinXP partition is set as the bootable partition ... other than that, I'm not sure what to look for, or what to change to get this to work?! Luckily, this system up to now has been unused so I don't have anything to worry about saving on the system should a full reinstall of Knoppix/WinXP be necessary.
If anyone of you fine Linux chaps could assist me, I would very much appreciate it! I'm excited to see what this world looks like from behind a different set of looking glasses (non-M$, if you take my meaning). Thanks again for being such ahelpful community to us Linux newbs! :D
Thx
BLO