Recent Changes - Search:

Softwares

.

Read-only-filesystem

Main.Read-only-filesystem History

Hide minor edits - Show changes to output

December 05, 2014, at 01:53 AM by 122.172.35.203 -
Added lines 1-15:
[@

# dd if=/dev/zero of=readonly.img bs=1024 count=1024
# mkfs.ext2 readonly.img
# mkdir readonlyfolder
# mount readonly.img readonlyfolder/
# echo "can't delete this" > readonlyfolder/permanent.txt
# umount readonlyfolder
# mount -o ro readonly.img readonlyfolder
# cat readonlyfolder/permanent.txt
can't delete this
# rm readonlyfolder/permanent.txt
rm: cannot remove `readonlyfolder/permanent.txt': Read-only file system

@]
Edit - History - Print - Recent Changes - Search
Page last modified on December 05, 2014, at 01:53 AM