LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-07-2004, 04:11 PM   #1
Dirtyape145
LQ Newbie
 
Registered: Dec 2004
Location: Philly
Posts: 1

Rep: Reputation: 0
How do I reformat my Linux Redhat 6.1


I just got Suse and I want to entirely get rid of Redhat 6.1. I want it off my machine I am the newbiest of all newbies so i need some specific indirections and stuff. I need to get it off my machine and there is no important info so any way possible i want to start completely blank!!!!!!!!!!!!!! help me pleas?
 
Old 12-07-2004, 04:37 PM   #2
visaris
Member
 
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
*warning* These instructions assume that you want to completely erase your drive!!!

I know the SuSE installer has some sort of partition/formatting wizard (I've actually used it before) but I don't have it in front of me right now.

I think the easiest way to clear out the old system entirely would be to get a copy of a Knoppix cd or even somthing like the bootable Gentoo install CD. (I have never done this wich a Knoppix cd, so I don't know for sure if it has all the tools you need. I know for a fact the Gentoo cd does though. Look at www.gentoo.org if you need to download an ISO of it.) Boot off that cd, and find your way to a command prompt.

The next step is to find out which drive you want to erase. If you only have one harddrive in your system, it should be /dev/hda. type "cat /proc/ide/hda/model" to make sure you know what drive you are dealing with. If hda doesn't work, try ../hdb/.. or ../hdc/.. in that fashion until you find your drive. My harddrive is hdc and /model says somthing like this:

Code:
root@tcm # cat /proc/ide/hdc/model
WDC WD1200JB-00DUA3
Once you have found your drive type in "fdisk /dev/hda" where "hda" is the 'name' of your drive. Type "p" (for print) when prompted for a command and you should see somthing that resembles this:

Code:
root@tcm # fdisk /dev/hda

The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 120.0 GB, 120025313280 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1           9       72261   83  Linux
/dev/hda2              10         259     2008125   82  Linux swap
/dev/hda3             260        9729    76067775   83  Linux

Command (m for help):
You're almost done!

Now just type in "d" as your command (for delete) and when prompted for a partition to delete say 1. Do the same thing again and for the partition, say 2. Keep doing that until there are no partitions left. (You can check this by doing a "p" command now and then.) Now, type "w" (for write) as your command to write the partition table to the disk. You're done! You're old linux install should be history. Reboot and enjoy installing your new SuSE version!

Last edited by visaris; 12-07-2004 at 04:44 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing linux on a used HD...how do i reformat it? bluemandrin Linux - Newbie 7 04-23-2005 06:43 AM
My winXP has been hacked!Can I reformat XP partitionwithout harming linux partition? Ausar Linux - Newbie 6 06-12-2004 11:37 PM
Reformat and install Win2000 and Linux on Fat 32 ALF Linux - General 8 11-12-2002 01:32 AM
reformat from Linux to NT or Windows donsung Linux - General 5 11-04-2001 11:14 PM
Why do you have to reformat after uninstalling linux? jawman01 Linux - Newbie 1 10-16-2001 10:41 AM


All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration