Loopback Device / Image file handling
Posted: Mon Aug 09, 2010 7:15 am
There is an article in the wiki that describes how to handle image files under Unix systems.
I have two problems with that:
1) In several places, the article is needlessly complicated. Most operations described therein can be done without setting up a dedicated loopback device. The 'fdisk' command under Linux can operate on files, 'mount' knows both the '-o loop' and the '-o offset=<...>' option. I started streamlining the article, then hesitated - is there any reason for the 'losetup' hoops the author is jumping through?
2) While the article gives a good idea how to handle image files under Unixes, and is linked as such from the main page, it is named "Loopback Devices". If I entered that as search keywords, a tutorial on setting up an image file with 'dd' and formatting it with 'mkfs.ext2' might not quite be what I was looking for (as mentioned on the discussion page). I'm not the person to write a page discussing loopback device architecture, but I'd suggest renaming the article (perhaps "Image files under Unix"), to avoid confusion and to make room for a potential article on loopback devices themselves.
I have two problems with that:
1) In several places, the article is needlessly complicated. Most operations described therein can be done without setting up a dedicated loopback device. The 'fdisk' command under Linux can operate on files, 'mount' knows both the '-o loop' and the '-o offset=<...>' option. I started streamlining the article, then hesitated - is there any reason for the 'losetup' hoops the author is jumping through?
2) While the article gives a good idea how to handle image files under Unixes, and is linked as such from the main page, it is named "Loopback Devices". If I entered that as search keywords, a tutorial on setting up an image file with 'dd' and formatting it with 'mkfs.ext2' might not quite be what I was looking for (as mentioned on the discussion page). I'm not the person to write a page discussing loopback device architecture, but I'd suggest renaming the article (perhaps "Image files under Unix"), to avoid confusion and to make room for a potential article on loopback devices themselves.