LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 11-07-2009, 09:56 PM   #1
sanjeevkafle
LQ Newbie
 
Registered: Nov 2009
Posts: 4
Thanked: 0
Smile My USB does not have a valid partition table.


[Log in to get rid of this advertisement]
I am a very beginner in ubuntu.
I just bought a new 16GB USB drive yesterday.
I tried to make two partitions 8 GB each.
I used GParted on my Ubuntu 9.10.
My computer took a long time and restarted automatically.
When the computer restarted, it did not recognize the USB drive.
When I go back to Gparted, it shows 8 MB usb device Unallocated Space.

I did fdisk -l which shows the result as:


Disk /dev/sdc: 8 MB, 8388608 bytes
1 heads, 16 sectors/track, 1024 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
Disk identifier: 0xffdaffa0

Disk /dev/sdc doesn't contain a valid partition table


Is there any way to fix these partition table.

Any help is appreciated.

Thanks for looking in my thread.
linux sanjeevkafle is offline     Reply With Quote
Old 11-07-2009, 10:06 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Pclinux, Mandriva, Kubuntu 9.10, Slck13_64-current
Posts: 1,413
Blog Entries: 3
Thanked: 54
open a terminal and type sudu cfdisk /dev/sdc now create the partitions you want.
then write to it. then go back now and use gparted to reformat to ext3 or leave them as ext2 good luck
linux Drakeo is offline     Reply With Quote
Old 11-07-2009, 10:12 PM   #3
fbsduser
LQ Newbie
 
Registered: Oct 2009
Distribution: OpenSUSE, FreeDOS
Posts: 19
Thanked: 4
try
Code:
dd if=/dev/zero of=/dev/sdc
and lets see what results from it.
also use the "new disklabel" option in gparted if the other won´t work.
windows_xp_2003 fbsduser is offline     Reply With Quote
Old 11-07-2009, 10:22 PM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Pclinux, Mandriva, Kubuntu 9.10, Slck13_64-current
Posts: 1,413
Blog Entries: 3
Thanked: 54
look the dd command is a very powerfull command not for a nooobeee . yes you can do that and you will have wipped the drive clean and left zero's. Please be kind.
linux Drakeo is offline     Reply With Quote
Old 11-08-2009, 04:14 PM   #5
sanjeevkafle
LQ Newbie
 
Registered: Nov 2009
Posts: 4
Thanked: 0

Original Poster
dd results

Quote:
Originally Posted by Drakeo View Post
look the dd command is a very powerfull command not for a nooobeee . yes you can do that and you will have wipped the drive clean and left zero's. Please be kind.
Here is the output of the dd command.
My drive still shows only 7.83 mb.
what is 922mb copied on the below line.

sanjeev@sanjeev-laptop:~$ sudo dd if=/dev/zero of=/dev/sdc
dd: writing to `/dev/sdc': No space left on device
1799881+0 records in
1799880+0 records out
921538560 bytes (922 MB) copied, 5.04461 s, 183 MB/s
linuxubuntu sanjeevkafle is offline     Reply With Quote
Old 11-08-2009, 04:17 PM   #6
sanjeevkafle
LQ Newbie
 
Registered: Nov 2009
Posts: 4
Thanked: 0

Original Poster
Quote:
Originally Posted by Drakeo View Post
open a terminal and type sudu cfdisk /dev/sdc now create the partitions you want.
then write to it. then go back now and use gparted to reformat to ext3 or leave them as ext2 good luck
I tried:

sudo cfdisk /dev/sdc

Output:
FATAL ERROR: Cannot get disk size
Press any key to exit cfdisk
linuxubuntu sanjeevkafle is offline     Reply With Quote
Old 11-08-2009, 04:48 PM   #7
thorkelljarl
Member
 
Registered: Jun 2008
Posts: 825
Thanked: 94
Was...

If this is a 16GB USB flash, it may have U3 installed on it. In some cases, U3 can cause problems in formatting the flash drive. It can only be removed with a special U3 utility run in Windows. Google. You might have to re-format the drive to vfat again before trying the U3 removal utility. Google.

Last edited by thorkelljarl; 11-08-2009 at 08:15 PM..
linuxsuse thorkelljarl is offline     Reply With Quote
Old 11-09-2009, 12:47 AM   #8
sanjeevkafle
LQ Newbie
 
Registered: Nov 2009
Posts: 4
Thanked: 0

Original Poster
Unhappy The USB did not have the U3 System on it

Quote:
Originally Posted by thorkelljarl View Post
Was...

If this is a 16GB USB flash, it may have U3 installed on it. In some cases, U3 can cause problems in formatting the flash drive. It can only be removed with a special U3 utility run in Windows. Google. You might have to re-format the drive to vfat again before trying the U3 removal utility. Google.
My USB did not have U3 system installed on it.
It did not have any important files either.
However, I wanted to make my USB work after that gparted error.
I dont hope much about making this USB work.

I have a question though, just for my knowledge, why does the USB shows 8 MB if the USB is corrupt. It should show nothing at all.
linux sanjeevkafle is offline     Reply With Quote
Old 11-09-2009, 02:54 AM   #9
David the H.
Senior Member
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian Sid/kde3.5
Posts: 2,462
Thanked: 129
Quote:
Originally Posted by Drakeo View Post
look the dd command is a very powerfull command not for a nooobeee . yes you can do that and you will have wipped the drive clean and left zero's. Please be kind.
I agree completely. Never just tell someone to "try this dd command" without some kind of warning about how dangerous it can be if used wrong. At the very least you should make sure to explain exactly what the dd command you're giving will do, and that it provides no safety checks or escape mechanisms, meaning that putting in the wrong drive name will probably mean destroying all the data on it.

This advice applies to any operation that can result in the destruction of data, of course.
linuxdebian David the H. is offline     Reply With Quote
Old 11-10-2009, 09:41 AM   #10
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Pclinux, Mandriva, Kubuntu 9.10, Slck13_64-current
Posts: 1,413
Blog Entries: 3
Thanked: 54
ok then your flash has gone bad get them in here all the time. And yes flash drives go bad all the time why do you think they are so cheap. I have spent may hours rebuilding data on usb flash drives. And every one I get that will not format under linux. I try on a windows machine. if both fail then both fail. The drive has failed. Especially the bad ones with embeded viruses on them. Thank China and next time give use the manufactures name of the drive. so all of us can stay away from them.
anyway sorry.
linux Drakeo is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
A valid Partition Table rbell54 Linux - Newbie 6 06-04-2009 09:08 PM
Disk doesn't contain a valid partition table baldurpet Linux - Newbie 17 05-10-2009 04:25 AM
Not valid partition table temm Linux - Hardware 5 07-23-2008 05:28 AM
need bigger swap partition but missing a valid partition table compused Linux - Hardware 3 07-02-2008 09:46 AM
Disk doesn't contain a valid partition table expatCM Linux - Hardware 9 10-01-2007 03:38 AM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration