Jetson TX2 挂载SATA SSD 并设置为启动盘

本人渣渣算法一枚,写个blog方便以后查找

首先准备一台Jetson TX2, 原版开发版上已经有了sata接口,所以直接买个公母线把sata接上去就行,注意接的时候断电拔电源,热拔插烧不烧主板我不知道,因为我断电了;

接下来,找到Disks, 如图:

选中间那个,打开界面如图:

我这个是已经格式化好的

如果是新的ssd,直接使用键盘的Ctrl+F 进入分区选项,如果点击小齿轮里面的第一个选项无法分区;一般留个16GB;然后给自己的SSD起个好听的名字,我这里就叫做ssdtx2

分好就长我这样了

接下来,查验一下能否正常找到分好区挂载好的SSD:

ls /media/nvidia/ssdtx2

 不报错就是正常咯,接下来拷贝系统到我们的SSD中:

sudo cp -ax / '/media/nvidia/ssdtx2'

记得根据自己ssd的花名替换路径,等一会之后所有的文件都会被拷贝至我们的新SSD的根目录下

接下来就是修改启动项了,

首先备份一下~

cd /boot/extlinux
# backup
sudo cp extlinux.conf extlinux.conf.original

然后修改参数:

先po原配置:

TIMEOUT 30
DEFAULT primary  #<---we should change

MENU TITLE L4T boot options

LABEL primary #<---we should change
      MENU LABEL primary kernel   #<---we should change
      LINUX /boot/Image
      INITRD /boot/initrd
      APPEND ${cbootargs} quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 isolcpus=1-2 #<---we should change

# When testing a custom kernel, it is recommended that you create a backup of
# the original kernel and add a new entry to this file so that the device can
# fallback to the original kernel. To do this:
#
# 1, Make a backup of the original kernel
#      sudo cp /boot/Image /boot/Image.backup
#
# 2, Copy your custom kernel into /boot/Image
#
# 3, Uncomment below menu setting lines for the original kernel
#
# 4, Reboot

# LABEL backup
#    MENU LABEL backup kernel
#    LINUX /boot/Image.backup
#    INITRD /boot/initrd
#    APPEND ${cbootargs}

一共四个标记点看上面文件的注释哈

第一个: Default primary 的primary需要被替换为: satassd

第二个: Label primary 的primary需要被替换为:satassd

第三个:MENU LABEL primary kernel需要被替换为: MENU LABEL primary SATA SSD

第四个: 最后一行的APPEND ${cbootargs} quiet root=/dev/mmcblk0p1的root=替换为root=/dev/sda1 这个路径可能会变,具体看我第二章图Device 后面的路径,替换上去就行了;

最终修改好之后长这样:

TIMEOUT 30
DEFAULT satassd

MENU TITLE L4T boot options

LABEL satassd
      MENU LABEL primary SATA SSD
      LINUX /boot/Image
      INITRD /boot/initrd
      APPEND ${cbootargs} quiet root=/dev/sda1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 isolcpus=1-2 

# When testing a custom kernel, it is recommended that you create a backup of
# the original kernel and add a new entry to this file so that the device can
# fallback to the original kernel. To do this:
#
# 1, Make a backup of the original kernel
#      sudo cp /boot/Image /boot/Image.backup
#
# 2, Copy your custom kernel into /boot/Image
#
# 3, Uncomment below menu setting lines for the original kernel
#
# 4, Reboot

# LABEL backup
#    MENU LABEL backup kernel
#    LINUX /boot/Image.backup
#    INITRD /boot/initrd
#    APPEND ${cbootargs}

最后疯狂Ctrl+S,你用vim也行,千万别忘了sudo就好,不然没有权限编辑不了;

然后重启一下设备就好了;

  • 3
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值