Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rock5/install/nvme"

< Rock5‎ | install
(Created page with "{{rock5_header}} {{Languages|rock5/install/nvme}} ROCK 5 > Installation > Install the image to M.2 NVME SSD ==...")
 
Line 5: Line 5:
 
     [[rock5 | ROCK 5]] > [[rock5/install | Installation]] > [[rock5/install/nvme | Install the image to M.2 NVME SSD]]
 
     [[rock5 | ROCK 5]] > [[rock5/install | Installation]] > [[rock5/install/nvme | Install the image to M.2 NVME SSD]]
  
== Install the image to M.2 NVME SSD ==
+
= Install the image to M.2 NVME SSD =
  
 
This guide describes how to write images to M.2 NVME SSD.
 
This guide describes how to write images to M.2 NVME SSD.
  
=== Part one: Write one system image to M.2 NVME SSD with NVME to USB3.0 reader ===
+
== Option 1: with NVME to USB3.0 reader ==
  
 
====Step one: Requirements ====
 
====Step one: Requirements ====
Line 52: Line 52:
 
Done! Now you have successfully installed the OS image on M.2 NVME SSD.
 
Done! Now you have successfully installed the OS image on M.2 NVME SSD.
  
=== Part two: Erase M.2 NVME SSD ===
+
== Option 2: Write to NVMe SSD on ROCK 5B ==
 +
 
 +
* Install Linux image to SD card or eMMC module
 +
* Boot from SD card or eMMC module on ROCK 5B with NVMe SSD attached
 +
* Check if NVMe SSD is detected
 +
 
 +
    sudo fdisk -l
 +
 
 +
You can see the output message just like this:
 +
 
 +
    Disk '''/dev/nvme0n1''': 232.9 GiB, 250059350016 bytes, 488397168 sectors            #The '/dev/nvme0n1' is your NVME SSD device path
 +
    Units: sectors of 1 * 512 = 512 bytes                                         
 +
    Sector size (logical/physical): 512 bytes / 512 bytes                         
 +
    I/O size (minimum/optimal): 512 bytes / 512 bytes
 +
 
 +
Write Image:
 +
 
 +
    sudo sudo xzcat ''''your compressed image path'''' | dd of=''''your NVME SSD device path'''' bs=1M status=progress           
 +
    #such as: sudo xzcat rock-5b-debian-bullseye-xfce4-arm64-20220906-0626-gpt.img.xz  | dd of=/dev/nvme0n1 bs=1M status=progress
 +
 
 +
== Option 3: Erase M.2 NVME SSD ==
  
 
When M.2 NVME SSD is written with Android (or Linux) images before, now we change to Linux( or Android). It's recommended that you erase M.2 NVME SSD first. Then write the target images.
 
When M.2 NVME SSD is written with Android (or Linux) images before, now we change to Linux( or Android). It's recommended that you erase M.2 NVME SSD first. Then write the target images.
 +
 +
= Boot from NVMe SSD =
 +
 +
After you write the image to NVMe SSD, to boot from the NVMe SSD, you need to write the bootloader to SPI flash. Check [[Rock5/install/spi | Install to SPI]] to boot from NVMe SSD.

Revision as of 06:50, 31 October 2022

    ROCK 5 >  Installation >  Install the image to M.2 NVME SSD

Install the image to M.2 NVME SSD

This guide describes how to write images to M.2 NVME SSD.

Option 1: with NVME to USB3.0 reader

Step one: Requirements

This page describes how to download and install the image on a M.2 NVME SSD and boot on ROCK 5B. You need at least the following.

  • ROCK 5B board with power supply
  • One M.2 NVME SSD
  • NVME to USB3.0 reader

Step two: Download necessary tools and image

Here we use the following image for writing.

 rock-5b-debian-bullseye-xfce4-arm64-20220906-0626-gpt.img.xz

Step three: Write the image to M.2 NVME SSD

  • Insert the M.2 NVME SSD into M.2 NVME SSD to USB3.0 reader, which connects to host computer.
  • Run the application. For example double click balenaEtcher-1.5.116-x64.AppImage on Ubuntu 20.04:
  • In the etcher window, we click button Select image.

Etcher-rock-5b-1.png

  • In the etcher window, we click button Select Drive.

Etcher-rock-5b-2.png

  • In the etcher window, we click button Flash.

Etcher-rock-5b-3.png

  • In the etcher window, it shows us Flash Complete!

Etcher-rock-5b-4.png

Done! Now you have successfully installed the OS image on M.2 NVME SSD.

Option 2: Write to NVMe SSD on ROCK 5B

  • Install Linux image to SD card or eMMC module
  • Boot from SD card or eMMC module on ROCK 5B with NVMe SSD attached
  • Check if NVMe SSD is detected
   sudo fdisk -l

You can see the output message just like this:

   Disk /dev/nvme0n1: 232.9 GiB, 250059350016 bytes, 488397168 sectors             #The '/dev/nvme0n1' is your NVME SSD device path
   Units: sectors of 1 * 512 = 512 bytes                                           
   Sector size (logical/physical): 512 bytes / 512 bytes                           
   I/O size (minimum/optimal): 512 bytes / 512 bytes 

Write Image:

   sudo sudo xzcat 'your compressed image path' | dd of='your NVME SSD device path' bs=1M status=progress            
   #such as: sudo xzcat rock-5b-debian-bullseye-xfce4-arm64-20220906-0626-gpt.img.xz  | dd of=/dev/nvme0n1 bs=1M status=progress

Option 3: Erase M.2 NVME SSD

When M.2 NVME SSD is written with Android (or Linux) images before, now we change to Linux( or Android). It's recommended that you erase M.2 NVME SSD first. Then write the target images.

Boot from NVMe SSD

After you write the image to NVMe SSD, to boot from the NVMe SSD, you need to write the bootloader to SPI flash. Check Install to SPI to boot from NVMe SSD.