LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-12-2015, 03:22 AM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,023

Rep: Reputation: 176Reputation: 176
two questions about using "Disks" utility to partition a flash drive


1) What is the difference between "deleting" what is on the flash drive and "formatting" it? When you choose "formatting" you have to delete whatever might be on the flash drive anyway. Seems to me they do the same thing except the "deleting" leaves nothing, whereas the "formatting" deletes everything there but also formats. Would that be right?

2)Can I partition a flash drive without deleting all the data on it first? I have seen all kinds of software kind of work-around things but it seems to me the only sensible way of doing it is to copy what's on the flash drive, then format the flash drive and then put the data back on.
 
Old 05-12-2015, 03:57 AM   #2
Bruce Baker
LQ Newbie
 
Registered: Jul 2013
Location: Medina, OH
Distribution: Mint KDE
Posts: 7

Rep: Reputation: Disabled
Formatting flash drives

The answer to your first question is: Yes, technically formatting does delete and then format.

Now to get to your second question, first make sure you have a safe copy somewhere else of your data (assuming you care at all about the data); then second go ahead and experiment. Try it out. If it works, you'll be terribly proud of yourself for having tried and succeeded. And if it fails, you will have learned something that you are not likely to forget.

Again; always, always start by backing up your data!
 
1 members found this post helpful.
Old 05-12-2015, 05:15 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,390

Rep: Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470
As explained in your other thread to add a new partition without using gparted:

Backup data
Delete original partition
Create smaller partition 1
Create new partition 2
Format filesystem 1
Format filesystem 2
Restore data to partition 1

Yes, you can partition a drive without deleting data. gparted basically performs four operations, resizing the original filesystem, resizing the original partition and creating, formatting a new partition.
 
1 members found this post helpful.
Old 05-12-2015, 08:43 AM   #4
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Formatting a partition does not involve deleting the partition, it only deletes the data on the partition. Deleting a partition does more than just format it, and you have to then add a new partition, of any type, or multiple partitions. I have no idea what the "disks" utility does, I don't use Xubuntu. I run gparted directly, and it works on any Linux distro.
 
1 members found this post helpful.
Old 05-12-2015, 08:49 AM   #5
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 22, MX 21 Fluxbox
Posts: 6,879
Blog Entries: 21

Rep: Reputation: 3421Reputation: 3421Reputation: 3421Reputation: 3421Reputation: 3421Reputation: 3421Reputation: 3421Reputation: 3421Reputation: 3421Reputation: 3421Reputation: 3421
If the flash drive mbr has been written because it was used as a linux live usb.

I delete the thing 1st and hit apply. Then make a new partition on the deleted space.
If just data only. Format is what I only use instead.
Format does not touch the mbr on a flash drive.
 
1 members found this post helpful.
Old 05-13-2015, 01:07 AM   #6
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,023

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by Bruce Baker View Post
The answer to your first question is: Yes, technically formatting does delete and then format.

Now to get to your second question, first make sure you have a safe copy somewhere else of your data (assuming you care at all about the data); then second go ahead and experiment. Try it out. If it works, you'll be terribly proud of yourself for having tried and succeeded. And if it fails, you will have learned something that you are not likely to forget.

Again; always, always start by backing up your data!
Thanks. Yeah, you're right. You've got to experiment. That's the quickest way to learn.
 
Old 05-13-2015, 01:10 AM   #7
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,023

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by michaelk View Post
As explained in your other thread to add a new partition without using gparted:

Backup data
Delete original partition
Create smaller partition 1
Create new partition 2
Format filesystem 1
Format filesystem 2
Restore data to partition 1

Yes, you can partition a drive without deleting data. gparted basically performs four operations, resizing the original filesystem, resizing the original partition and creating, formatting a new partition.
Thanks but seems complicated. And don't have gparted. All the resizing etc. seems really complicated. I'm hoping some of this stuff is going to get through by osmosis.
 
