GUI program for formatting partitions for Linux use

What features/apps/bugfixes needed in a future Puppy
Message
Author
saintlangton
Posts: 108
Joined: Sat 28 May 2005, 21:49

#16 Post by saintlangton »

Barry,

Further progress has been made on my script but it's nowhere near up to scratch yet.

I'm thinking that it will be a dotpup and I would be extremely honoured if it ended up in puppy 1.0.7.

Lots more tweaking and testing to do first though. One thing that would not be good is to have a flaky format utility! Trashed drives are not fun.

Chris

flamesage2

#17 Post by flamesage2 »

What I really really really need for linux, is a way to resize my NFTS so I can make room for Puppy's Partition (without destroying the NFTS partition, WindowsXP.) Do you think you could add something like this in? This is the ONLY way I can live with my puppy, is having it in a seperate partition (it will make my life alot easier)

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#18 Post by rarsa »

Isn't it easier and more efficient to have it as a pup001 file booting from CD?

Anyway. You can use qtparted. I've used in in Knoppix, I haven't tried to compile it for puppy as I always have my knoppix DVD at hand.

It does not have too many dependencies so it sould be quite straight forward to compile :
From the Qtparted FAQ wrote: If you want to build QTParted you must have libparted installed and running, the header of that library, and the full SDK of QT. Make sure that you set the QTDIR and QMAKESPEC environment variable to the correct values.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#19 Post by Flash »

I wish you'd go ahead and make a dotpup. I tried using some of the Knoppix tools and ran into a password mess I couldn't figure out.

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#20 Post by rarsa »

In knoppix you 'sudo' everything. It does not ask for password.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#21 Post by BarryK »

There is a ntfsresize program -- not sure if that is its exact name.
It is part of the ntfs-tools package.
It is supposed to be quite reliable to use, but a trifle complex.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#22 Post by MU »

You should not use qtparted to resize partitions, it has some heavy bugs.
In my german board I got feedback, that those are known problems.

I used it several times.

No other tools like Mandrakes Diskdruid or cfdisk cannot access my partitions any more (also qtparted itself).
I get some errors like something is overlapping.

Not all partitions are visible in every system (but puppy gets them still all) :)

I don't mind about that, as I just bought an additional harddrive, so there is no more need to resize, but for other people that can be very nasty.

Mark

saintlangton
Posts: 108
Joined: Sat 28 May 2005, 21:49

PFORMAT ALMOST THERE!

#23 Post by saintlangton »

Sorry for the shouting but I've got myself excited...

The Pformat script is effectively done!

Please take a look and try out the drive and partition detection. Don't worry it doesn't yet do anything - It just talks about it.

Only thing left to do is to stop mounted drives being allowed to be selected.*

Once that is done and formatting is enabled my work is done
(See the PFENGINE section of the script - all commented out)

Please take a look and please comment on the execution... will it be reliable? do I have to do something to ensure if fails gracefully?

TODOLIST:
-Ensure mounted partitions are not offered as options
-Change type (using fdisk) as well as formatting?
-Enable formatting engine

Chris

* All suggestions on how to do this gratefully received...

EDIT: Uploaded fixed version that does now let you exit. Thanks MU!
Attachments
PformatX2.tar
Corrected bug spotted by MU
(10 KiB) Downloaded 225 times
Last edited by saintlangton on Fri 04 Nov 2005, 01:53, edited 1 time in total.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#24 Post by MU »

Good:
It recognized all my corrupt partitions.
MUT does not recognize hda10
(my partitions go up to hda11)

"Bad":
I clicked on hda - hda9 - "format" - ext2 -exit

