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 04-29-2006, 07:58 AM   #1
/y0shi
Member
 
Registered: Jan 2006
Location: berlin, germany
Distribution: slackware 12.0
Posts: 58

Rep: Reputation: 17
harddisk partotion table is gone consider building new one with fdisk


I'm new in this forum, hope that fits in hear ...

The Problem is a harddisk with 300GB from a friend this harddisk is extern it will connect via USB, there was just one partition on it, formatted with vfat. He somehow deleted this partitiontable with a windowsinstaller or something like that. But this disk is NOT formatted now. I tried to access this harddrive with a Knoppix live CD and it says something like no good partitiontable - that doesnt surprised me ...

here is what I did

try to see with:
# fdisk -l /deb/ubb
=> he found it with ubb1
so try to mount with:
# mount -t vfat /dev/ubb1 /mnt/ubb1
=> doesnt work (no good partitiontable ...)
and yes if I look at it with:
# fdisk /dev/ubb1
# p
=> he does show me some blocks but not something like /dev/ubb1 so there is really no partitiontable ...

So here comes my question:

Can I make a new partition with fdisk on that harddrive (and write it to that harddrive) and do not format it afterwards and mount it than again and save the data on that drive?

(hope its clear what I mean, I'm not that good in english)

thx in advance
y0shi
 
Old 04-30-2006, 12:51 AM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
If you can make the same partition table as before, and nothing else is wrong that you didn't find, yet, this should work.

There's no reason not to try it - you won't make the data any more lost than it is now

You could also try using "foremost" on the raw disk device to find some files.
 
Old 04-30-2006, 01:45 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
fdisk will work if you know the previous state (start and size) of the now defunct partition. Note that fdisk expects device not partition for this to work.

I would have expected Knoppix to see it as /dev/sd? (a or b probably depending on what else you have).
All else fails, have a look at testdisk - it's on Knoppix. Start up a terminal, then "su" (no password) then "testdisk /dev/???". It'll analyze the device, and look for partition "signatures" in the data, and present them as an option for you to re-create.
 
Old 04-30-2006, 12:22 PM   #4
/y0shi
Member
 
Registered: Jan 2006
Location: berlin, germany
Distribution: slackware 12.0
Posts: 58

Original Poster
Rep: Reputation: 17
thx for your help so far I think I should try that with this new partitiontable, cause there was just on partition on it ...

On my thinkpad my normal harddrive is /dev/hda and my first usbdevice /dev/sda (on slackware) but with this knoppix live cd the first usbdevice is /dev/uba and the second /dev/ubb ...

... this testdisk stuff sounds interesting too we will see, problem is that I have to visit this friend to test your advices, so give me some time ...
 
  


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
changing boot partotion jimjones Linux - Software 3 12-25-2005 10:00 AM
LiveCDs "building partition table" usually fail Audrey Linux - Newbie 1 04-14-2005 06:16 AM
Harddisk geometry & partition's table problem... behd Linux - Hardware 1 07-23-2003 07:21 AM
fdisk gives me different sizes for the same harddisk gsbarry Linux - Hardware 4 02-11-2003 08:33 PM
disk druid doesn't see second harddisk (hdc) while fdisk does r@l.f Linux - Software 0 11-25-2001 09:36 AM

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

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