[SOLVED] Need a very easy (stupid-simple) way to partition a flash drive
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need a very easy (stupid-simple) way to partition a flash drive
Yes, newbie here. I managed to partition a flash drive earlier in "Disks" (I'm using Xubuntu) and it was a miracle that I pulled it off. Now I want to do another partition and I was just looking at "Disks" again and I was terrified I was going to lose data.
What I'd like to do is take a 16GB flash drive and set aside 2GB so that I can copy and paste roughly 1GB of data there. The 1GB of data will not increase much. All it will ever need would be the 2GB.
So what's easy? Simple? User-friendly? User-best friendly? Maybe "Disks" is the easiest thing around. Believe me, I've searched for tutorials and couldn't find anything that wasn't old. (If you have a good one please leave a link.) (There seem to be lots of tutorials for G-parted but that looks complicated.)
I suggest using gparted. Make sure that any important data is backed up because there is always the chance of something going wrong and be sure the drive is unmounted.
I suggest using gparted. Make sure that any important data is backed up because there is always the chance of something going wrong and be sure the drive is unmounted.
If you still have the DVD/flash drive you used to install Xubuntu, it should have GParted on it. The best source of information for GParted is the manual at the link below:
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,012
Rep:
If you have only one partition with data in it, the safest thing to do is to back up that data before re partitioning the drive.
I remember how scary it can be, but I suggest using a terminal program to do it, as you can't accidentally click on something & wreck your drive.
My choice is fdisk, it needs running as root/sudo, but before running it, remove & then re plug in your pendrive, then run
Code:
dmesg | tail
which will tell you how your system sees your pendrive, (likely as /dev/sdb), then just make sure you are operating on it. If it is indeed /dev/sdb, then use
Code:
sudo fdisk /dev/sdb
NB Nothing is changed until you write it to disk, plenty of time to check what you do.
gparted is better then fdisk since it will resize the old filesystem as well as resize the existing partition at the same time. There is more then one way to accomplish the task but would consider fdisk more scary. With fdisk once the existing filesystem is resized you need to delete the old partition then recreate it with the correct size value before creating the new partition. Or backup, repartition, format, restore.
Many consider the CLI scary and fdisk is not user friendly compared to cfdisk. I wanted to expand on your suggestion to prevent the OP from thinking it was a one step process.
I suggest using gparted. Make sure that any important data is backed up because there is always the chance of something going wrong and be sure the drive is unmounted.
Thanks. See, even right off the bat I was doing something wrong because I was making sure the flash drives were mounted (and wondered why "Disks" was unmounting them.)
Last edited by Gregg Bell; 05-09-2015 at 04:44 PM.
If you still have the DVD/flash drive you used to install Xubuntu, it should have GParted on it. The best source of information for GParted is the manual at the link below:
Thanks. Don't have the flash drive used to install 15.04 and 15.04 (Xubuntu) doesn't have gparted on it. Thanks for the link and narrowing it down for me by highlighting 6C.
If you have only one partition with data in it, the safest thing to do is to back up that data before re partitioning the drive.
I remember how scary it can be, but I suggest using a terminal program to do it, as you can't accidentally click on something & wreck your drive.
My choice is fdisk, it needs running as root/sudo, but before running it, remove & then re plug in your pendrive, then run
Code:
dmesg | tail
which will tell you how your system sees your pendrive, (likely as /dev/sdb), then just make sure you are operating on it. If it is indeed /dev/sdb, then use
Code:
sudo fdisk /dev/sdb
NB Nothing is changed until you write it to disk, plenty of time to check what you do.
Thanks mac. Pretty intimidated by doing it not in the CLI. CLI is beyond my skill at this point. Maybe some day.
And not to be redundant here but nobody liked "Disks"? Granted I was lucky using it but it seemed simple and there is so much instructional info. on gparted, I'm wondering if "Disks" is maybe easier?
So what's easy? Simple? User-friendly? User-best friendly? Maybe "Disks" is the easiest thing around. Believe me, I've searched for tutorials and couldn't find anything that wasn't old. (If you have a good one please leave a link.) (There seem to be lots of tutorials for G-parted but that looks complicated.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.