LinuxQuestions.org
Visit Jeremy's Blog.
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 03-25-2017, 07:40 PM   #1
ivanS123
LQ Newbie
 
Registered: Mar 2017
Location: Alberta, Canada
Distribution: ----
Posts: 14

Rep: Reputation: Disabled
how do i fully format my flashdrive?


Sorry, im not sure if this is a duplicate but i havent been able to find anything that fits my current problem. i have a flashdrive which mounts as two seperate flashdrives and i would like to know if i can format/partition it back into one flash drive.

i am able to edit/delete/format/partition the first usb mount, but the second always mounts as a ro usb. i have tried various methods to try and fix it in the command line, ive tried to use gparted, disks, ect. am i doing something wrong or is it just not possible?

i only have access to Bodhi linux until i can figure out how to make the usb "whole"
 
Old 03-26-2017, 11:28 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
You could always zero the entire flash drive with something along the lines of

sudo dd if=/dev/zero of=/dev/sdb bs=1M (assuming the flash drive is /dev/sdb; use with caution; all data will be lost)

Then use gparted to do any partitioning/filesystem creation you require.
 
Old 03-26-2017, 11:41 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,397

Rep: Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471
Post the manufacture of the drive if possible.

The short answer is it depends. Some manufactures like Sandisk produced a series of drives called U3. They also had a special partition that was unusable in linux but you could delete it using a special Windows program you could download. Others do not have an option to be removed but basically normal partitioning/formatting tools will not work.
 
Old 03-26-2017, 12:46 PM   #4
ivanS123
LQ Newbie
 
Registered: Mar 2017
Location: Alberta, Canada
Distribution: ----
Posts: 14

Original Poster
Rep: Reputation: Disabled
the only thing on the flash drive that it says is Learning Clicks, and i did try to use the
sudo dd if=/dev/zero of=/dev/sd command but it said that it requires write priveiges or something along those lines and the same with gparted :/
 
Old 03-26-2017, 12:56 PM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Can you attach the device, run lsusb and paste the output here please?

That should give the hexadecimal identification code of the device.
 
Old 03-26-2017, 01:12 PM   #6
ivanS123
LQ Newbie
 
Registered: Mar 2017
Location: Alberta, Canada
Distribution: ----
Posts: 14

Original Poster
Rep: Reputation: Disabled
-Enguarde:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:07dc Intel Corp.
Bus 001 Device 003: ID 04f2:b471 Chicony Electronics Co., Ltd
Bus 001 Device 008: ID abcd:1234 Unknown
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


from what i could tell from removing the usb is that it registers as

Bus 001 Device 003: ID 04f2:b471 Chicony Electronics Co., Ltd
Bus 001 Device 008: ID abcd:1234 Unknown
 
Old 03-26-2017, 01:21 PM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,672

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Quote:
Originally Posted by ivanS123 View Post
the only thing on the flash drive that it says is Learning Clicks, and i did try to use the
sudo dd if=/dev/zero of=/dev/sd command but it said that it requires write priveiges or something along those lines and the same with gparted :/
To dd to a drive requires root priveledges so means logging in as root or usinf sudo or su.
That said, what does gparted show on the drive? How big are the partitions and what are they labelled, and which file system?
 
Old 03-26-2017, 01:43 PM   #8
ivanS123
LQ Newbie
 
Registered: Mar 2017
Location: Alberta, Canada
Distribution: ----
Posts: 14

Original Poster
Rep: Reputation: Disabled
http://http://imgur.com/7ZRqp5O
http://imgur.com/JWSQVPt

those are the screenschots from gparted
 
Old 03-26-2017, 01:47 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,397

Rep: Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471
Also the output of the command.
sudo lsblk

A quick google pops up a company called ALIS (website URL contains Alberta) that has an interactive multimedia tool on a flash drive called Learning Clicks. So it is possible that your flash drive is not "normal". I looked through a few of the USB vender databases and there isn't anything registered for a b471 device although that does not mean much. Chicony makes electronics i.e cameras, keyboards etc but not sure about regular flash drives although the information could be out of date.

In addition the drive could be corrupted or broken.

Last edited by michaelk; 03-26-2017 at 01:50 PM.
 
Old 03-26-2017, 01:50 PM   #10
ivanS123
LQ Newbie
 
