LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-01-2011, 10:46 AM   #1
jorgehumberto
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Rep: Reputation: 0
Unhappy Multi partition USB key - unable to format partitions


Hi,

I am trying to create a multi-partition USB key to use to kick multiple OS's whenever I need (1 NTFS partition for Windows image and data storage, one ext3 for boot, another ext3 for Linux distros iso storage and the last one as a Fedora live usb with permanent storage).

I am using a Kingston Data Traveler G2 16GB usb key and I have absolutely no problem to create the partitions and all looks fine. The problem I encounter is that although I can format the 1st partition on the usd key to any fs I want, I am unable to do the same on the other partitions. I tried fdisk+mkfs.XXX (ext2, ext3, fat, vfat, ntfs) and gparted, and no luck.

mkfs.XXX gives me no errors when I run it but when I try to mount the partition in Fedora 14 the OS is unable detect the fs. Gparted allows me to format the fs, gives no errors, shows a format successful message, but when it re-scans the device the fs appears as unknown.

I know it is possible to do this as I had a DataTraveler 101 16GB and it was working fine until I lost it.

Has anyone encountered a problem like that? Any ideas?

I googled around but couldntt find anything...

Thanks in advance!
Jorge
 
Old 02-02-2011, 02:04 AM   #2
BoraxMan
Member
 
Registered: Apr 2010
Posts: 103

Rep: Reputation: 11
I have had a similar issue where a USB key would work periodically. I think the key itself was defective. The partition table is stored at the beginning of the key, and if this isn't reading correctly, it can affect the partitions that are on it.

You should check the entire USB key for error

Try this one, though it is a windows program
http://www.raymond.cc/blog/archives/...b-flash-drive/
or this one
http://www.blogsdna.com/5086/usb-dri...or-defects.htm

alternatively, you can just run

badblocks -v /dev/sdX

Do not run it on a partition, run it on the device
ie
badblocks -v /dev/sdb
NOT
badblocks -v /dev/sdb1
This will check the parition table.

See how you go. If this picks up defects, then you know your issue.
 
Old 02-02-2011, 11:08 AM   #3
jorgehumberto
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Hi BoraxMan

I tried that and here's the result:

Quote:
[root@spica ~]# badblocks -v /dev/sdb
Checking blocks 0 to 16383999
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found.

funny thing: I have no problems with only one partition...

Thanks for the tip anyway.
 
Old 02-22-2011, 04:08 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Does fdisk still find the partitions and their types? Did you choose primary or extended partition?
 
Old 02-23-2011, 02:24 AM   #5
jorgehumberto
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JZL240I-U View Post
Does fdisk still find the partitions and their types? Did you choose primary or extended partition?
Yep, I tried with both extended and primary and same problem. Funny thing: I tried once and managed to create 2 small partitions and could see them both, but when I deleted them and tried again I got the same problem.

I am thinking it might be something wrong with the usb stick itself as a few days ago I created a full disk FAT32 partition, copied some data into it (in Windows) and after returning from holidays could not read the data either in Linux of Windows. (despite showing no bad blocks or any problem)

Anyway, I found my original USB disk which works, so I am gonna close this.

Thanks for the help!!!
 
Old 02-23-2011, 03:21 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Even if it is not anymore pressing: What does fdisk -l /dev/<stick> tell us?
 
Old 02-24-2011, 01:29 AM   #7
jorgehumberto
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JZL240I-U View Post
Even if it is not anymore pressing: What does fdisk -l /dev/<stick> tell us?
I do not have the stick with me, but I remember it would not say anything unusual, would list the partitions normally with no problem at all. The problems appear when I try to format the file system...
 
Old 02-24-2011, 01:34 AM   #8
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Hmm. The partition information resides in bytes 446 - 512 of the MBR. You might extract that (e.g. with dd) and hand it to an hex editor, same as with the beginnings of the partitions. I don't doubt that one could find the meaning of those data in the net but I don't have any links handy . The partition types were okay (83 for linux AFAIR)?
 
Old 03-16-2011, 04:34 AM   #9
jorgehumberto
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Hi JZL240I-U,


Unfortunately can no longer test it, I just binned the usb stick as it was not working. Every time I copied data into it, it would appear that all was good, but when unplugging it from the computer and connecting back some data would disappear and the one that did not would be corrupted (tried both linux and windows)

Anyway, just found my old usb stick and recreated the multi partition disk and it works flawlessly.

thanks!!
Jorge
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to see partitions of external USB disk soumyadeep Linux - Hardware 3 01-23-2008 09:35 AM
How to make a bootable multi-LiveOS USB key? adLucem Linux - Newbie 1 07-20-2007 05:03 AM
unable to format a 6TB partition dustymugs Linux - Server 10 03-26-2007 09:14 PM
format and partition USB disk Steve Riley SUSE / openSUSE 4 06-16-2005 12:37 PM
utility to partition & format Mac PPC compatible partitions from Fedora Core 3 tuxfriend2 Linux - Software 1 06-10-2005 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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