天天看點

make_ext4fs錯誤解決辦法

錯誤截圖如下所示

[email protected]:/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
           

修改完執行結果如下

[email protected]:/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
[email protected]:/home/zhangtao/share/4412# 
           

繼續閱讀