Qtparted freezes while partitioning usb stick

Posted on 2008-11-08
Last Modified: 2013-12-01
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
Question by:leve1987
    LVL 3

    Accepted Solution

    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>
    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


    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.


    Author Comment

    you are the man! thumbs up!!!

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Suggested Solutions

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now