mount with Labels

Philipp Wehrheim 01flipstar at web.de
Wed Dec 12 14:10:57 UTC 2007


Am Mittwoch, den 12.12.2007, 12:51 +0100 schrieb Ralf Friedl:
> Jason Curl wrote:
> > Is it possible to use BusyBox mount to mount a filesystem on boot depending on the label of the device/partition? I have a Compact Flash disk that mounts it's second partition but on some devices this is /dev/hda1 and on other devices this i /dev/hdc1 (the root is /dev/hda2 or /dev/hdc2 so that when a user takes the CF card out and puts it on Windows, they don't see the boot partition, only the FAT partition securing the software from accidental deletion).
> >
> > Using a label removes this dependency. Also I intend to allow users to insert a USB key to my embedded device but I can't say what device it would be up front, but I can easily specify the label of that partition.
> I'm not sure about mounting at boot time, but at least for the USB key 
> the solution might be to use hotplug.
> 
> I think that the devices present at boot time also generate "hotplug" 
> events, but I never tried that.
> 
I'm using bb 1.3.2 with the tune2fs applet which supports findfs and
e2label for a initramfs.

You may want to have a look at this.

--
flip




More information about the busybox mailing list