On Mon, 11 Oct 2010 21:18:10 +0400
Roman Khomasuridze <firstname.lastname@example.org
> I'll try to move unmounted /dev/sda2 from live-CD, that sounds more
> reasonable to me.
> thanks a lot for suggestions!!
> On Mon, Oct 11, 2010 at 5:25 PM, Andrew McGlashan <
> > 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.
> > --