Qtparted freezes while partitioning usb stick

Hello,
Im using Qtparted under Fedora 8 and when I try to partition a fat32 4gb usb stick qtparted opens an empty progress window and then it freezes
leve1987Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Luqman ShantalPrincipalCommented:
Here the summary I made to format my RAID, this might be useful as well with USB, just replace the cciss with sdb or whatever your USB name is.

FDISK is the defacto utility for partitioning disks. Its handy and easy.

1-      Type fdisk l to know the status of your drives.
2-      Type fdisk <device> # eg: /dev/cciss/c0d1
3-      By choosing N you create a new partition and youll be asked accordingly for starting and ending cylinders,
4-      By choosing w you write these changes.
5-      By typing quit you exit.

But FDSIK cant some times deal with big partitions, for example: If you want to make one huge partition e.g. >2 Tera, say 3Tera, youll face problems with the partition table and size of you partition will only be 1 Tera!

So the best solution is to use the parted utility which is built-in in RHEL.



Partitioning using parted

In our scenario our <device> variable is /dev/cciss/c0d1

1-      parted /dev/cciss/c0d1
2-      print
3-      mkpart primary ext2 <start> <end>
q
Instead of primary field you can put extended and logical too. But the one partition main raid implementation must be primary. Instead of ext2 you can put fat16, fat32, Linux-swap, NTFS, UFS.

The default file system for RHEL is ext3, but parted only have ext2. The trick is that: ext3 = ext2 + Journaling.

So for the moment we create ext2 then format using the journaling option.

To know the start end cylinders type print in the promt, youll have them in MegaBytes copy them as is and put the as an argument.

4-      Now type quit to exit.
5-      Mke2fs j  /dev/cciss/c0d1p1
6-      E2label /dev/cciss/c0d1p1 disk01
7-      Mkdir /disk01
8-      Mount disk01 /disk01
9-      Go to /etc/fstab and add the following line:

LABEL=disk01 /disk01 ext3 defaults 1 2


End!

To remove a partition in the parted utility type:

Rm <minor-num>
You can know the minor using the print command.


Be careful with parted, changes are immediate and are not like fdisk where you need to type the w command to apply them.

But its more friendly and human readable and more stable capable when dealing with large partitions.



0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
leve1987Author Commented:
you are the man! thumbs up!!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Utilities

From novice to tech pro — start learning today.