Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Knoppix Help Forum > Identifying drives

Forgot Password?
 Knoppix Help Forum   For all discussions about Knoppix, the Linux "Live CD" that lets you run Linux without needing to install on your hard drive.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 4 Weeks Ago   #1 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 6
Identifying drives

I want to use the dd command from a Knoppix 5.1.1 CD to clone one SATA HDD to another, larger SATA HDD.
The drives are detected as sda and sdb.
How can I be sure which is which? I don't want to clone in the wrong direction and lose all data.
The HDD I want to clone is damaged and no partitions can be found. The target HDD contains no partitions.
HelpPleas is offline  


Reply With Quote
Old 4 Weeks Ago   #2 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,051
Welcome to the forums!

The fdisk command should list the drives and their partitions when run from a terminal:

Code:
fdisk -l
That's a lowercase letter L, and not a number one in the command.
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Old 4 Weeks Ago   #3 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Panther City, Tx
Posts: 4,101
If you are cloning a drive, I'd think the target drive would be empty and easy to identify or am I missing something here?
__________________
I do not respond to private messages asking for help.
Please keep it on the forums only.
MikeTbob is offline   Reply With Quote
Old 4 Weeks Ago   #4 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 6
Thank you for your prompt replies.

The command fdisk -l is producing no output.

The target drive is empty, and when I attempt to open it I get this message:
Could not mount device. The reported error was: I could not determine the filesystem type, and none was specified

The problem is that I get the same message when I try to open the source drive. I know it contains data, but it has been corrupted.

I want to use TestDisk to recreate partitions, but it specifically says that the disk should be cloned first.
HelpPleas is offline   Reply With Quote
Old 4 Weeks Ago   #5 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 6
OK, I figured it out.

I have to put: sudo fdisk -l

Then I get to see details of all drives, including the size in GBs. I still think I'd be stuck if I were cloning to a drive which was exactly the same size as my source drive.

Is there a definite rule, eg: the drive attached to SATA 1 is always sda, etc?
HelpPleas is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:01 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2