Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the simply-static domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121
手动扩展空间

手动扩展空间

扩展SD卡/eMMC上的空间 – 恩智浦8MMNAVQ:NavQ配套计算机 (gitbook.io)

手动扩展空间

如果不想使用该脚本,可以运行以下命令。

安装 ROS 时,您可能会遇到 eMMC 或 SD 卡空间不足的问题。若要展开 rootfs 分区,请按照下列步骤操作:

如果您在 eMMC 上,您将使用 /dev/mmcblk2。如果您使用的是 SD 卡,请使用 /dev/mmcblk1。默认情况下,NavQ 从套件中随附的 SD 卡启动。

$ sudo fdisk /dev/mmcblk1

Command (m for help): p

Device Boot Start End Blocks Size Id System

/dev/mmcblk1p1 * 16384 186775 170392 83.2M c W95 FAT32 (LBA)

/dev/mmcblk1p2 196608 <end> <blocks> <size> 83 Linux

Command (m for help): d

Partition number (1,2, default 2): 2

Partition 2 has been deleted.

Command (m for help): p

Device Boot Start End Blocks Size Id System

/dev/mmcblk1p1 * 16384 186775 170392 83.2M c W95 FAT32 (LBA)

Command (m for help): n

Partition type

e extended

p primary partition (1-4)

Select (default p): p

Partition number (1-4, default 1): 2

First sector (2048-30621695, default 2048): 196608

Last sector, +sectors or +size{K,M,G} (2048-30621695, default 30621695): <press enter for default>

Created a new partition 2 of type ‘Linux’ and of size 14.5 GiB.

Partition #2 contains a ext4 signature.

Do you want to remove the signature? [Y]es/[N]o: n

Command (m for help): p

Device Boot Start End Blocks Size Id System

/dev/mmcblk1p1 * 16384 186775 170392 83.2M c W95 FAT32 (LBA)

/dev/mmcblk1p2 196608 30621695 39425088 14.5G 83 Linux

Command (m for help): w

The partition table has been altered!

完成这些步骤后,请运行以下命令:

$ sudo resize2fs /dev/mmcblk1p2

并重新启动。您现在应该能够安装 ROS Melodic 而不会出现大小问题。

fdisk 的命令

如果您只想查看命令,这些是您需要在 fdisk 中运行的命令,以便调整磁盘大小。

d <enter>

2 <enter>

n <enter>

p <enter>

2 <enter>

196608 <enter>

<enter>

n <enter>

w <enter>

<fdisk should exit>

$ sudo resize2fs /dev/mmcblk2p2 <enter> (FOR eMMC)

$ sudo resize2fs /dev/mmcblk1p2 <enter> (FOR SD CARD)