LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2009, 11:24 AM   #1
marti972
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
hard drives come up "no partition table" and "in use by another program"


I'm a newbie.

I'm trying to do a ddrescue but there terminology has lost me. I've been dealing with references to sdc, sdd which see to refer to my hard drives but I can't seem to go their and look at files. I can go to the hard drives as /dev/"FreeAgent Drive"/ but I don't see there the files that I thought I would.

I'm trying to sudo ddrescue /dev/sdd /dev/sdc ddlog

which seems to be working but I thought it would shoot it over to the /dev/"FreeAgent Drive"/ but I see nothing there.

Both SDD and SDC say they have "doesn't contain a valid partition table"

I know SDD has bad sectors, that's why I started this project. SDC was fine but I guess I've messed it up with ddrescue.

I did get ddrescue to run but where in the world is the result?

Signed Lost
 
Old 03-16-2009, 12:53 PM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
marti972:

What is ddrescue? Is it a disk tool installed or you mean the GNU/Linux command "dd"? Sorry asking this, I'm a newbie like you.

Your post says: "I'm trying to sudo ddrescue /dev/sdd /dev/sdc ddlog
which seems to be working but I thought it would shoot it over to the /dev/"FreeAgent Drive"/ but I see nothing there."

Comment: {I hope I can be wrong for your own good}
By issuing your command: sudo ddrescue /dev/sdd /dev/sdc, if you mean under linux dd command, you have ordered to "copy the entire" disk /sdd, or at least the entire contents, to the /sdc disk and that's without specifying from what sector to begin and ironically WITHOUT SPECIFYING to what FILE on /sdc drive to save. That in spite, dd is very willing to do for you without question. But the danger to this is "what if your master boot record, partition table and files in /sdc were overwritten?"

Your post: "Both SDD and SDC say they have "doesn't contain a valid partition table"

Comment: The likelihood that they were corrupted after being overwritten. Your command dd started from the first sector of the disk, dd if=/dev/sdd; both the boot record and partition table are contained within the first 512 bytes of the disk; and wrote them beginning the first sector of /sdc <you did not specify a filename> thus you cannot see the recorded output as a file.

Try this, if we can still remedy the situation:

# dd if=/dev/sdd of=/dev/sdc/MYREMEDY bs=512 count=1

If done, go and see if /dev/sdc holds a file named MYREMEDY, if found you're lucky. Next step you may want to create this file into an ISO image by mkisofs command, mount loop it then you can access it as if as it is a separated but writable cd/dvd drive.

Read manual first:

$ man dd
$ man mkisofs

NOTE: Backup important files to external drives before playing with dd.

Good luck. I hope this helps.
 
Old 03-16-2009, 10:20 PM   #3
marti972
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Original Poster
Rep: Reputation: 0
It's is my understanding that dd maybe dd_rescue, but that ddrescue is another variation of the same idea, of maybe gddrescue to confuse things.

I've spent 3 days on this simple problem.

It seems I just can't keep the 2 external drives mounted. Although at time one says it's mounted, in another place it says it's not mounted, and it never wants to show up mounted in gnome.

I give up, it's back to Windows tomorrow, so that I can get something done, instead of wasting my time on stupid things that are never explained properly.

Thanks
 
Old 03-16-2009, 11:44 PM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
ddrescue is a specialized version of dd designed for recovering bad filesystems. Unlike dd, it won't stop when it hits an error, and you can set it to retry for as long as you want it to. I believe dd_rescue is a different variation on the same concept.

In either program you have to be VERY careful when specifying the input and output devices or locations, because dd works at disk level and will happily overwrite anything with anything. It does look to me like you overwrote your /dev/sdc device with the contents of /dev/sdd. I'm afraid you probably destroyed your sdc device.

I'm sorry to hear that you want to give up, but please don't go blaming the problem on Linux here. There's a wealth of information out there if you just look for it (although I must admit that it's often confusing to sift through sometimes confusing and contradictory stuff). It was your own ignorance of the proper input and output names that caused the problem. If you were unsure about it, you could've asked us first. It does get easier with experience.
 
  


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
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
fdisk reports odd "Start "and "End" sectors on single partition eponymous Linux - Software 3 10-01-2007 03:41 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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