这是的输出sfdisk -l
:
Disk /dev/mmcblk0: 242560 cylinders, 4 heads, 16 sectors/track
Units: cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 64 2111 2048 65536 83 Linux
start: (c,h,s) expected (64,0,1) found (0,65,2)
end: (c,h,s) expected (1023,3,16) found (8,105,33)
/dev/mmcblk0p2 2112 45311 43200 1382400 83 Linux
start: (c,h,s) expected (1023,3,16) found (8,105,34)
end: (c,h,s) expected (1023,3,16) found (180,131,15)
/dev/mmcblk0p3 0 - 0 0 0 Empty
/dev/mmcblk0p4 0 - 0 0 0 Empty
跑步时,parted
我被告知:
GNU Parted 3.2
Using /dev/sr0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p all
Warning: The driver descriptor says the physical block size is 512 bytes, but Linux says it is 2048 bytes.
Ignore/Cancel? i
Error: Can't have a partition outside the disk!
Ignore/Cancel? i
Model: T-Mobile USB SCSI CD-ROM (scsi)
Disk /dev/sr0: 7773kB
Sector size (logical/physical): 512B/2048B
Partition Table: mac
Disk Flags:
Number Start End Size File system Name Flags
1 512B 18.4kB 17.9kB MRKS
2 67.6kB 31.1MB 31.0MB hfs+ Toast 8.0.1 HFS+/Joliet Builder
Model: SD SU08G (sd/mmc)
Disk /dev/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 2097kB 69.2MB 67.1MB primary fat16
2 69.2MB 1485MB 1416MB primary ext4
我的目标是增加根分区,以填满整个8G卡。.但是我不确定如何解决当前的问题。
如果您可以读取卡上的数据,则“清理”现有问题并扩展分区以填充卡的最简单方法是备份卡上的所有文件,创建新的分区表(使用fdisk或更高级别的分区编辑器),然后使用所有可用空间创建新分区,将其格式化为所选的文件系统,然后将数据复制回卡中。
如果您无法读取卡上的数据,则需要从开始fsck
(希望)能够读取数据开始,然后按上述步骤进行操作。如果fsck
无法恢复对文件系统的访问,则某些分区编辑器(GParted的GUI版本是一个)可能会“拯救”数据,但这可能会花费很长时间,因为它需要完全读取的原始数据。位模式扫描和分析(尽管是在非常老的计算机上,我还是在4 GB的USB记忆棒上尝试了一次,但两个小时后它仍在运行,没有任何进度指示器)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句