d9e3 [Solved] Cannot boot after moving FreeBSD to another disk - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old May 8th, 2012, 13:01
bboldi bboldi is offline
Junior Member
 
Join Date: May 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default 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!

Last edited by DutchDaemon; May 8th, 2012 at 14:01. Reason: Formatting & Style: http://forums.freebsd.org/showthread.php?t=8816 / http://forums.freebsd.org/showthread.php?t=18043
Reply With Quote
  #2  
Old May 8th, 2012, 22:28
tingo tingo is offline
Member
 
Join Date: Nov 2008
Location: Oslo, Norway
Posts: 825
Thanks: 133
Thanked 82 Times in 68 Posts
Default

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.
__________________
Torfinn

Last edited by DutchDaemon; May 8th, 2012 at 23:19.
Reply With Quote
The Following User Says Thank You to tingo For This Useful Post:
bboldi (May 11th, 2012)
  #3  
Old May 9th, 2012, 08:25
bboldi bboldi is offline
Junior Member
 
Join Date: May 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

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!
Reply With Quote
  #4  
Old May 9th, 2012, 21:08
tingo tingo is offline
Member
 
Join Date: Nov 2008
Location: Oslo, Norway
Posts: 825
Thanks: 133
Thanked 82 Times in 68 Posts
Default

The bit about the boot loader is in the Handbook, here: http://www.freebsd.org/doc/en_US.ISO...ot-blocks.html

Every FreeBSD user should know about the Handbook, and learn how to find stuff in it.
__________________
Torfinn
Reply With Quote
The Following User Says Thank You to tingo For This Useful Post:
bboldi (May 11th, 2012)
  #5  
Old May 10th, 2012, 13:46
bboldi bboldi is offline
Junior Member
 
Join Date: May 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

@tingo Thanks Noted!
Reply With Quote
  #6  
Old May 11th, 2012, 09:52
bboldi bboldi is offline
Junior Member
 
Join Date: May 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default 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 bsdlabel -e ada0s1 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!

Last edited by DutchDaemon; May 11th, 2012 at 17:24.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] FreeBSD 9.0 BOOT DISK FAILURE recondite Installing & Upgrading 6 April 12th, 2012 23:53
Creating a 8.2 FreeBSD USB boot disk in OS X 10.6 thanatos Installing & Upgrading 3 November 30th, 2011 17:16
[Solved] Boot FreeBSD from second disk Vince Installing & Upgrading 7 September 23rd, 2011 13:44
Moving the system disk between computers lukeido General 7 September 13th, 2011 17:37
Moving to larger mirrored disk, enlarge ZFS indul Installing & Upgrading 1 June 24th, 2010 09:04


All times are GMT +1. The time now is 20:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0