Hi Ed,

On Mon, Mar 28, 2011 at 11:40:22AM +0100, Ed W wrote:
> Hi, I'm trying to build a small initramfs where I need to mount a
> potentially unknown filesystem partition. I would like to know the
> filesystem type on that partition ahead of time so that I can sometimes
> set particular mount options
> 
> On a non busybox system I can use blkid to detect "TYPE" (in fact seems
> to also work on loopback type files).  Any thoughts on how I might do
> this using only busybox tools (or simple derivations)? 
> 
> (One option seems to be to mount the filesystem, read the type, umount
> and remount if needed - however, seems somewhat slow and clunky..?
> Especially for journalled filesystems...)
> 
> Any suggestions?

Doesn't the Busybox blkid applet work for you?

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to