Link to home
Start Free TrialLog in
Avatar of LPTech
LPTech

asked on

Creating a File System from a file

Hi,

Here is the sequence of commands I use on Linux to create a fs from a file... Is this possible in BSD? And, if so, how do I do it?

# SIZE=1000000
# head -c $SIZE < /dev/zero > myfilename
# losetup /dev/loop0 myfilename
# mke2fs /dev/loop0
# mount -o loop /dev/loop0 /mnt/myfilename

I would like the FS to be read-only.

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial