A front-end to mount
(8) which makes mounting disks something more elegant.
It's loosely inspired in how Solaris used to manage disks back in the day, but implemented in it's own way.
This is just a prototype as a proof-of-concept. I intend to write the final lemount
in Go.
I've made it for mouting disks in a more elegant way.
Tired of creating multiple directories in /
and /mnt
, i created this script.
Instead of mounting /dev/sdXY
in /mnt/diskY
, you can mount it in /dsk/Yp
(p
corresponds to the postfix, i will explain it later).
A demonstration using a NTFS-formatted physical disk. |
Let's suppose, hypothetically speaking, that i have a virtual disk image, i will call it DISK.img
and i want to mount it.
I first will simply expose the disk to the system, using losetup
(8).
Then, i will run lemount
.
At the first question, which is "Which disk do you want to mount?", will respond it with my disk identifier that I probably saw when it listed my disk.
In this case, it's loop0
.
Then, it will question me about what type of media it is. Is it a disk? a USB? a CD-ROM Drive?
Since it's a disk, i can answer with dsk
.
After this, it will mount my disk at /dsk/0v
; in which dsk
is the type, 0
is the disk idenfier (in this case, as there weren't any other disks mounted before, it will be 0
) and v
is the postfix, it indicates (v
)irtual.
Releases can be found at pindorama.dob.jp/pub
.
http://pindorama.dob.jp/pub/lemount
- Portabilize it more;
- May mount virtual disks (
loopX
) without needinglosetup
(8); - Rewrite it in Go.
I've made thinking in it's usage at Copacabana Linux, but in fact you can use it in any Linux box.
- Korn Shell 93;
- Basic UNIX® utilities (Heirloom NG works fine without verbosing enabled, at least for now);
- Util-Linux.
Thanks CallTheSamu, ArthurBacci, Sevla and Baux for suggesting names and helping me polishing the idea.
The Caldera License.