[ale] dd vs clonezilla to replace hard drive
Pete Hardie
pete.hardie at gmail.com
Fri Dec 30 19:42:12 EST 2022
old is as old does
I have been interviewing lately, and one question was about my Linux
background, and I mentioned that the first distro I Installed was
Yggdrasil....
On Fri, Dec 30, 2022 at 7:38 PM Jim Kinney via Ale <ale at ale.org> wrote:
> Just an old poster
>
> Windows work best when open or at least with a large X
>
> :-)
>
> On Fri, Dec 30, 2022, 7:35 PM Pete Hardie via Ale <ale at ale.org> wrote:
>
>> wow, a real old post just surfaced! :)
>>
>> On Fri, Dec 30, 2022 at 7:06 PM Jim Kinney via Ale <ale at ale.org> wrote:
>>
>>> If the disk has a windows install on it, isn't that already a fail?
>>>
>>> On Fri, Dec 30, 2022 at 4:00 PM Boris Borisov via Ale <ale at ale.org>
>>> wrote:
>>>
>>>> If you clone disk that is almost to fail to new one and you don't want
>>>> to waste 3-4 hours for installing necessary software.
>>>>
>>>> Talking Windows on production PC.
>>>>
>>>> On Fri, Dec 30, 2022, 13:59 Pete Hardie via Ale <ale at ale.org> wrote:
>>>>
>>>>> +1 for this. I've never had a case where a bitwise clone of a disk was
>>>>> needed
>>>>>
>>>>> On Fri, Dec 30, 2022, 13:57 Jim Kinney via Ale <ale at ale.org> wrote:
>>>>>
>>>>>> Or do the best method and do a fresh install of your fav distro and
>>>>>> use the old disk as your data backup and copy over your home for.
>>>>>>
>>>>>> Assuming your distro has a package manager, just export a list of
>>>>>> installed packages to make sure you get them all in the new install.
>>>>>>
>>>>>> Sometimes a "drive migration" makes sense in a business setting.
>>>>>> Other than just for practice, it's basically a time waster for personal
>>>>>> stuff and especially if the new drive is much larger that the old drive.
>>>>>>
>>>>>> On Fri, Dec 30, 2022, 1:06 PM Narahari Lakshminarayana via Ale <
>>>>>> ale at ale.org> wrote:
>>>>>>
>>>>>>> Why not run clozilla live CD and do this ?
>>>>>>>
>>>>>>> On Fri, Dec 30, 2022, 13:02 Bob Toxen via Ale <ale at ale.org> wrote:
>>>>>>>
>>>>>>>> The critical thing is that the mounted partitions, especially the
>>>>>>>> root
>>>>>>>> partition (/) normally are changing. You will end up with corrupted
>>>>>>>> partitions unless you allow for this.
>>>>>>>>
>>>>>>>> First boot single user mode:
>>>>>>>>
>>>>>>>> 1. Reboot the system.
>>>>>>>>
>>>>>>>> 2. When it gets to the LILO stage hit the shift button to stop the
>>>>>>>> countdown to auto-boot.
>>>>>>>>
>>>>>>>> 3. Hit tab to see what kernels to boot and determine the right
>>>>>>>> one,
>>>>>>>> say "Linux"
>>>>>>>>
>>>>>>>> 4. Key "Linux single" RETURN.
>>>>>>>>
>>>>>>>> 5. Login (to single user mode).
>>>>>>>>
>>>>>>>> 6. Do "mount" and umount all the disk file systems except the
>>>>>>>> root fs.
>>>>>>>>
>>>>>>>> 7. Remount the root fs thusly:
>>>>>>>>
>>>>>>>> mount -o remount,ro /dev/something /
>>>>>>>>
>>>>>>>> 8. Test that it really is mounted read only:
>>>>>>>> Do:
>>>>>>>> touch /root/foo
>>>>>>>> Expect:
>>>>>>>> Error: read only file system (or similar)
>>>>>>>>
>>>>>>>>
>>>>>>>> If using other boot loaders do similar. Alternatively, on some
>>>>>>>> distros
>>>>>>>> you can do:
>>>>>>>> tcsh:
>>>>>>>> setenv RUNLEVEL S
>>>>>>>> sh/bash:
>>>>>>>> tcsh
>>>>>>>> env RUNLEVEL S
>>>>>>>>
>>>>>>>> Do that dd very carefully as botching it trashes your existing
>>>>>>>> disk:
>>>>>>>>
>>>>>>>> dd bs=10240k if=/dev/your-source-disk
>>>>>>>> of=/dev/new-disk-to-write-on
>>>>>>>> fsck -f of=/dev/new-disk-to-write-on
>>>>>>>>
>>>>>>>> You might want to expand the lask partition to enjoy your additional
>>>>>>>> space by using GNU parted or similar:
>>>>>>>>
>>>>>>>> https://www.gnu.org/software/parted/features.shtml
>>>>>>>>
>>>>>>>> Or you can add new partitions after the end of the last one with
>>>>>>>> fdisk
>>>>>>>> or similar.
>>>>>>>>
>>>>>>>> Check for typos before using above notes.
>>>>>>>>
>>>>>>>> Bob
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Dec 26, 2022 at 05:35:34PM -0700, Jim Kinney via Ale wrote:
>>>>>>>> > Format the new one and rsync.
>>>>>>>> > Unless this is a boot drive then dd the boot sector and /boot
>>>>>>>> partition.
>>>>>>>> >
>>>>>>>> > On Mon, Dec 26, 2022, 5:29 PM Narahari Lakshminarayana via Ale <
>>>>>>>> ale at ale.org>
>>>>>>>> > wrote:
>>>>>>>> >
>>>>>>>> > > Friends:
>>>>>>>> > >
>>>>>>>> > > I bought a new SSD drive of the size 512GB the inland brand from
>>>>>>>> > > Microcenter.
>>>>>>>> > > I want to use that to replace my current laptop's 160 GB
>>>>>>>> NON-SSD drive.
>>>>>>>> > >
>>>>>>>> > > Is it a good idea to use Clonezilla to make an img file of the
>>>>>>>> current
>>>>>>>> > > disk and restore to the new SSD ?
>>>>>>>> > >
>>>>>>>> > > OR
>>>>>>>> > >
>>>>>>>> > > Is it faster and best to run the dd command and replicate
>>>>>>>> bit-by-bit of
>>>>>>>> > > the current drive to the new SSD drive ?
>>>>>>>> > >
>>>>>>>> > > Please advise.
>>>>>>>> > >
>>>>>>>> > > -N
>>>>>>>> > > _______________________________________________
>>>>>>>> > > Ale mailing list
>>>>>>>> > > Ale at ale.org
>>>>>>>> > > https://mail.ale.org/mailman/listinfo/ale
>>>>>>>> > > See JOBS, ANNOUNCE and SCHOOLS lists at
>>>>>>>> > > http://mail.ale.org/mailman/listinfo
>>>>>>>> > >
>>>>>>>>
>>>>>>>> > _______________________________________________
>>>>>>>> > Ale mailing list
>>>>>>>> > Ale at ale.org
>>>>>>>> > https://mail.ale.org/mailman/listinfo/ale
>>>>>>>> > See JOBS, ANNOUNCE and SCHOOLS lists at
>>>>>>>> > http://mail.ale.org/mailman/listinfo
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Ale mailing list
>>>>>>>> Ale at ale.org
>>>>>>>> https://mail.ale.org/mailman/listinfo/ale
>>>>>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>>>>>> http://mail.ale.org/mailman/listinfo
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Ale mailing list
>>>>>>> Ale at ale.org
>>>>>>> https://mail.ale.org/mailman/listinfo/ale
>>>>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>>>>> http://mail.ale.org/mailman/listinfo
>>>>>>>
>>>>>> _______________________________________________
>>>>>> Ale mailing list
>>>>>> Ale at ale.org
>>>>>> https://mail.ale.org/mailman/listinfo/ale
>>>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>>>> http://mail.ale.org/mailman/listinfo
>>>>>>
>>>>> _______________________________________________
>>>>> Ale mailing list
>>>>> Ale at ale.org
>>>>> https://mail.ale.org/mailman/listinfo/ale
>>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>>> http://mail.ale.org/mailman/listinfo
>>>>>
>>>> _______________________________________________
>>>> Ale mailing list
>>>> Ale at ale.org
>>>> https://mail.ale.org/mailman/listinfo/ale
>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>> http://mail.ale.org/mailman/listinfo
>>>>
>>>
>>>
>>> --
>>> --
>>> James P. Kinney III
>>>
>>> Every time you stop a school, you will have to build a jail. What you
>>> gain at one end you lose at the other. It's like feeding a dog on his own
>>> tail. It won't fatten the dog.
>>> - Speech 11/23/1900 Mark Twain
>>>
>>>
>>> *http://heretothereideas.blogspot.com/
>>> <http://heretothereideas.blogspot.com/>*
>>> _______________________________________________
>>> Ale mailing list
>>> Ale at ale.org
>>> https://mail.ale.org/mailman/listinfo/ale
>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>> http://mail.ale.org/mailman/listinfo
>>>
>>
>>
>> --
>> Pete Hardie
>> --------
>> Better Living Through Bitmaps
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> https://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> https://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
--
Pete Hardie
--------
Better Living Through Bitmaps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.ale.org/pipermail/ale/attachments/20221230/bbcad9f3/attachment.htm>
More information about the Ale
mailing list