简体   繁体   English

启用以使用 beaglebone black 扩展我的 sd 卡上的文件系统分区

[英]Enable to expand file system partition on my sd card with a beaglebone black

I am working with an Beaglebone black and I am following this tutorial ( https://elinux.org/Beagleboard:Expanding_File_System_Partition_On_A_microSD ) to expand my file system but I can't see my sd card when i do df -h here is the log:我正在使用 Beaglebone black,我正在按照本教程( https://elinux.org/Beagleboard:Expanding_File_System_Partition_On_A_microSD )来扩展我的文件系统,但是当我执行df -h时我看不到我的 sd 卡这里是日志:

Filesystem      Size  Used Avail Use% Mounted on
udev            199M     0  199M   0% /dev
tmpfs            62M  2.8M   59M   5% /run
/dev/mmcblk1p1   15G  8.1G  5.6G  60% /
tmpfs           307M  8.0K  307M   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           307M     0  307M   0% /sys/fs/cgroup
tmpfs            62M     0   62M   0% /run/user/1000

The last step cause my troule when I try fsck /dev/mmcblk0p1 I get:当我尝试fsck /dev/mmcblk0p1时,最后一步导致了我的麻烦,我得到:

fsck from util-linux 2.33.1
e2fsck 1.44.5 (15-Dec-2018)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/mmcblk0p1

The superblock could not be read or does not describe a valid ext2/ext3/ext4  
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4  
filesystem (and not swap or ufs or something else), then the superblock       
is corrupt, and you might try running e2fsck with an alternate superblock:    
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

I got blocked so any advice will be welcome我被阻止了,所以欢迎任何建议

The problem here is that your BBB has not booted from the SD card, so it's probably not prepared correctly.这里的问题是你的 BBB 没有从 SD 卡启动,所以它可能没有正确准备。 The number behind the "mmcblk" device hints at which one you're looking at: /dev/mmcblk0 is the SD card, /dev/mmcblk1 is the eMMC. “mmcblk”设备后面的数字提示您正在查看的设备: /dev/mmcblk0是 SD 卡, /dev/mmcblk1是 eMMC。 It has booted from the internal eMMC.它已从内部 eMMC 启动。 The SD card you've inserted has some garbage on it, because fsck cannot find a file system.您插入的 SD 卡上有一些垃圾,因为 fsck 找不到文件系统。 How'd you create the SD card?您是如何创建 SD 卡的?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM