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

Re: Moving Debian installation to another partition.

Roman Khomasuridze wrote:
Hello kind people.

The story is, that I want to install FreeBSD on my computer, but unfortunately i don't have spare primary partition (only logical one), and as freBSD documentation says, I can only install it on primary partition, so I'm thinking to move my current Debian installatin from primary partiion to logical one.

here is my fdisk -l

/dev/sda1   *           1        2610    20964793+   7  HPFS/NTFS
/dev/sda2            2611        3656     8401995   83  Linux
/dev/sda3            3657        3899     1951897+  82  Linux swap / Solaris
/dev/sda4            3900       38913   281249924+   5  Extended
/dev/sda5            3900        4872     7815591   83  Linux
/dev/sda6            4873       38913   273434301   83  Linux

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

So, am I missing something? Will these four steps be enough?
My current Debian install is approx 2 years old, and I don't want to screw it up.

Any suggestions are greatly appreciated, and thanks in advance!!

I would use mondo to do all this. It will burn a DVD for you while you are using the sda2 partition. Then you boot that DVD and restore to sda5 and it will guide you through the menu.lst and fstab changes and you have a backup to boot.


Reply to: