Skip to contentSkip to conversation

storing a Filesystem in a file

DISCUSSION sankarshana rao 3 participants 3 messages Jul 31, 2004

lore
Share & tools
lore
#1 lore raw
Quoted 5 lines · you

Hi,
I have a requirement to create a file system in a file . Is this possible???

thx in advance...

The subject and body seem to conflict a bit. Answering the subject: Yes. Check out the dd command. Example:
dd if=/dev/cdrom of=file.iso

#2 lore raw
In reply to sankarshana rao
Quoted 3 lines · sankarshana rao

Hi,
I have a requirement to create a file system in a file . Is this possible???

Like previous responder said, copying a device content (partition, or whole device full) to a file is trivialish.

If you want to create a filesystem (like e.g. ramdisk-images are created when builing kernel installation), then you do need a device called 'loop'. See 'man losetup'.

Quoted 1 line

thx in advance...

/Matti