On 11/22/2014 06:34 PM, Hendrik Boom wrote:
On Sat, 22 Nov 2014 23:29:20 +0000, Hendrik Boom wrote:
I have a laptop (an old Asus EEEPC), and I need to replace its only disk
drive with a larger one. The hardware aspects are easy -- keep static
electricity away and use a screwdriver. I have the new drive on my desk
already.
And it's not hard to copy the file systems, either. I can temporarily
access the new drive using a USB adaptor. fdisk and the lvm utilities
will create the new partitions and then I copy, using dd or rsync or
tar/
untar or even cp --archive. Perhaps a recursive checksum script
afterward just in case.
It's currently a dual boot between Debian Jessie and Windows XP. I can
copy the Windows partition using ntfs-3g. Or maybe dd if that fails.
Windows XP comes with the usual C: drive (/dev/sda1), a hidden Windows
partition (/dev/sda3), and en EFI paritition (/dev/sda4). All of Linux
hides out in the so-called extended partition (/dev/sda2). I have no
idea what Windows does with the space at the start of the drive before
he first partition. Presumably grub messes with this space, too.
But I'm concerned about installing the bootloader. I presumably have to
do this before I actually swap drives, or the machine won't boot.
Currently I'm using grub-legacy to boot.
OOPS! It's grub2, not grub-legacy.
Presumably I'll want the
configuration file in the new system to be pretty well the same as the
old, but there may have to be changes. And when I'm installing the boot
loader it's got to set everything up to refer to the new disk drive even
though when that gets used it will be in a different electronic location
on the machine. (it'll be /dev/sda instead of /dev/sdb)
What are the gotchas that are easy to get wrong in an operation like
this?
-- hendrik
You may find that Windows won't boot. There are a number of ways to fix that.
If you have a "real" install disk, I think that will work. Or Google for
"Windows won't boot after copy," or something like that. There are a couple of
free programs that will fix it. Unfortunately, I can't give you any better
details than that--I went thru it last Spring. If you have to fix the Windows
booter, it will surely destroy your Linux boot setup, so you'll need a live
Linux disk to get back to that. It's all a pain, but it's doable.
(I'm thinking of doing the same basic thing myself, to put a SSD in my laptop.)
Good luck!
--doug
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/547124a4.7020...@optonline.net