LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   format linux (https://www.linuxquestions.org/questions/linux-general-1/format-linux-38488/)

virtualking 12-16-2002 03:37 AM

format linux
 
hi , ...
i have two OS win98 & linux redhat 7.1 , now i want to formt linux
how can i format it and let my win98 as it .

rootboy 12-16-2002 04:17 AM

Re: format linux
 
Quote:

Originally posted by virtualking
hi , ...
i have two OS win98 & linux redhat 7.1 , now i want to formt linux
how can i format it and let my win98 as it .

I'm assuming that you want to get rid of linux and just use Windows. I am also assuming that you have linux on your first hard drive. Do not proceed with these instructions unless you are sure that this is what you have, and that this is what you want to do. These instructions will remove partitions, which will destroy data. I would strongly recommend backing up your data first.

In Windows:

1) Make a Windows boot disk, copy FDISK.EXE to it.


In linux (Windows won't do this for you):

2) run "fdisk /dev/hda" as root.

3) hit "p" to print out your partition table.

4) Look at the last column, you will want to get rid of anything that says "linux".

5) hit "d" and the partition number for your linux partitions (be sure to get the swap partition as well).

6) If your are sure that this is correct, then hit "w" to write the new partition table and quit. Otherwise, hit "q" to quit without making any changes.

6a) You could also use linux's fdisk to create your new Windows partition, but I'm going to assume that you will want to do this using Windows (either way will work just fine).

7) If you deleted your linux partitions (linux and linux swap), then simply cycle your power switch. No sense in an orderly shutdown now...

8) Boot up using your Windows boot disk. Type FDISK /MBR and hit enter.

9) Reboot without the floppy, Windows should come up. Recreate, enlarge, whatever, your extra space and format it for Windows (be sure not to accidentally format your "C:\" drive.


John


All times are GMT -5. The time now is 02:40 PM.