错误截图如下所示

root@ubuntu:/home/zhangtao/share/4412# make_ext4fs -s -l 314572800 -a root -L linux system.img system
make_ext4fs: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or direc

执行下面两条命令即可解决问题:

sudo apt-get install lib32c-dev
sudo apt-get install lib32stdc++6

修改完执行结果如下

root@ubuntu:/home/zhangtao/share/4412# make_ext4fs -s -l 314572800 -a root -L linux system.img system
Creating filesystem with parameters:
    Size: 314572800
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 6400
    Inode size: 256
    Journal blocks: 1200
    Label: linux
    Blocks: 76800
    Block groups: 3
    Reserved block group size: 23
Created filesystem with 438/19200 inodes and 4669/76800 blocks
root@ubuntu:/home/zhangtao/share/4412# 

 

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:22 天前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