Registered: Mar 2017
Location: Alberta, Canada
Distribution: ----
Posts: 14

Original Poster
Rep: Reputation: Disabled
ALIS makes sense its the school who i got the flashdrive from xD

ivan-Enguarde:~$ sudo lsblk
[sudo] password for ivan:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0rpmb 179:24 0 4M 0 disk
sdb 8:16 1 510M 1 disk
└─sdb1 8:17 1 510M 1 part /media/ivan/DISK_IMG
mmcblk0boot0 179:8 0 4M 1 disk
sda 8:0 1 1.4G 0 disk
└─sda1 8:1 1 1.4G 0 part /media/ivan/GALLIUMOS1
mmcblk0boot1 179:16 0 4M 1 disk
mmcblk0 179:0 0 14.7G 0 disk
├─mmcblk0p2 179:2 0 488M 0 part /boot
├─mmcblk0p3 179:3 0 13.7G 0 part
│ └─mmcblk0p3_crypt 253:0 0 13.7G 0 crypt
│ ├─ubuntu--vg-root 253:1 0 9.9G 0 lvm /
│ └─ubuntu--vg-swap_1 253:2 0 3.9G 0 lvm [SWAP]
└─mmcblk0p1 179:1 0 512M 0 part /boot/efi

Last edited by ivanS123; 03-26-2017 at 01:53 PM.
 
Old 03-26-2017, 03:18 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,397

Rep: Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471
Looks like your sda1 is 1.4 GB and the GalliumOS ISO files only about 1 GB so do you really need the extra space? It also looks like you tried copying the ISO to the drive. What method did you use? Were there any error messages.
 
Old 03-26-2017, 03:24 PM   #12
ivanS123
LQ Newbie
 
Registered: Mar 2017
Location: Alberta, Canada
Distribution: ----
Posts: 14

Original Poster
Rep: Reputation: Disabled
Looks like your sda1 is 1.4 GB and the GalliumOS ISO files only about 1 GB so do you really need the extra space? It also looks like you tried copying the ISO to the drive. What method did you use? Were there any error messages


the sda1 has the right size beside it but the sdb has an unused 3.5GB(or so), when i look at its partition, that id like to be able to use as one whole usb

and the iso did fit on the usb but i couldnt boot from it after i tried to burn it i UNetbootin

Last edited by ivanS123; 03-26-2017 at 03:26 PM.
 
Old 03-26-2017, 03:32 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,397

Rep: Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471Reputation: 5471
If you look at the GalliumOS instructions they state do not use UNetbootin.

https://wiki.galliumos.org/Installin...g_Bootable_USB

Last edited by michaelk; 03-26-2017 at 03:40 PM.
 
Old 03-26-2017, 03:36 PM   #14
ivanS123
LQ Newbie
 
Registered: Mar 2017
Location: Alberta, Canada
Distribution: ----
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
If you look at the GalliumOS instructions they specially state do not use UNetbootin.

https://wiki.galliumos.org/Installin...g_Bootable_USB
oops xD
 
Old 03-27-2017, 01:05 AM   #15
art3m
LQ Newbie
 
Registered: Feb 2012
Location: Spokane, WA
Distribution: Debian Jessie, Kali Linux
Posts: 18

Rep: Reputation: Disabled
In the terminal as root first check where your usb is mounted (if mounted)
Quote:
fdisk -l
Once you know where its mounted /dev/sd* make sure you unmount it first
Quote:
umount /dev/sdx
Next you can format your usb drive. Most people like to format
it in fat format but you can always format it in whatever format you like.
Quote:
mkfs.vfat -n "name your usb disk" -I /dev/sdx
You don't have to name your USB if you don't want to.
Once it is completed you can mount it back and you are good to go.

Quote:
mount /dev/sdx /mnt/folder
Hope it helps.

- art3m
 
  


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
Flashdrive Trash nmg49 Linux - Desktop 3 03-12-2012 05:15 PM
Using flashdrive for Mint 10? SuperPenguin Linux - Newbie 2 05-05-2011 03:03 PM
How to format USB flashdrive tux_addict Slackware 4 11-13-2006 10:04 PM
Backuping my flashDrive artois_val Linux - Newbie 1 07-02-2006 05:52 AM

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

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