Gentoo Archives: gentoo-user

From: Adam Carter <Adam.Carter@×××××××××.au>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: [gentoo-user] Disk upgrade sanity check pls
Date: Thu, 08 May 2008 06:22:48
Message-Id: 707E41AE68E444499861C6B248AB8684533C048A1D@excprdmbxw002.optus.com.au
1 I'm running out of disk space on my laptop and the new disk arrived today.
2
3 Old setup; 60 gig drive;
4 /dev/hda1 = /home (used to be windows, hence the partition number)
5 /dev/hda2 = swap
6 /dev/hda3 = /
7
8 New setup; 250 gig drive
9 /dev/hda1 = / (including /home)
10 /dev/hda2 = swap
11
12 Here's my plan;
13 - make a new lilo.conf entry to boot off /dev/hda1, then run 'lilo -v'
14 - boot knoppix
15 - dump /dev/hda3 (/) to USB external drive with 'mount /dev/hda3 /mnt/root ; rsync -a /mnt/root /usbdrive/'
16 - dump /dev/hda1 (/home) to USB drive with 'mount /dev/hda1 /mnt/home ; rsync -a /mnt/home /usbdrive/'
17 - dump MBR to USB drive with 'dd if=/dev/hda of=/usbdrive/mbr_backup bs=512 count=1'
18
19 - power down, swap hda to new drive, boot knoppix again
20 - add boot record without partition table, 'dd if=/whatever/mbr_backup of=/dev/hda bs=446 count=1'
21 - 'fdisk /dev/hda', create one linux partition using most of the disk and one linux swap partition
22 - put filesystem on /dev/hda1 with 'mkreiserfs /dev/hda1'
23 - dump old / to /dev/hda1 with 'mount /dev/hda1 /mnt/root ; rsync -a /usbdrive/root/* /mnt/root'
24 - dump old /home onto /dev/hda1 with 'rsync -a /usbdrive/home /mnt/root'
25 - create swap 'mkswap /dev/hda2'
26
27 then reboot and use the new lilo entry that points to /dev/hda1.
28
29 Will it work?
30
31 tnx

Replies

Subject Author
Re: [gentoo-user] Disk upgrade sanity check pls "Wang
Re: [gentoo-user] Disk upgrade sanity check pls Dirk Heinrichs <dirk.heinrichs.ext@×××.com>