LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2017, 03:53 PM   #1
mintyBK73
LQ Newbie
 
Registered: Sep 2016
Posts: 1

Rep: Reputation: Disabled
multiboot lexar usb 64G multiple partitions clean format


first post: I have fiddled around with usb flash drives and sometimes it worked using several ways of getting a functional live usb drive. Persistence is not really the main objective for me. However, I, somehow(gparted) created TWO partitions on a Lexar 64G drive thinking i would be able to use the 64G optimally. ie. store data. Now, I have the flash drive with two partitions, on one of them a live distro, the other one i cannot write anything on it!
I simply created two partitions first. then used MULTIBOOT to get a distro on the first partition. It boots BUT, I know the storing data part as written above does not function! So, I want to clean the drive and try something else.
I have tried several ways of deleting the partitions, formatting etc, without the desired outcome; a clean flash drive. even when formatting the drive on a Windows machine does not work. eventhough it says the drive has been formatted. (only the partition with the distro on it!)
next boot; Distro still present.

How is that for persistence!?
sos
help
etc

grtz
 
Old 05-04-2017, 04:11 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
You could give the following a shot

Code:
sudo dd if=/dev/zero of=/dev/sdb bs=4k
Ensure that /dev/sdb is your USB stick (it may be e.g. /dev/sdc), and that the partitions on it are unmounted. *All data on the stick will be erased*

You could probably get by with just erasing the partition info at the start of the USB stick. However the above is more certain to do the job, although it does take more time.
 
Old 05-04-2017, 04:36 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,854

Rep: Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568
Quote:
Now, I have the flash drive with two partitions, on one of them a live distro,
When you boot the system on the flash drive and as root run: fdisk -l do you see the second partition?
If you do, can you create a mount point for it and mount the partition and then copy anything to it?
I expect that if you can, you would have to go through this process each time you boot.
I can't think of any reason why you could not use something like GParted to delete or format those partitions. Have you tried creating a new partition table for the flash drive? If you do that, make sure you have the correct drive!

Quote:
even when formatting the drive on a Windows machine does not work. eventhough it says the drive has been formatted. (only the partition with the distro on it!)
With a flash/pendrive seen as a 'removable device' in windows, windows only see the first partition which explains that result. With an actual usb hard drive you can create and use multiple partitions on windows. You might be able to use some third party software discussed at the windows 10 forums in the link below or change it so it does not show as removable.

https://www.tenforums.com/drivers-ha...ash-drive.html

A new partition table seems like the simplest solution if you just want to clean the drive.

Last edited by yancek; 05-04-2017 at 04:43 PM.
 
Old 05-04-2017, 04:44 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
gpt?
 
Old 05-04-2017, 08:49 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,130

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
https://askubuntu.com/questions/1858...m-a-thumbdrive

As above, be sure you know what you are doing with dd command.
 
  


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
Outputting multiple search strings into a clean format? exelan Linux - Kernel 3 07-02-2012 03:50 AM
unable to format or create partitions table on usb stick newbie0101 Linux - Hardware 4 12-22-2011 05:39 PM
[SOLVED] Multi partition USB key - unable to format partitions jorgehumberto Linux - General 8 03-16-2011 04:34 AM
Mounting USB external drive with multiple partitions, USB bluetooth mouse xmeson Slackware 7 12-17-2006 09:00 AM
Redo Linux Partitions & Clean Format Thanatos Linux - General 2 12-22-2004 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 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