In message <iaaqmi$ek1$>, Richard wrote:
> On 28/10/2010 1:37 p.m., Lawrence D'Oliveiro wrote:
>
>> In message<ia8uin$onb$>, Richard wrote:
>>
>>> ... but I am not reformatting a drive to test that.
>>
>> Easy enough to do, isn’t it? Create a temporary holding file of whatever
>> size you like, and mount it as a loopback disk. Now you can format it to
>> your heart’s content, put files on it, take them off, whatever. And when
>> you’ve finished, dismount the volume and delete the file.
>
> Its called a VHD in windows, and its still effort.
I’m not surprised you think it’s too much effort: VHD is a format designed
for use by virtual machines, which is way overkill for what I was talking
about.
No, I was talking about a file which is just a simple collection of sectors,
just like a disk, and which Linux allows you to format and mount as a
filesystem volume, just like a disk. Just takes four commands:
* Use dd to create the file. It’s common to fill it with zeroes, but this is
not necessary.
* Use losetup to associate the file with a loopback device.
* Use mkfs to format the loopback device with your choice of filesystem
* Mount the filesystem for use.
|