Gentoo Archives: gentoo-user

From: Michael Jones <gentoo@×××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Guidance on using Gentoo to clone a Win 10 system drive
Date: Mon, 06 Jan 2020 22:01:21
Message-Id: CABfmKS+4LnWDxFQCAHPHn4_SbujrrV6_jpS1UzBF+zr6w=GVmg@mail.gmail.com
In Reply to: Re: [gentoo-user] Guidance on using Gentoo to clone a Win 10 system drive by Mark Knecht
1 You can use the Windows 10 Download Tool (Or similarly named thing, sorry,
2 I can't find the details of it at this time) to download an ISO image
3
4 Combine that with the rufus program https://rufus.ie/ (I use the portable
5 one, personally) to create a Windows 10 USB installer stick.
6
7 On Mon, Jan 6, 2020 at 2:39 PM Mark Knecht <markknecht@×××××.com> wrote:
8
9 > Hi Michael,
10 > Thanks for the response. Great info.
11 >
12 > The install Win 10 clean sounds wonderful if it works. With no DVD in
13 > this machine it sounds like I should investigate an install from USB if the
14 > machine supports it. It's an Asus gaming laptop circa 2008 so hopefully
15 > that works but I've never done it on this machine.
16 >
17 > Cheers,
18 > Mark
19 >
20 > On Mon, Jan 6, 2020 at 12:56 PM Michael Jones <gentoo@×××××××.com> wrote:
21 >
22 >> Generally the way I've handled this situation in the past is like so
23 >> (this is written from memory, so expect gratuitous problems).
24 >>
25 >> On the machine with the drive attached
26 >> mbuffer -i /dev/mydrive | xz -e -9 | mbuffer -O hostname:port
27 >>
28 >> On a machine with storage space
29 >> mbuffer -I port -o /path/to/storage.xz
30 >>
31 >> To make a backup.
32 >>
33 >>
34 >> In terms of cloning windows to another harddrive in general, as long as
35 >> the destination harddrive is large enough to fit the original drive without
36 >> issues, simply running:
37 >>
38 >> dd if=/dev/original of=/dev/destination
39 >> (I prefer dcfldd, personally)
40 >>
41 >> Is enough. Run gparted (the graphical version, for nice wizards) after,
42 >> and it'll fixup your partition table for you to match the new size, and you
43 >> can re-size any partitions you have to make them match as well. I do
44 >> exactly this all the time and have yet to have a problem.
45 >>
46 >> As for windows 10 licensing, don't trust me on this blindly, but your
47 >> license should be tied to the hardware fingerprint of the laptop. So even
48 >> installing windows fresh on your new SSD should result in Windows
49 >> activating automatically. In fact, you might want to take this opportunity
50 >> to try that out, to get a completely fresh installation without the decade
51 >> of old cruft built up by window's lack of a package manager.
52 >>
53 >> If it doesn't activate as soon as you plug in an ethernet cable, you can
54 >> just wipe your SSD and copy your old installation as discussed already.
55 >>
56 >>
57 >>
58 >> On Mon, Jan 6, 2020 at 1:11 PM Mark Knecht <markknecht@×××××.com> wrote:
59 >>
60 >>> Hi all,
61 >>> I haven't been here in a couple of years. IT's great to see some
62 >>> familiar names posting. Cheers to all.
63 >>>
64 >>> I have a laptop running Win 10 with no (working) DVD/CDROM. For
65 >>> various reasons I want to move from a 10 year old laptop drive to a new SSD
66 >>> and am looking for guidance on I might do that. Win 10 is properly licensed
67 >>> but through a weird channel - it was Win 7 that M$ allowed to convert to
68 >>> Win 10 for free and I'm nervous that if the hard drive died I'd have to
69 >>> purchase a new license as the free conversion path likely doesn't exist
70 >>> anymore.
71 >>>
72 >>> Both drives are nominally 500GB.
73 >>>
74 >>> The older hard drive fdisk info shows:
75 >>>
76 >>> root@science:~# fdisk --list /dev/sde
77 >>> Disk /dev/sde: 465.8 GiB, 500107862016 bytes, 976773168 sectors
78 >>> Disk model: ASM1053E
79 >>> Units: sectors of 1 * 512 = 512 bytes
80 >>> Sector size (logical/physical): 512 bytes / 512 bytes
81 >>> I/O size (minimum/optimal): 512 bytes / 512 bytes
82 >>> Disklabel type: dos
83 >>> Disk identifier: 0xe0c5913d
84 >>>
85 >>> Device Boot Start End Sectors Size Id Type
86 >>> /dev/sde1 63 45062324 45062262 21.5G 1c Hidden W95 FAT32
87 >>> (LBA)
88 >>> /dev/sde2 * 45062325 288063133 243000809 115.9G 7 HPFS/NTFS/exFAT
89 >>> /dev/sde3 288063488 289247231 1183744 578M 27 Hidden NTFS
90 >>> WinRE
91 >>> /dev/sde4 289249254 976768064 687518811 327.9G fd Linux raid
92 >>> autodetect
93 >>> root@science:~#
94 >>>
95 >>> The Linux RAID autodetect is from running Gentoo at some earlier time
96 >>> and probably doesn't need to be copied. I'm not at all sure what /dev/sde3
97 >>> is or whether it's required to make M$ happy.
98 >>>
99 >>> The new SSD is unused and shows:
100 >>>
101 >>> root@science:~# fdisk --list /dev/sdf
102 >>> Disk /dev/sdf: 465.8 GiB, 500107862016 bytes, 976773168 sectors
103 >>> Disk model: ASM1053E
104 >>> Units: sectors of 1 * 512 = 512 bytes
105 >>> Sector size (logical/physical): 512 bytes / 4096 bytes
106 >>> I/O size (minimum/optimal): 4096 bytes / 4096 bytes
107 >>> root@science:~#
108 >>>
109 >>> The appear to have the same sector count and overall size.
110 >>>
111 >>> I can make a 1TB drive available in my big machine and work over USB
112 >>> (which is what I'm doing to get the info above) but I'm unclear how much of
113 >>> this can be done automatically and how much I might need to do by hand.
114 >>>
115 >>> As long as I don't hurt the old drive I can put data on the SSD
116 >>> multiple times to get through the process in case I have trouble.
117 >>>
118 >>> Does anyone have experience with this sort of issue and can you point
119 >>> me toward some instructions I might try?
120 >>>
121 >>> Thanks,
122 >>> Mark
123 >>>
124 >>>
125 >>>

Replies

Subject Author
Re: [gentoo-user] Guidance on using Gentoo to clone a Win 10 system drive Mark Knecht <markknecht@×××××.com>