Cannot boot after moving FreeBSD to another disk

I'm fairly new in FreeBSD, but I already love it :) Actually I love it so much, that I have decided to move it to my SSD drive where Windows7 used to be. I have formatted the drive, created two partitions FS and Swap, then dump/restore'd it from the HDD to SSD, made the partition bootable (sysinstall/fdisk) and changed fstab to match the new disk name, but I cannot boot from the device. When I'm trying to boot FreeBSD from SSD I get:

Code:
Invalid Partition
No /boot/loader

FreeBSD/x86 boot
Default: 0:ad(0,a)/boot/kernel/kernel
boot:
invalid partition
No /boot/kernel/kernel

Please tell me what can be the problem - any tip is much appreciated!
 
Tip: you have moved to another drive. This drive has a different number and name than the first one. You need to update your FreeBSD installation so it knows the name of the drive to boot from, and you also need to update /etc/fstab, most likely.
 
Thanks you @tingo! Can you please tell me what do you mean by "updating FreeBSD installation" concretely? Because I have been experimenting with a lot of stuff after the insal, and non of them helped... THANKS!
 
Solved!

The drive label needs to be 'a' if you want FreeBSD to boot from it. Mine was 'd' ... here is how you can solve this: my slice name was ada0s1. So I boot from LiceCD and enter [cmd=]bsdlabel -e ada0s1[/cmd] change 'd' label to 'a'. Then
Code:
mkdir /mnt/ssd
mount /dev/ada0s1a /mnt/ssd
and then edit /mnt/ssd/etc/fstab and change the mount point of / to ada0s1a. That helped!
 
Back
Top