Hello Kris,
IMPORTANT HINT :
It's clear, that I can't guarantee success nor exclude any damage to data or drive, if you follow my instructions.
How to store screenshots / fdisk print-out on a USB-Stick ?
To get read/write access to storage devices (HDD, USB stick or else), you have to "mount" them with Linux before. Note, that "GParted" can only work (clone, move, resize) on "unmounted" devices. Mounted devices get a lock icon within "GParted". But you can easily unmount them within "GParted" menu (except for the drive, "GParted" was launched, e.g. USB stick).
There are most often two steps necessary to mount a drive : 1. Create an empty folder, where the content can then be accessed (for each partition separately !). 2. Mount ONE storage device at ONE (sub)folder.
Hint : Linux "Terminal" commands in further text are "quoted"; type them and of course hit [ENTER] after each "active" line. Linux is case-sensitive ! Omit lines starting with # (=comments). Do not confuse this # with the console prompt, where it's just a separator.
Type
As a result, you see all detected storage devices and their geometry, but they are not yet accessible ! Write down their device names; e.g. /dev/sda; /dev/sda1; ...
Plug in your USB Stick now and wait until its LED stops flickering, then again type
A new device name is added, e.g. /dev/sdb; /dev/sdb1.
Write down the new name with number 1, e.g. /dev/sdb1, and use it from now on, whenever it's referred to.
Creates a new (sub)folder ("/mnt" always exists; there are also preconfigured empty subfolders, but you can't rely, that each Linux distro offers the same set.
mount /dev/sdb1 /mnt/myusb
# Replace "sdb1" by your actual device name !
Now the USB stick is accessible via folder "/mnt/myusb", which corresponds to the root folder "\" of your stick.
Start "GParted" by clicking on its (Linux) Desktop icon and take a screenshot, when finished.
Copy it to the stick and store the output of "fdisk"
cp /root/screenshot.jpeg /mnt/myusb
#Storing the output directly !
fdisk -l -u > /mnt/myusb/fdisk_out.txt
#Use "Wordpad" to view this text with Windows
To get it publicated, just upload it to a file sharing site (e.g. mediafire.com) and give us the link.
What should you know about Linux storage device names ?
"/dev/hd..." indicates an IDE/PATA-drive, "/dev/sd..." is a SATA-drive, USB stick, photo flash storage or other removable storage device. The following letter ("a") indicates the first detected physical device (e.g. "hda";IDE0 interface), "b" the second and so on. At last the number defines the partition number of the logical volume, if any ("hda1" = logical volume on first primary partition of drive "hda" / in DOS "C:", if bootable). Extended partition numbering starts with number 5, because the 4 possible primary partitions hold numbers 1 - 4. Note, that the maximum configuration is 3 primary partitions and 1 extended with a total maximum of 26 drives under DOS ("A:" - "Z:"; A: / B: Floppy; C: / D: / E: primary partitions on harddisks; F: CDROM ; G: - Z: up to 20 logical drives in extended partition).
Coming from Windows world, you should give your drives Volume names, which are foolproof, before you start; e.g. "SOURCE" and "TARGET" (see below) with cloning operations. "GParted" shows them !
--------------------------- Snip ! ---------------------------------------
The Registry Key
HKEY_LOCAL_MACHINE/SYSTEM/MountedDevices
The above SINGLE key has to be deleted. You let the PC search it or do it yourself.
You listed keys under HKEY_USERS. This is a totally other Registry hive ! For Heaven's sake,
DO NOT DELETE ANYTHING THERE !
Search it this way : Open "regedit" - Close all [-], until you only see the five main keys (hives).
Click on "[+]HKEY_LOCAL_MACHINE", click on "SYSTEM" and you see "MountedDevices". Right-click
on "MountedDevices" and "Delete" it. See below for the right timing !
--------------------------- Snip ! ---------------------------------------
My "Order of Battle"
A. First Cloning
1. Install source and target harddisk in one PC
- (Re-)Name Ronny's old harddisk : SOURCE0
- (Re-)Name Kris' harddisk : TARGET1
2. TARGET1 (running OS) : Clean up harddisk SOURCE0 (CC, Defrag; do not yet delete Registry Key !)
3. Launch "GParted"(running OS)
- Right-click on Desktop / "Fluxbox" opens / Choose "File/System utils" / Launch "MC_HxEd"
- Click on all [+] to unfold treeview, write down hexadecimal value of SOURCE0 Drive ID (e.g.(Set)_Drive_Id_0x4d6f2234)
- TARGET1: Shrink Partition and gain approx.10 GB unallocated space (always + 500 MB than the source's size)
- Reboot system twice (TARGET1 running OS)
- Reboot (TARGET1 running OS), delete Registry Key "HKEY_LOCAL_MACHINE/SYSTEM/MountedDevices"
Note: If you are cloning, there is no need either to partition or to format the target area. It must
simply be big enough for the source.
4. Launch "GParted"(running OS)
- SOURCE0 : Copy ...
- TARGET1 : ... Paste (to the "unallocated space" of 10GB)
- Apply
5. Have some cups of coffee until finished
Note: Normally Volume ID in Master Boot Record is not cloned; Bootflag gets deleted on TARGET1, if a valid MBR gets overwritten, which is NOT the case here ! Keep in mind, that you have a critical state of your (TARGET1) harddisk at the moment. You have two MBR structures on the drive. Do not start Windows !!!
6. "GParted"(running OS) : Rename "TARGET1" to "SOURCE1"
7. Shutdown "GParted"(running OS), install Ronny's new, big harddisk to your PC
8. Launch "GParted"(running OS)
- (Re)name Ronny's new, big harddisk "TARGET2"
B. Second Cloning
SOURCE1 : Partition on Kris' harddisk
TARGET2 : Ronny's new, big harddisk
1. "GParted"(running OS) still waiting.
- SOURCE1 : Copy ...
- TARGET2 : ... Paste (to the leftmost beginning of the harddisk)
- Apply
Note : Do NOT resize it to fit the whole drive here !!!
2. Second coffee break until finished !
3. Set the "boot" mark to TARGET2 primary partition, if missing.
4. Inspect Drive ID, see A 3. Former and actual value have to differ !
5. If not : Use "MC_HxEd", double click on "(Set)_Drive_ID..." (Editor opens),press [F2] to edit, change at least one hexadecimal pair, store it with [F6], control it and quit "MC_HxEd".
6. Shutdown "GParted"(running OS), remove TARGET2 (Ronny's new disk) from your PC and put it back into his machine
7. Do not boot Ronny's PC at the moment; it's my screenplay !
C. Clean Up Kris' harddisk
1. Launch "GParted" (running OS)
- Delete volume SOURCE1
- Apply -> unallocated space
- Grow OS partition to its former size
- Apply
2. Cross your fingers and start Windows
- Reboot twice
- chkdsk /f twice
... and here is the CLIMAX
D. Settle Ronny's new harddisk
1. @Ronny : Cross your fingers on both hands. @Kris : Start Ronny's PC
- Note any fault message appearing !
- Let Windows do "chkdsk", if it claims for !
- Reboot twice
- chkdsk /f twice
2. Launch "GParted" (running OS)
- Grow the partition to fill the whole drive
- Apply
3. Start Windows again
- Reboot twice
- chkdsk /f twice
4. Champagne !!!
Good luck, Guys
cmdr