[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

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
0
leve1987
Asked:
leve1987
1 Solution
 
Luqman ShantalCommented:
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
 
leve1987Author Commented:
you are the man! thumbs up!!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now