I'll try to move unmounted /dev/sda2 from live-CD, that sounds more
reasonable to me.


thanks a lot for suggestions!!



Regards
------------
Roman
On Mon, Oct 11, 2010 at 5:25 PM, Andrew McGlashan <
andrew.mcglas...@affinityvision.com.au> wrote:

> Hi,
>
>
> Roman Khomasuridze wrote:
>
>> Debian is on dev/sda2, i'm moving it to /dev/sda5
>>
>> After some research and thinking(!), my plan is to do following steps:
>>
>> 1. mount /dev/sda5 /mnt
>> 2. cp -ax /* /mnt
>> 3. modify /mnt/boot/grub/menu.lst
>> 4. modify /mnt/etc/fstab
>>
>
> For parts 1 and 2, I would boot from a livecd of some kind and do the
> following:
>
> 1. /sbin/mkfs.ext3 /dev/sda5
> 2. mkdir /mnt/sda5
> 3. mount /dev/sda5 /mnt/sda5
> 4. aptitude install dump
> 5. cd /mnt/sda5
> 6. dump 0f - /dev/sda|restore rf -
> 7. cd
> 8. umount /mnt/sda5
>
> That should copy all the file system over just fine.
>
> *NB: make sure that /dev/sda2 is NOT mounted during this process*
>
> Using dump for a mounted file system _may_ give issues, but probably only
> if files are changing on the drive during ay time of the entire process
> (atime updates might be an issue too) ... hence why NOT mounting the source
> partition is better and safer.
>
> --
> Kind Regards
> AndrewM
>
> Andrew McGlashan
> Broadband Solutions now including VoIP
>
> Current Land Line No: 03 9912 0504
> Mobile: 04 2574 1827 Fax: 03 9012 2178
>
> National No: 1300 85 3804
>
> Affinity Vision Australia Pty Ltd
> http://www.affinityvision.co.m.au <http://www.affinityvision.com.au>
> http://adsl2choice.net.au
>
> In Case of Emergency --  http://www.affinityvision.com.au/ice.html
>

Reply via email to