[RFC] mount(8) can figure out fstype

Luigi Rizzo rizzo at icir.org
Thu Jan 18 14:49:38 UTC 2007


On Thu, Jan 18, 2007 at 05:14:49PM +0300, Andrew Pantyukhin wrote:
> On 1/18/07, Craig Rodrigues <rodrigc at crodrigues.org> wrote:
...
> > One of the pet peeves I have with FreeBSD is that
> > if I have a device with a local filesystem that I want to mount,
> > I need to explicitly know what type of filesystem is on the
> > device in order to mount it from the command-line.
...
> > Where this is particularly annoying is if I have multiple
> > USB thumb drives with different filesystems on them.
...
> > What I would like to do is:
> >
> > mount /dev/ad0s4 /mnt
> >
> > and if I do not specify a filesystem type with -t, the mount
> > program should "magically" figure out how to mount the disk.
> > This is closer to how the mount program behaves on Linux for example.
> >
> > In this patch, I only modified the userland mount program.
...
> 2. "mount -t auto" might be closer to POLA

great feature. I probably agree that "mount -t auto" might
be a safer way to implement it, but other than that i'd
love to have it too.

	cheers
	luigi


More information about the freebsd-current mailing list