User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:howto:omnia_booting_from_external_storage [2018/06/06 11:30]
jschlehofer created
en:howto:omnia_booting_from_external_storage [2018/08/17 17:49] (current)
jschlehofer
Line 1: Line 1:
 ====== Booting from SSD ====== ====== Booting from SSD ======
  
-You'll need SSD drive in the correct port, serial cable and flashdisk ​with +You'll need to plug mSATA SSD drive in the correct port, serial cableand flash disk with 
-medkit. Connect serial cable +the medkit. Connect serial cable.
  
 ===== Creating bootable SSD ===== ===== Creating bootable SSD =====
  
-The safest way to do so is in Omnias rescue ​rescue mode. Install ​you SSD inside +The safest way to do so is in Omnia'​s ​rescue mode. Install ​your mSATA SSD inside 
-your Omnia, connect serial console and USB drive with medkit and when powering+your Omnia, connect serial console and USB drive with the medkit and when powering
 it up, try to hit enter repeatedly as fast as you can till you manage to it up, try to hit enter repeatedly as fast as you can till you manage to
 interrupt U-Boot bootloader and you get '​=>'​ prompt. Remember how you did it, we interrupt U-Boot bootloader and you get '​=>'​ prompt. Remember how you did it, we
Line 15: Line 15:
 you see the prompt, we can start preparing the SSD. At this moment, you you see the prompt, we can start preparing the SSD. At this moment, you
 probably have two disk devices available - sda and sdb. Most likely your SSD probably have two disk devices available - sda and sdb. Most likely your SSD
-is sda and USB is sdb. You can check by entering ​+is sda and USB is sdb. You can check by entering:
  
 <​code>​ <​code>​
Line 22: Line 22:
  
 This will show you the size of the drive and partitions available. You can use This will show you the size of the drive and partitions available. You can use
-fdisk to repartition your drive if you want to have separate partition+fdisk to repartition your drive if you want to have separate partition
 dedicated to something else. dedicated to something else.
  
 <WRAP center round tip 60%> <WRAP center round tip 60%>
-If you connect a new SSD you need to create partition with tool called **fdisk**.+If you connect a new SSD you need to create ​the partition with tool called **fdisk**.
 </​WRAP>​ </​WRAP>​
- 
  
 Now format the first partition to Btrfs and create there root subvolume using Now format the first partition to Btrfs and create there root subvolume using
-the following commands+the following commands:
  
 <​code>​ <​code>​
Line 40: Line 39:
 </​code>​ </​code>​
  
-Now you need to mount flashdrive ​and deploy the medkit.+Nowyou need to mount the flash drive and deploy the medkit.
  
 <​code>​ <​code>​
Line 49: Line 48:
 </​code>​ </​code>​
  
-Now is time to clean up everything.+Nowis the time to clean up everything.
  
 <​code>​ <​code>​
Line 57: Line 56:
 </​code>​ </​code>​
  
-Now you have SSD that you can boot from and you can restart your router+Nowyou have an SSD that you can boot fromand you can restart your router
  
 <​code>​ <​code>​
Line 79: Line 78:
 </​code>​ </​code>​
  
-This changes your boot command to boot from SSD and saves the setting and+This changes your boot command to boot from SSDsaves the settingand
 actually boots your router. Next time you reset it, it should boot actually boots your router. Next time you reset it, it should boot
 automatically from SSD. automatically from SSD.
Line 85: Line 84:
 ==== Fixing Schnapps ==== ==== Fixing Schnapps ====
  
-Schanpps ​expects that your root device is on eMMC. To convince it otherwise,+Schnapps ​expects that your root device is on eMMC. To convince it otherwise,
 you need to create configuration file and specify where your rootfs resides: you need to create configuration file and specify where your rootfs resides:
  
 <​code>​ <​code>​
 mkdir /​etc/​schnapps mkdir /​etc/​schnapps
-echo '​ROOT_DEV="/​dev/​sda"'​ > /​etc/​schnapps/​config+echo '​ROOT_DEV="/​dev/​sda1"'​ > /​etc/​schnapps/​config
 </​code>​ </​code>​
  
Line 96: Line 95:
  
 You should avoid using LuCI mount plugin as it tries to unmount all external You should avoid using LuCI mount plugin as it tries to unmount all external
-drives including your SSD and that would break your system till the reset. Also+drives including your SSD and that would break your system till the reset. Also,
 there is a possibility that at some point we will update U-Boot and it's there is a possibility that at some point we will update U-Boot and it's
 environment in one of our future releases and this might override your setup environment in one of our future releases and this might override your setup
 and you would need to repeat step '​Booting from SSD' to get your router and you would need to repeat step '​Booting from SSD' to get your router
-booting again. Also most of the recovery options using the reset button will+booting again. Alsomost of the recovery options using the reset button will
 not work - reverting to the previous snapshot or factory reset. You can still not work - reverting to the previous snapshot or factory reset. You can still
 manage your snapshots manually using schnapps if you set it up correctly. manage your snapshots manually using schnapps if you set it up correctly.