Old 05-13-2015, 01:18 AM   #8
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,023

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by sgosnell View Post
Formatting a partition does not involve deleting the partition, it only deletes the data on the partition. Deleting a partition does more than just format it, and you have to then add a new partition, of any type, or multiple partitions. I have no idea what the "disks" utility does, I don't use Xubuntu. I run gparted directly, and it works on any Linux distro.
Okay, I'm tracking a bit with you but really what's the difference between deleting the partition itself (which would be "delete") and deleting just the data on the partition (which would be "format")? And the format the way you described it would seem to remain (via "formatting" not "deleting") (just deleting the data) and if that's the case why would it ask you to format it again (if only the data was deleted)?
 
Old 05-13-2015, 01:21 AM   #9
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,023

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by rokytnji View Post
If the flash drive mbr has been written because it was used as a linux live usb.

I delete the thing 1st and hit apply. Then make a new partition on the deleted space.
If just data only. Format is what I only use instead.
Format does not touch the mbr on a flash drive.
mbr introduces a new (unwanted-lol) element into this discussion. (All complications are loathed.) I looked it up. Master boot record but beats me why I need to be concerned about it.

So the usb flash drive I used to boot the MX14 (made with Unetbootin), that flash drive should be deleted?

However if I just had a usb flash drive with regular data on it then I would be okay just formatting it?
 
Old 05-13-2015, 05:53 AM   #10
Bruce Baker
LQ Newbie
 
Registered: Jul 2013
Location: Medina, OH
Distribution: Mint KDE
Posts: 7

Rep: Reputation: Disabled
First question: Yes, by all means only delete the flash drive when it is being used as a boot drive.

Second question: Yes, again, go ahead and format the drive when it is only data (assuming you have already backed up the data if you ever want to see it again).
 
1 members found this post helpful.
Old 05-13-2015, 10:55 AM   #11
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,046

Rep: Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271Reputation: 2271
Quote:
Originally Posted by Gregg Bell View Post
Thanks but seems complicated. And don't have gparted. All the resizing etc. seems really complicated. I'm hoping some of this stuff is going to get through by osmosis.
If you have Ubuntu, then gparted should have been installed. Try running it from the command line, if you can't find it in what passes for a menu.
 
1 members found this post helpful.
Old 05-14-2015, 12:11 AM   #12
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,023

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by Bruce Baker View Post
First question: Yes, by all means only delete the flash drive when it is being used as a boot drive.

Second question: Yes, again, go ahead and format the drive when it is only data (assuming you have already backed up the data if you ever want to see it again).
Thanks Bruce

Last edited by Gregg Bell; 05-14-2015 at 12:12 AM.
 
Old 05-14-2015, 12:13 AM   #13
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,023

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by DavidMcCann View Post
If you have Ubuntu, then gparted should have been installed. Try running it from the command line, if you can't find it in what passes for a menu.
Thanks David. I can get it from synaptic or the Ubuntu Software Center. I'm just sticking with Disks for now because I'm starting to understand it.
 
Old 05-14-2015, 01:21 AM   #14
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,023

Original Poster
Rep: Reputation: 176Reputation: 176
So, if I want to take a 32GB flash drive that has 1GB of data on it and make that 32GB flash drive have four equal partitions of 8GB each. The only way to do that would be (of course to save my 1GB of data somewhere else) to delete the entire 32GB. Then I would create a partition of 8GB. Then I would create partition number two of 8GB. Then number three and number four. Right?
 
Old 05-14-2015, 04:19 AM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,390

Rep: Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470
See my post #3 and add the additional 2 new partitions...

It really is not complicated.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "unmount volume" or "eject volume" to safely remove a flash drive? Gregg Bell Linux - Newbie 15 04-30-2014 03:02 PM
seeking linux workstation oriented "audit" or "inventory" utility SaintDanBert Linux - Software 2 02-08-2012 05:02 AM
GParted won't partition flash drive -- can't get past "set disklabel" gray53 Linux - Newbie 12 08-01-2009 08:40 AM
"multiboot utility" and "dell utility partition" on dell i5150 xround Linux - Laptop and Netbook 5 04-21-2005 09:19 AM
Swap file "drive" or partition for new PC/speed questions? robbow52 Linux - Hardware 4 01-08-2004 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration