LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-01-2014, 10:06 AM   #1
Jacobite
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Rep: Reputation: Disabled
totally messed up USB drive


I've been messing around trying different distros on my netbook, booting from a USB stick and got an error from parted: invalid partition table - recursive partition on /dev/sdd which I fixed using the command:

sudo dd if=/dev/zero of=/dev/sdb bs=1M

But now find that I can only access a fraction of the 2 Gb drive, and furthermore, my netbook won't boot from the USB.

Any suggestions how I can restore the USB drive to its original state?

Thanks in advance for any help!
 
Old 08-01-2014, 10:14 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
use fdisk or cfdisk to delete and re-partition the usb drive. is that what you mean?
 
Old 08-01-2014, 10:22 AM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Jacobite View Post
got an error from parted: invalid partition table - recursive partition on /dev/sdd which I fixed using the command:

sudo dd if=/dev/zero of=/dev/sdb bs=1M

But now find that I can only access a fraction of the 2 Gb drive, and furthermore, my netbook won't boot from the USB.
Well yeah, you completely wiped out the partition table with your dd command, of course you can't boot from it any more. I'm not sure what else you expected that command to do other than destroy the partition table and render the drive useless...

As szboardstretcher said, use a partitioning tool to make a new partition table and re-load everything onto the USB. If you have valuable information on there you can attempt to use testdisk or photorec to recover it first.
 
Old 08-01-2014, 10:27 AM   #4
Jacobite
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi szboardstretcher, Thanks for the reply. I followed these instructions:

http://www.pendrivelinux.com/restori...key-partition/ (scroll down for the Linux instructions)

But to no avail. What I don't understand is when I plug in the drive, the full capacity shows up but I can't see the contents in a folder. When I do fdisk -l I get this:

Disk /dev/sdd: 716 MB, 716177408 bytes
255 heads, 63 sectors/track, 87 cylinders, total 1398784 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

716 MB is the size of the linux distro I have on the drive.
 
Old 08-01-2014, 05:13 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,979

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Ranish used to be able to fix some of that. Might try Ultimate boot cd.
 
  


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
rpm and yum not working,am totally messed up !!!! divyashree Linux - Software 5 07-17-2009 10:10 AM
Totally messed up with squid3 as transparent proxy PATRINOS06 Linux - Networking 2 10-12-2008 01:10 PM
external usb hard drive totally fubar djstrozzi Linux - Hardware 5 08-06-2008 10:42 AM
sound totally messed up djlosch Linux - Hardware 8 09-02-2004 09:24 PM
GRUB is totally messed up! is blaster to blame randyriver10 Linux - Software 6 03-22-2004 05:28 PM

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

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