hi,

  I think it's better to use LVM to manage your partitions, it will be
much less painful..

Wang
在 2008-05-08四的 16:20 +1000,Adam Carter写道:
> I'm running out of disk space on my laptop and the new disk arrived
> today. 
>  
> Old setup; 60 gig drive;
> /dev/hda1 = /home (used to be windows, hence the partition number)
> /dev/hda2 = swap
> /dev/hda3 = /
>  
> New setup; 250 gig drive
> /dev/hda1 = / (including /home)
> /dev/hda2 = swap
>  
> Here's my plan;
> - make a new lilo.conf entry to boot off /dev/hda1, then run 'lilo -v'
> - boot knoppix
> - dump /dev/hda3 (/) to USB external drive with
> 'mount /dev/hda3 /mnt/root ; rsync -a /mnt/root /usbdrive/'
> - dump /dev/hda1 (/home) to USB drive with
> 'mount /dev/hda1 /mnt/home ; rsync -a /mnt/home /usbdrive/'
> - dump MBR to USB drive with 'dd if=/dev/hda of=/usbdrive/mbr_backup
> bs=512 count=1'
>  
> - power down, swap hda to new drive, boot knoppix again
> - add boot record without partition table, 'dd if=/whatever/mbr_backup
> of=/dev/hda bs=446 count=1'
> - 'fdisk /dev/hda', create one linux partition using most of the disk
> and one linux swap partition
> - put filesystem on /dev/hda1 with 'mkreiserfs /dev/hda1'
> - dump old / to /dev/hda1 with 'mount /dev/hda1 /mnt/root ; rsync
> -a /usbdrive/root/* /mnt/root'
> - dump old /home onto /dev/hda1 with 'rsync
> -a /usbdrive/home /mnt/root'
> - create swap 'mkswap /dev/hda2'
>  
> then reboot and use the new lilo entry that points to /dev/hda1.
>  
> Will it work?
>  
> tnx
> 
> 
-- 
Wang, Baojun                                                Lanzhou University
Distributed & Embedded System Lab                      http://dslab.lzu.edu.cn
School of Information Science and Engeneering          [EMAIL PROTECTED]
Tianshui South Road 222. Lanzhou 730000                             .P.R.China
Tel: +86-931-8912025                                      Fax: +86-931-8912022

Attachment: signature.asc
Description: 这是信件的数字签 名部分

Reply via email to