Difference between revisions of "Esempio didattico sul file system ext2"

From Sistemi Operativi
Jump to navigation Jump to search
(Created page with "truncate -s 128K disk /sbin/mkfs.ext2 disk hexdump -C disk https://dondi.lmu.build/share/os/ext2-walkthrough.pdf mount /tmp/disk /mnt ls /mnt mkdir /mnt/dir echo ciao mare >...")
 
 
Line 1: Line 1:
 +
<pre>
 
truncate -s 128K disk
 
truncate -s 128K disk
 
/sbin/mkfs.ext2 disk
 
/sbin/mkfs.ext2 disk
Line 16: Line 17:
 
bvi
 
bvi
 
:set cm=32
 
:set cm=32
 +
</pre>

Latest revision as of 09:12, 11 April 2024

truncate -s 128K disk
/sbin/mkfs.ext2 disk
hexdump -C disk

https://dondi.lmu.build/share/os/ext2-walkthrough.pdf

mount /tmp/disk /mnt
ls /mnt
mkdir /mnt/dir
echo ciao mare > /mnt/ciao
ln /mnt/ciao /mnt/dir/ciao2
echo addio > /mnt/dir/bye
ln -s /mnt/dir/bye /mnt/symlink
umount /mnt

bvi
:set cm=32