[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SS4000E - moving OS to new disk



On Sat, Nov 7, 2015 at 11:40 AM, Bob Stewart wrote:

> how do I move everything to a new drive without having to reinstall?

If you want to copy everything, including the free space, just a dd:

dd if=/dev/OLD of=/dev/NEW

Where OLD and NEW are the block devices for the old and new drives.

If you want to skip the free space, it will be more complicated:

Switch to single user mode or remount everything read-only.

Make a new partition table and file systems on the new drive.

Mount the new filesystems.

Copy all the files over with cp or rsync.

Update the UUIDs in any configuration files.

Figure out how the bootloader is configured and make it boot the new disk.

Reboot.

> so I'm guessing that the UUIDs for "/" and "/boot" are stored in flash.

I guess it depends on which bootloader you are using and how it is configured.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


Reply to: