Migrate Root Partition to another disk

2013-05-14 Thread Adrien
Hi, I have added a second hard drive in my virtual machine, as my root partition is full. My idea was to add a new disk to the system, then migrate the root partition to the new disk. What I did so far : - In recovery, add the second hard drive, fdisk to initialize it, then disklabel to add a

Re: Migrate Root Partition to another disk

2013-05-14 Thread Otto Moerbeek
On Tue, May 14, 2013 at 11:08:49AM +0200, Adrien wrote: Hi, I have added a second hard drive in my virtual machine, as my root partition is full. My idea was to add a new disk to the system, then migrate the root partition to the new disk. What I did so far : - In recovery, add the

Re: Migrate Root Partition to another disk

2013-05-14 Thread Adrien
Thanks. I have mounted my new hard drive to /mnt. Then I ran : /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot sd2 Telling me that /boot will be written at sector 64. But I'm still booting with my old hdd :( Tried to enter boot hd1k:/bsd at boot prompt but it's telling me that no such

Re: Migrate Root Partition to another disk

2013-05-14 Thread Otto Moerbeek
On Tue, May 14, 2013 at 01:06:27PM +0200, Adrien wrote: Thanks. I have mounted my new hard drive to /mnt. You don't mount hard drives, you mount partititons. Tell us exactly what you did and show command output of fdisk and disklabel. Without that info, we can only guess. -Otto

Re: Migrate Root Partition to another disk

2013-05-14 Thread Adrien
OK, so : 1. Added new hdd within my virtual machine. 2. Started virtual machine, initialized the disk with fdisk : root@bsd:~# fdisk -i sd2 Do you wish to write new MBR and partition table? [n] y Writing MBR at offset 0. 3. Added new slice with Disklabel root@bsd:~# disklabel -E sd2 Label

Re: Migrate Root Partition to another disk

2013-05-14 Thread Otto Moerbeek
On Tue, May 14, 2013 at 03:52:03PM +0200, Adrien wrote: OK, so : 1. Added new hdd within my virtual machine. 2. Started virtual machine, initialized the disk with fdisk : root@bsd:~# fdisk -i sd2 Do you wish to write new MBR and partition table? [n] y Writing MBR at offset 0. 3.

Re: Migrate Root Partition to another disk

2013-05-14 Thread Adrien
I'm really ashamed about that, I told it the wrong diskMy bad All is working correctly now, a big thanks for your hints. Here the final steps I did, for anyone else who might be interested : - I forgot to edit my /etc/fstab before rebooting. So my system was mounted as read-only,