Switching from thumb drive to ssd

csearle

Contributor
Joined
Jan 18, 2019
Messages
189
Hey guys I was wondering what the best course of action would be, when running an OS from a thumb drive, and switching to an SSD. I understand saving my configuration file Would I just install the OS and place I’m configuration file back in after I install the SSD?

I came across a post where most users are now switching to SSD’s I’d like to follow suit
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
Yep. Save your configuration, install fresh to the SSD, restore config.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Or add SSD, partition, attach to the freenas-boot pool to create a mirror, detach USB drive, done.

A more detailled outline can be found in this thread I wrote:

The remarks about this being "unsupported" only apply to running a boot and a data pool on the same pair of SSDs. The fundamental commands to transfer the boot pool from USB to SSD are perfectly fine.

HTH,
Patrick
 

csearle

Contributor
Joined
Jan 18, 2019
Messages
189
Interesting, not to sure how to export my existing pools and where would i export...
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
If you just want to switch from USB to SSD and not do anything special with the SSD, there is no need to export anything.

1. Shutdown
2. Mount and connect SSD
3. Boot
4. Connect via ssh or use "Shell" in the UI
5. Let's assume your USB drive is da0 and your SSD is ada4 - could be nvd0 if you are using an NVME drive
Code:
gpart backup da0 | gpart restore ada4
zpool attach freenas-boot da0p2 ada4p2
# wait for resilver to finish
zpool offline freenas-boot da0p2
zpool detach freenas-boot da0p2

# transfer efi or freebsd-boot partition
dd if=/dev/da0p1 of=/dev/ada4p1


That's it. Unplug USB drive, test if it boots.

HTH,
Patrick
 

csearle

Contributor
Joined
Jan 18, 2019
Messages
189
Thank you.. that looks allot easier
 
Top