LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 10-18-2006, 02:14 PM   #1
idk666
Member
 
Registered: Aug 2005
Posts: 39

Rep: Reputation: 15
Re-partition USB drive and undo 'dd'


I recently used dd to put an OS image on a usb drive:

dd=if/home/me/disk.iso of=/dev/sda

Now df reports that the disk has only 699M of space and I can't remove the ISO files (even as su) or create new recognisable partitions with fdisk..

I obviously completely stuffed this up somehow. Is there a way to mass reformat the disk and claim back the 19G or so of space I lost ?

Thanks in advance for any help
 
Old 10-18-2006, 02:18 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: OS X, OpenBSD, Ubuntu
Posts: 1,507

Rep: Reputation: 45
You destroyed the partition table. Use fdisk or cfdisk to create a new one. Make sure you do this on the external drive!

Last edited by uselpa; 10-18-2006 at 02:19 PM.
 
Old 10-18-2006, 02:32 PM   #3
idk666
Member
 
Registered: Aug 2005
Posts: 39

Original Poster
Rep: Reputation: 15
How do I create the new table exactly ?

Thanks !
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a usb thumb drive or flash drive as a swap partition. stevenjoseph Linux - Hardware 8 01-16-2012 12:09 PM
Formating a New Partition on USB Hard drive mrground Linux - Hardware 3 11-30-2005 06:51 PM
Use 'dd' to wipe only partition table linuxchump Linux - General 4 08-20-2005 11:03 AM
Partition or USB Hard Drive? Matir Linux - Laptop and Netbook 6 03-18-2005 10:31 PM
Windows partition has bad sectors. Will 'dd' work in place of low level format? gkneller Linux - Software 5 02-26-2004 11:35 PM


All times are GMT -5. The time now is 04:44 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration