Can FreeBSD 9.0-RELEASE mount Ext3 file system ?

Xavier xavierfreebsdquestions at gmail.com
Thu Apr 19 12:21:50 UTC 2012


On Wed, Apr 18, 2012 at 02:12:41PM +0200, Julian H. Stacey wrote:

Hi Julian,

> Hi,
> Reference:
> > From:        Xavier <xavierfreebsdquestions at gmail.com>
> > Date:        Sat, 7 Apr 2012 22:25:28 +0200
> > Message-id:    <CALe6D=vpy0rk1=-
9rVtv46Xp8zD4XvZNGb1CBWWacdAZwTq_xQ at mail.gmail.com>
>
> Xavier wrote:
> > On Sat, Apr 07, 2012 at 04:15:41PM -0400, illoai at gmail.com wrote:
> >
> > Hi,
> >
> > > On 7 April 2012 13:53, Xavier <xavierfreebsdquestions at gmail.com>
wrote:
> > > > Hi to all,
> > > >
> > > > I have:
> > > >
> > > > casa# disktype /dev/da1
> > > >
> > > > --- /dev/da1
> > > > Character device, size 3.771 GiB (4048551936 bytes)
> > > > FreeBSD boot loader (i386 boot2/BTX 1.02 at sector 2)
> > > > BSD disklabel (at sector 1), 8 partitions
> > > > Partition c: 2.145 GiB (2302711808 bytes, 4497484 sectors from 0)
> > > >  Type 0 (Unused)
> > > > DOS/MBR partition map
> > > > Partition 1: 3.547 GiB (3808272384 bytes, 7438032 sectors from 63)
> > > >  Type 0x83 (Linux)
> > > >  Ext3 file system
> > > >    UUID D1A7E6D6-3A34-4864-B6E8-C4DAA34AD776 (DCE, v4)
> > > >    Last mounted at "/"
> > > >    Volume size 3.547 GiB (3808272384 bytes, 929754 blocks of 4 KiB)
> > > > Partition 2: 227.5 MiB (238533120 bytes, 465885 sectors from
7438095)
> > > >  Type 0x05 (Extended)
> > > >  Partition 5: 227.5 MiB (238500864 bytes, 465822 sectors from
7438095+63)
> > > >    Type 0x82 (Linux swap / Solaris)
> > > >    Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
> > > >      Swap size 227.4 MiB (238489600 bytes, 58225 pages of 4 KiB)
> > > >
> > > > I'm running from FreeBSD 9.0-RELEASE
> > > >
> > > > I try:
> > > >
> > > > casa# mount -t ext2fs /dev/da1a /mnt/JetFlash\ Transcend\ 4GB\ 1100/
> > > > mount: /dev/da1a : Invalid argument
> > > >
> > > > How can I mount it ?
> > >
> > > mount -t ext2fs /dev/da1s1 /mnt/JetFlash\ Transcend\ 4GB\ 1100/
> > > perhaps?  Note-----------^^
> > >
> > > If that still doesn't work, try adding -r in there (as ext2fs might
not
> > > support r/w in your configuration).
> > >
> >
> > casa# mount -t ext2fs /dev/da1s1 /mnt/JetFlash\ Transcend\ 4GB\ 1100/
> > mount: /dev/da1s1 : No such file or directory
> > casa#
> > casa# mount -r -t ext2fs /dev/da1s1 /mnt/JetFlash\ Transcend\ 4GB\ 1100/
> > mount: /dev/da1s1 : No such file or directory
> > casa#
> >
> > You have more ideas ?
>
> With 9.0-RELEASE generic kernel:
> man mount
>     ...
> man 2 nmount
>     The type argument names the file system.  The types of file
>     systems known to the system can be obtained with lsvfs(1).
> lsvfs
>     Filesystem                        Refs Flags
>     -------------------------------- ----- ---------------
>     devfs                                1 synthetic
>     msdosfs                              0
>     nfs                                  0 network
>     procfs                               0 synthetic
>     cd9660                               0 read-only
>     ufs                                  1
> cd /boot/kernel ; find . -name \*ext\* -print
> kldload /boot/kernel/ext2fs.ko ; lsvfs
> # Adds
>     ext2fs                               0
> man ext2fs
>     To link into the kernel:
>         options EXT2FS
>     To load as a kernel loadable module:
>         kldload ext2fs
> No mention of ext3 there, nor from find (above).
>
> .. so you May be out of luck ..
>
> Divide the problem. Reduce simulltaneous testing of backslash & ext3.
> Delete all backslash junk during test.  Try
>     su ; mkdir /mnt/test ; mount -r -t ext2fs /dev/da1a /mnt/test

I try:

casa# kldstat | grep ext
10    1 0xc93b9000 10000    ext2fs.ko

casa% lsvfs | grep ext
ext2fs                               0

casa# disktype /dev/da0

--- /dev/da0
Character device, size 14.92 GiB (16025387008 bytes)
DOS/MBR partition map
Partition 1: 13.93 GiB (14961082368 bytes, 29220864 sectors from 2048,
bootable)
  Type 0x83 (Linux)
    Ext3 file system
        UUID DF70360E-9DD3-436D-9627-A614FB0FD24E (DCE, v4)
        Last mounted at "/"
            Volume size 13.93 GiB (14961082368 bytes, 3652608 blocks
        of 4 KiB)
        Partition 2: 0.988 GiB (1061159936 bytes, 2072578
        sectors from 29224958)
          Type 0x05 (Extended)
            Partition 5: 1012 MiB (1061158912 bytes, 2072576
            sectors from 29224958+2)
                Type 0x82 (Linux swap / Solaris)


casa% ls /dev/da0*
/dev/da0        /dev/da0s1      /dev/da0s2      /dev/da0s5

How can get the correct da0 node for your mount(8) command ?

Thanks, see you.


More information about the freebsd-questions mailing list