Q. I have installed PCQLinux 2005 on my notebook, which has two separate drives (it is not partitioned). The C Drive (60GB) has WinXP on it, while D Drive (80GB) has Linux.
Please tell me the exact procedure to uninstall Linux without disturbing the existing Windows installation.
A. Boot from the PCQLinux CD 1 and after the graphical installer starts, which has the 'Next>>' button, press Ctrl+Alt+F2. This will drop you into a 'bash' prompt.
You will need to determine the device name of your second hard disk. in Linux, the hard disks are names as follows:
hda: primary master
hdb: primary slave
hdc : secondary master
hdd: secondary slave
Then issue:
fdisk /dev/<hard-disk-name>
The fdisk command line will appear. Press 'p'. This will display all partitions on the hard disk. Now, very carefully, delete only the partitions whose 'system' (file system) is Linux or Linux swap. For this, note down the name of the partition which will be in the form:
/dev/hdd<number>
Note that in place of hdd, you can be shown hdb, hdc or hda depending on the hard disk you selected on the previous screen. Once you have noted down the name of the partitions whose system is 'Linux' or 'Linux swap', press 'd'.
This will prompt you for the partition number. Supply the <number> suffix for the name of the one of the partitions you noted down. Press 'p' again, you will see that the partition - whose number you supplied - is not displayed. That is, it is deleted. Again press 'd' to delete other Linux partitions, if any.
Finally press 'p' again. If you see no Linux partitions, press 'w' to write the changes to disk.
Note that after this step, you cannot undo any deletions you had done. So press 'w' only when you are sure that you haven't deleted any useful partitions such as Windows. Reboot the machine. If you have installed grub/lilo in MBR (Master Boot Record) then to remove it boot from a Windows bootable disk or floppy and issue the command:
fdisk /mbr