LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-26-2014, 05:55 PM   #1
dercolamann
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Rep: Reputation: Disabled
USB-Stick seems to be there twice


Higuys!

I have following problem, I cant solve with my knowledge:

I put an OS on an 8 GB USB Flashdrive (dont know the manufacture) by burning the ISO-File on it. Worked perfectly well.
Now I wanted to use it "normal" again. So I put an new partition table with an new FAT partition on it. I thought that it should act now like normal USB-drive.
But it doesnt! When I plug it in, dolphin shows two devices to mount.

1. UDF Volume
this is the corret one containing the new partition (8gb space, so the whole stick should be this partition). when i take a look into mtab it correctly says /dev/sdb1. I can use the partition without problems.

2. USB Disk 2.0
if i open this one, I get a part of the directory structure from the ISO-file. The disk is mounted read only. Total size is 3,5 GB so its the size of the ISO. /etc/mtab says that /dev/sdb (with no number) is mounted!!

My Interpretation
In the partition table there is only partition 1. Somewhere must be the original ISO-fs, so linux still recognizes it, but also sees the partition table. (I cant mount both partitions the same time.) I havent known that this is even possible.

So is it a good idea to just overwrite /dev/sdb with 0 with the command dd?
Thanks in advance

Leonhard



Additional Info:
fdisk (as well as gparted) see only the first partition
in /dev there is also only /dev/sdb and /dev/sdb1
when I unmount I have to re-plug-in being able to mount again
If I rename the stick, its "UDV Volume" which changes its name

Last edited by dercolamann; 01-26-2014 at 05:57 PM.
 
Old 01-27-2014, 12:14 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
http://newcome.wordpress.com/2010/01...disk-using-dd/

do that and it should clean the disk. then you can fdisk, format as you desire.
 
Old 01-27-2014, 03:58 AM   #3
dercolamann
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
worked fine :)

Thank you, worked perfectly well.

I have done:
dd if=/dev/zero of=/dev/sdb bs=1M count=50
# so I have deleted the first 50 MiB

fdisk /dev/sdb
o # new DOS-Partitioning-Table
n # new Partition
p # primary partiton
1 # number 1
default for sectors
w # write changes

mkudffs --media-type=hd --blocksize=512 /dev/sdb1 # UDF can be read/written by Linux and Windows

Though I still dont understand, how that could be
 
Old 01-27-2014, 12:21 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
glad that worked. please mark the thread solved.

from what ive experienced there is something about creating a LiveUSB device that leaves residual areas on the drive that only a zero write seems to clear. sorry cant say why, just that it works.
 
  


Reply



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
Mounting a bootable USB stick makes the stick non-bootable PeterSteele Red Hat 6 03-15-2013 01:44 PM
Hauppauge wintv-hvr h006 - dvb-t tuner - usb-stick - hybrid tv stick Xeratul Linux - Hardware 5 12-23-2012 09:47 AM
LXer: Installing "Sugar on a stick" (Strawberry Release) On A USB Stick LXer Syndicated Linux News 0 08-04-2009 03:50 PM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:21 PM.

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