The "exit" (when it asks "ok to continue?" was ignored, and it tried to format anyway (what is fortunately not working in this demo).

Mark

saintlangton
Posts: 108
Joined: Sat 28 May 2005, 21:49

#25 Post by saintlangton »

Thanks MU.

Now corrected!

How about that for open source in action!

Cheers

Chris

User avatar
Ian
Official Dog Handler
Posts: 1234
Joined: Wed 04 May 2005, 12:00
Location: Queensland

#26 Post by Ian »

Just a couple of comments, I would have used mke2fs instead of mkfs.ext2 or a variable to allow the user to state ext2 or ext3.

These are probably academic but I thought I would throw them in anyway.

saintlangton
Posts: 108
Joined: Sat 28 May 2005, 21:49

#27 Post by saintlangton »

Ian wrote:Just a couple of comments, I would have used mke2fs instead of mkfs.ext2 or a variable to allow the user to state ext2 or ext3.

These are probably academic but I thought I would throw them in anyway.
Thanks Ian,

Do you mean simply to add ext3 as a formatting option? If so, will do. If you mean that mke2fs is superior way of formatting the partition, please elaborate. (Is it faster?/more reliable?/other?)

Cheers

User avatar
Ian
Official Dog Handler
Posts: 1234
Joined: Wed 04 May 2005, 12:00
Location: Queensland

#28 Post by Ian »

Its a matter of choice but I prefer 'mke2fs' to 'mkfs -t ext2', less typing involved.

You could offer the option of which filesystem type to format with, that way you can forestall requests for other types.

saintlangton
Posts: 108
Joined: Sat 28 May 2005, 21:49

Pformat release candidate

#29 Post by saintlangton »

Ok here is PformatX3...

Now:
-Only allows unmounted partitions to be selected
-Format options for swap, ext2, ext3, fat16 and fat32
-ACTIVE version actually will try to format your partitions. BE CAREFULL PUPPIES!

The 2 versions have the same code only the relevant "#" has been removed from the active lines.

WARNING: This is experimental code, please only use active version after checking to your satisfaction that it won't do anything nasty (see MU's experience above)

Chris

EDIT: The script checks for mounted partitions but I don't know how to check if partition is being used as swap. Does this matter? Can anyone help me with this? Cheers
Attachments
PformatX3.tar
(20 KiB) Downloaded 243 times

saintlangton
Posts: 108
Joined: Sat 28 May 2005, 21:49

#30 Post by saintlangton »

New development:

I've edited the Pdisk script (and renamed it Pdisknformat) so that it now gives the option to launch PformatX3 alongside fdisk and cfdisk. (the deactivated version is included in the .tar just remove the #'s to activate)

To make it work untar into /usr/sbin and either click on in Rox or type Pdisknformat into rxvt.

It's a little kludgy -Pdisk asks to select disk and then Pformat does as well... On the other hand when messing with formatting you do want to be sure... (and I haven't got round to trying taking input into the script like that...)

Chris
Attachments
Pdisknformat.tar
(20 KiB) Downloaded 234 times

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#31 Post by MU »

There seem to be problems with additional usb-drives.

Here are 2 screenshots.

I run
# ./PformatX3

This screen shows up:

Image

Then I click on sda
Image

It shows me some partitions from hda then.

Greets, Mark

rob(unloggedin)

pformat

#32 Post by rob(unloggedin) »

Hi guys, this app didnt show up any partitions! I wanted to format in fat32 (hope thats possible!) The output is shown below:

saintlangton
Posts: 108
Joined: Sat 28 May 2005, 21:49

#33 Post by saintlangton »

Hi Rob,

Thanks for the feedback, this is very much a work-in-progress. It seems that puppy sees the partitions. But it seems that part of my script doesn't :oops:

The whole thing is in need of a re-work to ensure USB stuff works also the msdos and fat32 bits don't seem to work properly and now it seems that it doesn't regognise your partitions at all :?

The aim of this is to have a script that 'does what it says on the tin' simply and easily but it's quite away from that yet. My recommendation would be to linux google "man mkfs.vfat" eg here learn as much as you can about the necessary commands and then (once fully backed-up) go for it from the comand line.

At the moment Pformat is not anything like a finished tool, hopefully it will be sometime soon...

Cheers

Chris

User avatar
bkeadle
Posts: 20
Joined: Mon 05 Dec 2005, 07:21

#34 Post by bkeadle »

Say gang...is this "soup"...is it ready. I've been looking for something like this (seems that qtparted still isn't an available pup), this Pformat looks real good.

Post Reply