Jump to content
Francois

Root FS On External SSD

Recommended Posts

Hi,

I'm trying to move my root file system from the eMMC to an eternal SSD.  After having followed this guide ( tinker-board-ssd-usb-booting-guide/ ) and chatting to the author it seems like there is something weird that is preventing the root fs to mount on the SSD and it always defaults to the eMMC root fs.

Any suggestions how to accomplish the above?

Share this post


Link to post
Share on other sites

hello @Francois

there's a slight difference between tinker board (rk based) and tinker edge t (nxp based), please edit the root path for kernel cmdline and recompile:

directory: packages/uboot-imx/debian/boot.txt ( mendel-uboot-imx-debian/boot.txt at mendel-imx_8m · TinkerEdgeT/mendel-uboot-imx-debian · GitHub )

line 4 and line 5

mmc_root="PARTUUID=70672ec3-5eee-49ff-b3b1-eb1fbd406bf5"
  sd_root="/dev/mmcblk1p2"
 

change the sd_root= to your ssd UUID and recompile/ reflash

 

Share this post


Link to post
Share on other sites

Hi Tooz,

Thanks for the reply 🙂

So I'm copying my root partition on the eMMC to my External SSD  - I then change the UUID for the SSD root partition

Should I not be updating the mmc_root? As I'm not booting from an sd card. And in that case the PARTUUID on my eMMC root and SSD are still the same....How can I update the PARTUUID on my SSD so that I can update the boot.txt with the updated PARTUUID of the SSD... ?

mmc_root="PARTUUID=70672ec3-5eee-49ff-b3b1-eb1fbd406bf5"
sd_root="/dev/mmcblk1p2"

# Check boot device to decide which root partition to use
if test ${bootdev} = 1; then
    setenv root ${sd_root}
else
    setenv root ${mmc_root}

 

   

Share this post


Link to post
Share on other sites

hello @Francois

On 11/19/2022 at 10:40 PM, Francois said:

mmc_root="PARTUUID=70672ec3-5eee-49ff-b3b1-eb1fbd406bf5"

please edit mmc_root as your kernel still runs on emmc; you can use root path (i.e. /dev/nvme0 ...etc) instead of partuuid

Share this post


Link to post
Share on other sites

Ok - Thanks,

Once I have this running - will it be ok to just resize the root partition on my SSD to the size I need it? Or anything else i need to do?

Share this post


Link to post
Share on other sites

hello @Francois

you'll need to resize SSD partitions before moving the root files into SSD. what editing boot.txt does only is to direct where to mount for rooting 

Share this post


Link to post
Share on other sites

mmm..Can you maybe explain a bit more... 🙂 

I copy the root partition from the eMMC drive using the following  :cat /dev/mmcblk0p4 > /dev/sda

That means that the partition sizes on the SSD will be the same as they were on the eMMC drive - So not sure what you mean when you say that I should resize them before moving the root files.....

 

Share this post


Link to post
Share on other sites

Hello this is Gulshan Negi

Well, to resolve this issue you can follow below steps:

1. Check if the SSD is detected by the system.

2. Check if the bootloader is configured to boot from the SSD.

I hope it can help you.

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...