opkg install kmod-usb-storage kmod-usb-ohci kmod-usb-uhci e2fsprogs fdisk resize2fs
fdisk /dev/mmcblk0(also see the less finicky way by @SemperEnim below):To make it clear what I entered, here the complete session of fdisk. Please note how the first sector remains unaltered:Welcome to fdisk (util-linux 2.36.1).Changes will remain in memory only, until you decide to write them.Be careful before using the write command.Command (m for help): pDisk /dev/mmcblk0: 14.99 GiB, 16096690176 bytes, 31438848 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisklabel type: dosDisk identifier: 0x5452574fDevice Boot Start End Sectors Size Id Type/dev/mmcblk0p1 * 8192 139263 131072 64M c W95 FAT32 (LBA)/dev/mmcblk0p2 147456 360447 212992 104M 83 LinuxCommand (m for help): dPartition number (1,2, default 2): 2Partition 2 has been deleted.Command (m for help): nPartition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions)Select (default p): pPartition number (2-4, default 2): 2First sector (2048-31438847, default 2048): 147456Last sector, +/-sectors or +/-size{K,M,G,T,P} (147456-31438847, default 31438847): Created a new partition 2 of type 'Linux' and of size 14.9 GiB.Partition #2 contains a squashfs signature.Do you want to remove the signature? [Y]es/[N]o: nCommand (m for help): pDisk /dev/mmcblk0: 14.99 GiB, 16096690176 bytes, 31438848 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisklabel type: dosDisk identifier: 0x5452574fDevice Boot Start End Sectors Size Id Type/dev/mmcblk0p1 * 8192 139263 131072 64M c W95 FAT32 (LBA)/dev/mmcblk0p2 147456 31438847 31291392 14.9G 83 LinuxCommand (m for help): wThe partition table has been altered.Syncing disks.复制代码
文章评论(0条评论)
登录后参与讨论