Re: [RFC] mount(8) can figure out fstype



On Thu, Jan 18, 2007 at 05:14:49PM +0300, Andrew Pantyukhin wrote:
On 1/18/07, Craig Rodrigues <rodrigc@xxxxxxxxxxxxxx> 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
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: mount() function problem !
    ... mount() attaches the filesystem specified by source (which is often a device name, ... point within a file system. ... details of the options available for each filesystem type. ... Specifies the journalling mode for file data. ...
    (comp.lang.c)
  • Re: [autofs] [RFC] Towards a Modern Autofs
    ... >entangling autofs with that work. ... >filesystem it's willing to export. ... >>map is mounted. ... The result is that some users will see mount points ...
    (Linux-Kernel)
  • Re: UFS Bug: FreeBSD 6.1/6.2/7.0: MOKB-08-11-2006, CVE-2006-5824, MOKB-03
    ... They can simply mount a filesystem with any number of SUID ... root binaries on it and have their way with the box. ... They have physical access to the machine. ...
    (FreeBSD-Security)
  • Re: Xenix Filesystem
    ... > how do I mount a new filesystem in SCO Open Server 5.0.5? ... There is probably at least 2 or 3 divvy partitions within that fdisk ...
    (comp.unix.sco.misc)
  • cannot boot-up linux, unable to read superblock
    ... mount: error 22 mounting ext3 ... enable lvm and tried fsck for the volumes (one is empty volume? ... Attempt to read block from filesystem resulted in short read while trying to open /dev/VolGroup00/LogVol00 ...
    (RedHat)