Advertisement
PaweU

unix stuff

Dec 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. cd /home
  2. touch dysk.img
  3. dd if=/dev/zero of=/home/dysk.img bs=1M count=1
  4. losetup /dev/loop5 /home/dysk.img
  5. mkfs -t ext2 /dev/loop5
  6. cd /mnt
  7. mkdir partycja
  8. mount -t ext2 /dev/loop5 /mnt/partycja
  9. cd /mnt/partycja
  10. echo "testowe dane" > test.txt
  11. cd ..
  12. umount /mnt/partycja
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement