文章目录:
1 问题和场景说明2 尝试解决磁盘分区挂在问题提前声明,这篇博客可能并不能够帮助你,你勿吐嘈,仅作我个人遇到到问题的情况,因此此篇是水博客,请跳过
1 问题和场景说明
1、我使用SDK Manager刷机方式
给我的Jetson Xavier NX设备刷机的时候,发现刷完机器之后,系统几乎没有空间了,但是我的SD卡是128GB
的,
如下图所示,可以看到有SD卡分区并没有挂在上去
可以使用命令:sudo fdisk -l
查看分区的情况
zhihui@zhihui-desktop:~$ sudo fdisk -l[sudo] password for zhihui: Disk /dev/ram0: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram1: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram2: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram3: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram4: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram5: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram6: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram7: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram8: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram9: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram10: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram11: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram12: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram13: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram14: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram15: 8 MiB, 8388608 bytes, 16384 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/loop0: 16 MiB, 16777216 bytes, 32768 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: 0x00000000Disk /dev/mtdblock0: 32 MiB, 33554432 bytes, 65536 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mmcblk0: 119.1 GiB, 127865454592 bytes, 249737216 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisklabel type: gptDisk identifier: 010FA85C-F718-4B4D-B503-E97D63E7716DDevice Start End Sectors Size Type/dev/mmcblk0p1 40 29360167 29360128 14G Microsoft basic data/dev/mmcblk0p2 29360168 29491239 131072 64M Microsoft basic data/dev/mmcblk0p3 29491240 29622311 131072 64M Microsoft basic data/dev/mmcblk0p4 29622312 29623207 896 448K Microsoft basic data/dev/mmcblk0p5 29623208 29624103 896 448K Microsoft basic data/dev/mmcblk0p6 29624104 29753127 129024 63M Microsoft basic data/dev/mmcblk0p7 29753128 297541511024 512K Microsoft basic data/dev/mmcblk0p8 29754152 29754663 512 256K Microsoft basic data/dev/mmcblk0p9 29754664 29755175 512 256K Microsoft basic data/dev/mmcblk0p10 29755176 29959975 204800 100M Microsoft basic data/dev/mmcblk0p11 29960192 249735167 219774976 104.8G Linux filesystemDisk /dev/zram0: 647 MiB, 678387712 bytes, 165622 sectorsUnits: sectors of 1 * 4096 = 4096 bytesSector size (logical/physical): 4096 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/zram1: 647 MiB, 678387712 bytes, 165622 sectorsUnits: sectors of 1 * 4096 = 4096 bytesSector size (logical/physical): 4096 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/zram2: 647 MiB, 678387712 bytes, 165622 sectorsUnits: sectors of 1 * 4096 = 4096 bytesSector size (logical/physical): 4096 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/zram3: 647 MiB, 678387712 bytes, 165622 sectorsUnits: sectors of 1 * 4096 = 4096 bytesSector size (logical/physical): 4096 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/zram4: 647 MiB, 678387712 bytes, 165622 sectorsUnits: sectors of 1 * 4096 = 4096 bytesSector size (logical/physical): 4096 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/zram5: 647 MiB, 678387712 bytes, 165622 sectorsUnits: sectors of 1 * 4096 = 4096 bytesSector size (logical/physical): 4096 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 byteszhihui@zhihui-desktop:~$ sudo mount /dev/mmcblk0p11 /dev/mmcblk0p11^C
使用命令:df -h
查看各个磁盘分区的使用情况:
zhihui@zhihui-desktop:~$ df -hFilesystemSize Used Avail Use% Mounted on/dev/mmcblk0p1 14G 12G 1.1G 92% /none 3.5G0 3.5G 0% /devtmpfs 3.8G 52K 3.8G 1% /dev/shmtmpfs 3.8G 30M 3.8G 1% /runtmpfs 5.0M 4.0K 5.0M 1% /run/locktmpfs 3.8G0 3.8G 0% /sys/fs/cgrouptmpfs 777M 12K 777M 1% /run/user/120tmpfs 777M 124K 777M 1% /run/user/1000
2 尝试解决磁盘分区挂在问题
由于,Jetson Xavier NX会自带一部分存储空间,然后我在刷机的时候并没有把系统刷进SD卡中,后面就导致很难挂在,而且两个独立的硬件存储设备貌似是不能够实现分区挂在的,反正我的windows电脑就是这样的,估计这个Jetson NX设备也不例外。
最终的解决方式:使用另外一种刷机方式,镜像刷机
具体参考:这篇博客
下面是各种骚操作尝试,也都没有用,请不用看!!!
zhihui@zhihui-desktop:~$ udo mount /dev/mmcblk0p11 /dev/mmcblk0p1bash: udo: command not foundzhihui@zhihui-desktop:~$ sudo mount /dev/mmcblk0p11 /dev/mmcblk0p1mount: /dev/mmcblk0p1: mount point is not a directory.zhihui@zhihui-desktop:~$ sudo mount /dev/mmcblk0p11 /home/zhihuizhihui@zhihui-desktop:~$ lsDesktop Downloads Jetson_NX_requirement.txt Pictures Templates VisionWorks-SFM-0.90-SamplesDocuments examples.desktop Music Public Videoszhihuizhihui@zhihui-desktop:~$ cd /home/zhihui@zhihui-desktop:/home$ lszhihuizhihui@zhihui-desktop:/home$ cd zhihui/zhihui@zhihui-desktop:~$ lslost+foundzhihui@zhihui-desktop:~$ cd lost+found/bash: cd: lost+found/: Permission deniedzhihui@zhihui-desktop:~$ du --max-depth=1 -h24K./.configdu: cannot read directory './lost+found': Permission denied16K./lost+found44K.zhihui@zhihui-desktop:~$ df -hFilesystem Size Used Avail Use% Mounted on/dev/mmcblk0p1 14G 12G 1.1G 92% /none 3.5G0 3.5G 0% /devtmpfs 3.8G 52K 3.8G 1% /dev/shmtmpfs 3.8G 30M 3.8G 1% /runtmpfs 5.0M 4.0K 5.0M 1% /run/locktmpfs 3.8G0 3.8G 0% /sys/fs/cgrouptmpfs 777M 12K 777M 1% /run/user/120tmpfs 777M 128K 777M 1% /run/user/1000/dev/mmcblk0p11 103G 61M 98G 1% /home/zhihuizhihui@zhihui-desktop:~$
pvcreate
sudo apt-get install lvm2
zhihui@zhihui-desktop:/$ df -hFilesystem Size Used Avail Use% Mounted on/dev/mmcblk0p1 14G 12G 1.1G 93% /none 3.5G0 3.5G 0% /devtmpfs 3.8G 112M 3.7G 3% /dev/shmtmpfs 3.8G 22M 3.8G 1% /runtmpfs 5.0M 4.0K 5.0M 1% /run/locktmpfs 3.8G0 3.8G 0% /sys/fs/cgrouptmpfs 777M 12K 777M 1% /run/user/120tmpfs 777M 108K 777M 1% /run/user/1000/dev/mmcblk0p11 105G 32K 105G 1% /mnt/mmcblk0p11zhihui@zhihui-desktop:/$ pvcreate /dev/mmcblk0p11WARNING: Running as a non-root user. Functionality may be unavailable./run/lvm/lvmetad.socket: access failed: Permission deniedWARNING: Failed to connect to lvmetad. Falling back to device scanning./run/lock/lvm/P_orphans:aux: open failed: Permission deniedCan't get lock for orphan PVs.zhihui@zhihui-desktop:/$ sudo pvcreate /dev/mmcblk0p11Can't open /dev/mmcblk0p11 exclusively. Mounted filesystem?zhihui@zhihui-desktop:/$ df -hFilesystemSize Used Avail Use% Mounted on/dev/mmcblk0p1 14G 12G 1.1G 93% /none 3.5G0 3.5G 0% /devtmpfs 3.8G 113M 3.7G 3% /dev/shmtmpfs 3.8G 22M 3.8G 1% /runtmpfs 5.0M 4.0K 5.0M 1% /run/locktmpfs 3.8G0 3.8G 0% /sys/fs/cgrouptmpfs 777M 12K 777M 1% /run/user/120tmpfs 777M 108K 777M 1% /run/user/1000zhihui@zhihui-desktop:/$ sudo pvcreate /dev/mmcblk0Device /dev/mmcblk0 excluded by a filter.zhihui@zhihui-desktop:/$
zhihui@zhihui-desktop:/$ df -hFilesystem Size Used Avail Use% Mounted on/dev/mmcblk0p1 14G 12G 1.1G 93% /none 3.5G0 3.5G 0% /devtmpfs 3.8G 112M 3.7G 3% /dev/shmtmpfs 3.8G 22M 3.8G 1% /runtmpfs 5.0M 4.0K 5.0M 1% /run/locktmpfs 3.8G0 3.8G 0% /sys/fs/cgrouptmpfs 777M 12K 777M 1% /run/user/120tmpfs 777M 108K 777M 1% /run/user/1000zhihui@zhihui-desktop:/$ sudo pvcreate /dev/mmcblk0Device /dev/mmcblk0 excluded by a filter.zhihui@zhihui-desktop:/$
zhihui@zhihui-desktop:/$ sudo vgextend VolGroup /dev/mmcblk0Device /dev/mmcblk0 excluded by a filter.zhihui@zhihui-desktop:/$
zhihui@zhihui-desktop:/$ sudo fdisk /dev/mmcblk0Welcome to fdisk (util-linux 2.31.1).Changes will remain in memory only, until you decide to write them.Be careful before using the write mand (m for help): mHelp:Genericd delete a partitionF list free unpartitioned spacel list known partition typesn add a new partitionp print the partition tablet change a partition typev verify the partition tablei print information about a partitionMiscm print this menux extra functionality (experts only)ScriptI load disk layout from sfdisk script fileO dump disk layout to sfdisk script fileSave & Exitw write table to disk and exitq quit without saving changesCreate a new labelg create a new empty GPT partition tableG create a new empty SGI (IRIX) partition tableo create a new empty DOS partition tables create a new empty Sun partition tableCommand (m for help): FUnpartitioned space /dev/mmcblk0: 104.8 GiB, 112525819904 bytes, 219776992 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesStart End Sectors Size29960192 249737183 219776992 104.8GCommand (m for help): nSelected partition 11First sector (29959976-249737183, default 29960192): Last sector, +sectors or +size{K,M,G,T,P} (29960192-249737183, default 249737183): Created a new partition 11 of type 'Linux filesystem' and of size 104.8 GiB.Partition #11 contains a vfat signature.Do you want to remove the signature? [Y]es/[N]o: YThe signature will be removed by a write mand (m for help): tPartition number (1-11, default 11): Partition type (type L to list all types): L1 EFI System C12A7328-F81F-11D2-BA4B-00A0C93EC93B2 MBR partition scheme 024DEE41-33E7-11D3-9D69-0008C781F39F3 Intel Fast FlashD3BFE2DE-3DAF-11DF-BA40-E3A556D895934 BIOS boot 21686148-6449-6E6F-744E-6565644546495 Sony boot partition F4019732-066E-4E12-8273-346C5641494F6 Lenovo boot partitionBFBFAFE7-A34F-448A-9A5B-6213EB736C227 PowerPC PReP boot 9E1A2D38-C612-4316-AA26-8B49521E5A8B8 ONIE boot 7412F7D5-A156-4B13-81DC-8671749293259 ONIE configD4E6E2CD-4469-46F3-B5CB-1BFF57AFC14910 Microsoft reserved E3C9E316-0B5C-4DB8-817D-F92DF00215AE11 Microsoft basic data EBD0A0A2-B9E5-4433-87C0-68B6B72699C712 Microsoft LDM metadata 5808C8AA-7E8F-42E0-85D2-E1E90434CFB313 Microsoft LDM data AF9B60A0-1431-4F62-BC68-3311714A69AD14 Windows recovery environment DE94BBA4-06D1-4D40-A16A-BFD50179D6AC15 IBM General Parallel Fs 37AFFC90-EF7D-4E96-91C3-2D7AE055B17416 Microsoft Storage Spaces E75CAF8F-F680-4CEE-AFA3-B001E56EFC2D17 HP-UX data 75894C1E-3AEB-11D3-B7C1-7B03A000000018 HP-UX service E2A1E728-32E3-11D6-A682-7B03A000000019 Linux swap 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F20 Linux filesystem0FC63DAF-8483-4772-8E79-3D69D8477DE421 Linux server data 3B8F8425-20E0-4F3B-907F-1A25A76F98E822 Linux root (x86)44479540-F297-41B2-9AF7-D131D5F0458A23 Linux root (ARM)69DAD710-2CE4-4E3C-B16C-21A1D49ABED324 Linux root (x86-64) 4F68BCE3-E8CD-4DB1-96E7-FBCAF984B70925 Linux root (ARM-64) B921B045-1DF0-41C3-AF44-4C6F280D3FAE26 Linux root (IA-64) 993D8D3D-F80E-4225-855A-9DAF8ED7EA9727 Linux reserved 8DA63339-0007-60C0-C436-083AC823090828 Linux home 933AC7E1-2EB4-4F13-B844-0E14E2AEF91529 Linux RAID A19D880F-05FC-4D3B-A006-743F0F84911E30 Linux extended boot BC13C2FF-59E6-4262-A352-B275FD6F717231 Linux LVM E6D6D379-F507-44C2-A23C-238F2A3DF92832 FreeBSD data 516E7CB4-6ECF-11D6-8FF8-00022D09712B33 FreeBSD boot 83BD6B9D-7F41-11DC-BE0B-001560B84F0F34 FreeBSD swap 516E7CB5-6ECF-11D6-8FF8-00022D09712B35 FreeBSD UFS516E7CB6-6ECF-11D6-8FF8-00022D09712B36 FreeBSD ZFS516E7CBA-6ECF-11D6-8FF8-00022D09712B37 FreeBSD Vinum 516E7CB8-6ECF-11D6-8FF8-00022D09712B38 Apple HFS/HFS+ 48465300-0000-11AA-AA11-00306543ECAC39 Apple UFS 55465300-0000-11AA-AA11-00306543ECAC40 Apple RAID 52414944-0000-11AA-AA11-00306543ECAC41 Apple RAID offline 52414944-5F4F-11AA-AA11-00306543ECAC:
欢迎大家关注笔者,你的关注是我持续更博的最大动力
原创文章,转载告知,盗版必究
微信:suihailiang0816QQ:931762054wx公众号:仰望星空的小随