PDA

View Full Version : Reclaim and reformat partition.



Lamont
12-24-2003, 04:32 PM
I finally have Knoppix installed and working so well on my Toshiba laptop that it is my primary OS. I also have Win2k installed and tried to add another linux distro to have a tripple boot system. The other distro didn't work.

Long story short, the other distro formatted its partition as reiserfs. What would be the best way to reclaim and reformat this partition? I can see it in qtparted and cfdisk but have not been able to find out which is best for this operation as most docs focus on partitioning. I have PartitionMagic but, it no longer works on this drive because of the reiser partition.

I have done Ghost backups of all important partitions but, would like to accomplish this with the least chance of hosing my system.

Thanks.

tearinghairout
12-24-2003, 04:44 PM
Can't you just delete it?

Either right click and choose delete off the pop-up menu, or select it and use delete on the operations menu.

Then you can either resize the one before it, or create a new partition of whatever type you like.

Lamont
12-24-2003, 04:54 PM
I'm sure I could delete it. I just want to make sure I do it right.

CFdisk has an option to change the file type. Will that then reformat the partition to the selected type?

Lamont
12-24-2003, 04:59 PM
I have also considered overwriting that partition with the Ghost image of the Knoppix install since the offending partition is larger.

tearinghairout
12-24-2003, 05:11 PM
I don't think simply changing the type will actually reformat it for you.

The partition type is really just a flag that tells the OS what sort of things it should expect to find inside the partition, so that the OS knows whether it should even recognise the partition.

You still have to manually create the filesystem on the partition (aka format).

Notice that in cfdisk in the list of possible types, there are no entries for Ext2, Ext3, Reiserfs etc. These all fall under the general type of "Linux".

What do you want to do with this third partition?
make it available under windows as a D:?
make it available under Knoppix as a separate filesystem?
make one the other partitions bigger?

Lamont
12-24-2003, 05:21 PM
I had the impression from the docs for cfdisk that if you changed the partition type it would ask if you wanted to reformat. I've been wrong before :?

I would like to format it as FAT32 to be used as a data partition for windows and knoppix.

Thanks for your help.

tearinghairout
12-24-2003, 05:38 PM
I just tried changing the type of a partition using cfdisk, and it didn't prompt me for reformating.

If you want to use as a common drive, then I think you need to change the type - using cfdisk if you want - to Fat32.

Then you need to format it.
You can either:
In windows, format as usual.
In Knoppix, run mkdosfs

Lamont
12-24-2003, 05:47 PM
My biggest concern is that this procedure is non-destructive to the other partitions. I take it that they will be ok.

I will give it a shot. Thanks for your help!

jeramy
12-24-2003, 05:51 PM
If you just change the type for the one partition, and then write the partition table, it will only destroy the data on that one partition.
I have changed the partition types many times on /dev/hda3 on my machine, and the data in /dev/hda1 and /dev/hda2 have never been destroyed.

Lamont
12-24-2003, 09:58 PM
Thanks both for your help.

Lamont
12-25-2003, 12:39 AM
The deed is done. Using cfdisk I deleted the partition and was then able to use PartitionMagic to move and resize the other partitions. The only hickup was that after booting into Win2k and redoing the partitions Win2k will no longer boot. I get an error about a bad file. No biggie. I'll just reinstall it.

Important thing is that the Knoppix install is still there and working, along with the data partition :D

Thanks for the help.

A. Jorge Garcia
12-25-2003, 01:33 AM
I do this with qtparted. Once in a while qtparted won't delete a partition or resize it at which point I revert to cfdisk.

Good Luck,

baldyeti
12-25-2003, 04:19 PM
The only hickup was that after booting into Win2k and redoing the partitions Win2k will no longer boot. I get an error about a bad file. No biggie. I'll just reinstall it
You probably don't need to. If you've been shuffling partitions around, you simply need to adjust the partiion number in the C:\boot.ini (http://www.windows-help.info/xp_bootini.htm) file.

default=multi(0)disk(0)rdisk(0)partition(N)\WINDOW S
Adjust the "N" value above. You can do this from knoppix if your C: unit is writable (hence *not* NTFS). Otherwise, the NT/XP recovery console (http://www.google.com/search?q=XP+recovery+console) should help you (see the "fixboot" and "fixmbr" commands)

Lamont
12-26-2003, 03:19 AM
I reinstalled the Win2k image and all is as it should be now. I am amazed at how well Knoppix works on my Toshiba (Satellite 1415-S173).

Thanks for the help.