Giter VIP home page Giter VIP logo

Comments (4)

rn avatar rn commented on May 22, 2024

for linuxkit we'd like to use Alpine's mkfs.ext4, ie:
docker run --rm -ti alpine:3.6 /bin/sh and then apk add --no-cache e2fsprogs man e2fsprogs-doc which gives you the binary as well as the man page. it seems to be incompatible in command line options to the one you used.

from opengcs.

gupta-ak avatar gupta-ak commented on May 22, 2024

I tried the mkfs.ext4 for Alpine. Looks like Ubuntu's mkfs.ext4 is very lenient on the order of arguments, which is why it broke for Alpine. I should have a fix for it shortly.

However, when I try doing the mount -o loop <DEVICE> <DIR> command, I get a no space left error and my /dev/ directory has tens of thousands of loopback device. Any idea why?

I ran something like this:

root@ubuntu:~# docker run -ti alpine:3.6 /bin/sh
/ # apk add --no-cache e2fsprogs man e2fsprogs-doc
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
(1/8) Installing libuuid (2.28.2-r2)
(2/8) Installing libblkid (2.28.2-r2)
(3/8) Installing libcom_err (1.43.4-r0)
(4/8) Installing e2fsprogs-libs (1.43.4-r0)
(5/8) Installing e2fsprogs (1.43.4-r0)
(6/8) Installing e2fsprogs-doc (1.43.4-r0)
(7/8) Installing mdocml (1.14.1-r0)
(8/8) Installing man (1.14.1-r0)
Executing busybox-1.26.2-r5.trigger
OK: 6 MiB in 19 packages
/ # dd if=/dev/zero of=/test-dev-blk bs=1M count=4
4+0 records in
4+0 records out
/ # mkfs.ext4 -O ^has_journal,^resize_inode, -N 512 -b 4096 -I 256 -F /test-dev-blk
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: done
Creating filesystem with 1024 4k blocks and 512 inodes

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

/ # mount -o loop /test-dev-blk /mnt
mount: can't setup loop device: No space left on device
/ # ls -1 /dev/ | grep loop | wc -l
251759

from opengcs.

gupta-ak avatar gupta-ak commented on May 22, 2024

#49 Should fix the mkfs.ext4 part atleast

from opengcs.

rn avatar rn commented on May 22, 2024

@gupta-ak Thanks. #49 indeed fixed the mkfs.ext4 issue I saw with Alpine's version of the tool

from opengcs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.