Formating Hard Drive
Ok, I posted this before but really need the answer, I am trying to reformat a hard drive that has Linux Red hat 7.1 and I have "NO Clue" what I am doing Please help need Detailed help!
|
What do you want to format to? Fat32, Ext3, ReiserFS?
Assuming ext3: mke2fs -j /dev/hdx Where /dev/hdx is the partition that you want formated. If you don't have any partitions on the drive, use: fdisk /dev/hdx First to create at least 1 partition to create a filesystem (format) on. If you want to create fat32: mkfs -t vfat /dev/hdx IIRC is the syntax. Check man mkfs for more info. Cool |
Ok
Ok I'll give it a try and hope for a miracle
|
Quote:
|
Re: Ok
Quote:
Cool |
Quote:
If you want to format the HD to remove linux you'll need to boot up with a rescue disk of some sort, maybe the install Disc that came with your distro has a rescue feature in it, if so, boot up with it, and follow the above mentioned syntax for whatever filesystem you want to be on that HD. If you want to remove windoze, boot up into Linux and follow the above examples... :) Cool |
Quote:
|
Sure, but it's not as crippled of a program as DOS's is. So you'll need to give it some parameters. If you wanna just wipe a disk completely, and remove all partitions, here's what I'd do:
dd if=/dev/zero of=/de/hdb This will basically write a bunch of zero's to that drive (*NOTE: /dev/hdb is the Master Slave drive, replace the B with the letter pertaining to the drive you wanna wipe) Once that's done, you'll then need to recreate a partition on that drive: /sbin/fdisk /dev/hdb (again, use the above letter corresponding to the drive you want to do this to) Then: n To create a new partition p For a primary 1 For the first primary And use the defaults for size if you just want to make 1 big partition on the drive. w to write the changes, save and exit. THEN you'll need to make a filesystem on the new partition: mke2fs -j /dev/hdb1 And after that's finished, you'll then have a spankin new drive, with an ext3 filesystem on it ;) Cool |
Ok, I'll try that but not now if I do I may end up throwing my computer out the window, Just so you know most of this is chinese to me But thanks for the help none the less
P.S basicly I just wanted to clearn linux off and put windows back on that system X.x |
|
Huh
heres the thing, I tried that and it said there is no Dos Partition, and could not Create temepory Directory
|
You'll first have to use DOS's crippled fdisk to delete and create the DOS partitions:
fdisk Then you'll use the old: format C: And likely, finally use: fdisk /mbr To get rid of the boot loader. Cool |
huh
MasterC do you know where I can get a detail desc of doing this? hmm I'll go look around myself. Thanks for the help I am sure get this mess fixed :confused: :(
|
Actually, it's pretty much like I showed above if you use the win98 boot disk...
Pretty straight forward stuff ;) Cool |
Well I am not sure what happen but now Linux won't even load, but I can still load boot disk, CD's wont work so I am in a big mess, :rolleyes: *pulls out a hammer* :scratch:
I actaully download fdisk, in hopes of mabye using it, but don't know if I can get my fdisk to be a boot disk :confused: |
All times are GMT -5. The time now is 11:51 PM. |