LINUXOPOLIS # 2019-11-14 ~ HOWTO

25일 전

HOWTO

Building a Linux Habitat
Published with SteemPeak
home

ScreenshotScreenshot by Willi Glenz

SUMMARY

01 building a container ................................................ 2019-11 new 



#01

01 BUILDING A CONTAINER
$ clear; 
$ mkdir -p ~/tmp/mnt; 
$ tree ~/tmp
$ cd ~/tmp

$ dd if=/dev/zero of=~/tmp/data.img bs=1M count=1000
# mkfs -t ext4 ~/tmp/data.img
$ mount -t auto -o loop ~/tmp/data.img ~/tmp/mnt/
# chown -R user:user ~/tmp/mnt
$ mount | column -t
$ df -hT

$ cd ~/tmp/mnt/
$ touch dummy.txt
$ cd ~
$ umount ~/tmp/mnt
$ man dd mkfs mount
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
STEEMKR.COM IS SPONSORED BY
ADVERTISEMENT