LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-23-2008, 11:10 AM   #1
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 420

Rep: Reputation: 147Reputation: 147
Linux tool for assigning drive letters to Windows XP partitions?


I'm running FC 9, and I have a laptop running XP with a dying hard drive. Trying DD command for copying dying drive to a new drive did not work. It would copy over the data, but then give me a string of I/O errors and the new drive then did nothing wheni tried to use it.

So I used Norton Ghost 2003 to clone the old drive to new partitions on the new drive. That was fine, but now I need to assign C: to the new drive's partition that has the operting system on it (the first partition is Dell Utilities (EISA format), the second is supposed to be C:, and the third is Dell Restore. I do not have install or rescue disks. having bought the laptop used).

Anyway, the new drive after Ghost either does not boot at all -- if I put the drive physically into the computer, taking out the dying disk -- giving "error loading operating system" or -- if I set it as the boot device and attach it to the computer via a USB cable -- it gets as far as displaying the initial Windows logo and then abruptly aborts back to the start of the BIOS.

So I'm thinking maybe I have to assign drive letter C: to the cloned disk to keep it from aborting or not loading. Trouble is, I cannot do that in Windows, since C: already exists in the original hard disk (and I don't want to change that) and one cannot use the same drive letter. Is there a linux technique I can use to get to the disk (which will be /dev/sda, and the partition /dev/sda2) and put in a C: tag so that when Windows starts off the disk, Windows won't abort?

Thanks,

Moxieman
 
Old 10-23-2008, 11:35 AM   #2
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
Windows is what assigns the partitions as C:, D:, etc. I don't think there's anything for Linux that will do what you want. If the image was taken with Windows on the first partition of the original drive, when you've put it on the new drive it's still set up to think of itself as being on the first partition. I'm not sure how you'd be able to change that short of reinstalling Windows (and even that might not help, as Windows likes to be on the first partition).
 
Old 10-23-2008, 12:29 PM   #3
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 420

Original Poster
Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by Total-MAdMaN View Post
Windows is what assigns the partitions as C:, D:, etc. I don't think there's anything for Linux that will do what you want. If the image was taken with Windows on the first partition of the original drive, when you've put it on the new drive it's still set up to think of itself as being on the first partition. I'm not sure how you'd be able to change that short of reinstalling Windows (and even that might not help, as Windows likes to be on the first partition).
--------------
I ran fdisk on the original drive and the partition table definately shows the first partition as the Dell Utilities partition and the C: drive as the second partition. I also looked at the boot.ini on the old drive and it points to partition 2.

Thanks.
 
Old 10-23-2008, 04:56 PM   #4
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
Quote:
Originally Posted by moxieman99 View Post
--------------
I ran fdisk on the original drive and the partition table definately shows the first partition as the Dell Utilities partition and the C: drive as the second partition. I also looked at the boot.ini on the old drive and it points to partition 2.

Thanks.
I'm 99% sure fdisk doesn't know anything about Windows drive letters. I don't think the partition table even contains that info - like Total said, it's Windows that decides on those. Do you mean fdisk showed the 2nd partition as bootable? You can certainly use fdisk or (easier) cfdisk to make a partition bootable, if that's what the problem is. If you're saying the output of fdisk actually included "C:" next to the partition, I take that all back, but I don't think that's possible.

I would guess it's never going to work via USB, because Windows is expecting to be on the primary master drive, but if it's plugged in internally it should work, so long as it was cloned ok and there weren't any errors due to problems with the original.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
assigning hard drives letters in lilo linuxhippy Slackware 4 08-15-2007 05:43 AM
Vaio recovery tool and linux partitions colucix Linux - Laptop and Netbook 3 01-13-2007 05:19 PM
windows killed my partitions! no linux partitions found on this computer. The MJ Linux - Software 10 01-05-2007 09:31 AM
how do i mount my windows partitions and secondary hard drive in RH9 kasperl Linux - Newbie 5 10-22-2003 06:26 AM
Swapping Drive Letters in Windows while multibooting with LILO akfnphx2 Linux - General 2 05-27-2001 08:34 AM

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

All times are GMT -5. The time now is 01:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration