Can FreeBSD 9.0-RELEASE mount Ext3 file system ?

Julian H. Stacey jhs at berklix.com
Wed Apr 18 12:13:29 UTC 2012


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
If that likely too fails, then select a list:
	freebsd-fs at freebsd.org
or
	freebsd-current at freebsd.org 
+ cc code authors on freebsd
	{ see names in base of man ext2fs` & look in sources or cvs maybe }
Ask them if anyone is known to be working on Ext3 on FreeBSD 
(or *OtherBSD, as that'd be a good start for a port)

If all that fails, insert stick in a Linux box (*),
copy data from the ext3 stick, reformat stick as Ext2, & write the data back.

Ext2 doesnt need the latest FreeBSD-9, at least FreeBSD-8.2
can also handle Ext2.

Linux boxes can be found in unexpected places, eg some
media devices are built on Linux, (Some some manufacturers are not
aware BSD offers more liberal licensing than FSF).  Whether
such devices can reformat to user selected format I haven't yet had
access to try so you might need a real Linux PC to re-format.

Examples of media boxes:
	Iomega ScreenPlay TV Link, Director Edition
	high definition multimedia player
        http://go.iomega.com/section?p=4760&secid=42740#tech_specsItem_tab
        External USB Drive Format:
        NTFS (default), FAT32, Mac OS Extended (HFS+)**, Ext2 or Ext3.
	(No mention of UFS, so presumably a Linux, I will collect one soon).

	http://www.humaxfoxsathdr.co.uk/
	Foxsat-HDR/500
	http://www.humaxdirect.co.uk/product.asp?ProdRef=10087#more-info
	(Not stated what this supports.)

	Dreambox 800
	http://www.dreambox800.co.uk/Dreambox-800-Satellite-Receiver-pro
	(Not stated what this supports, but based on Linux)

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Reply below not above, cumulative like a play script, & indent with "> ".
 Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
	Mail from @yahoo dumped @berklix.  http://berklix.org/yahoo/


More information about the freebsd-questions mailing list