From owner-freebsd-questions@FreeBSD.ORG Sat Feb 1 19:00:00 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B7874211; Sat, 1 Feb 2014 19:00:00 +0000 (UTC) Received: from mail-qc0-x229.google.com (mail-qc0-x229.google.com [IPv6:2607:f8b0:400d:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 63A651532; Sat, 1 Feb 2014 19:00:00 +0000 (UTC) Received: by mail-qc0-f169.google.com with SMTP id w7so9154961qcr.0 for ; Sat, 01 Feb 2014 10:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=z/cpAkk+GztKNrqujxbB5FtKPuzFdw7AkJEuHLbJXEE=; b=QW0Y4LuK0h1UU5CGgqU6TRaEgL1t4l2NqyziRoyGKsDiGMzAVW6MGWN7JltFAyP+M4 xNpFXlNjrpMLG22cFb6W6FTY11u0e55V9U5UycXdjL2ql/rTvjR91FllSWfjROD6XAv4 ke3M60xwQiXkl52e0PW+b6ahmRR55R9XBsKcNQY2496v5EzN5XKWS/SRKrFyK2MvGRQh uieEK8BlG/ZUgPe31qIi5sPqQkGnE66/yID74qic0MttR9zYEG8lToJIoibmYm9QRWCI ixVR8oLYjz9YxAeGRyQp4o6ImeV9kvbakcDfpxLq4cJ1IptzOZaAonoC1IM11GCFViTR PD8Q== MIME-Version: 1.0 X-Received: by 10.224.124.74 with SMTP id t10mr42660043qar.40.1391281199425; Sat, 01 Feb 2014 10:59:59 -0800 (PST) Sender: tomek.cedro@gmail.com Received: by 10.229.151.73 with HTTP; Sat, 1 Feb 2014 10:59:59 -0800 (PST) In-Reply-To: References: <20140131150601.53ee40f4.freebsd@edvax.de> Date: Sat, 1 Feb 2014 19:59:59 +0100 X-Google-Sender-Auth: 5RQZY3qwq_ws78ZDrA31mDGjaok Message-ID: Subject: Re: UFS(2) portable driver for other OS From: CeDeROM To: Freddie Cash Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Filesystems , Polytropon , FreeBSD Questions Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Feb 2014 19:00:00 -0000 On Fri, Jan 31, 2014 at 6:33 PM, CeDeROM wrote: > On Fri, Jan 31, 2014 at 6:20 PM, Freddie Cash wrote: >> There's also UDF which doesn't suffer from a lot of the issues the >> FAT16/32/32x does on large-ish devices. FreeBSD, Windows, Linux, MacOSX >> all support read/write to UDF, although it may depend on the OS version for >> Windows (I think XP needs a 3rd party driver). >> I've used UDF successfully on USB drives, although I don't think you can >> boot off it. > > Yess, thats what I need! Thank you Freddie, I will try it out!! :-) UDF disk does not work on FreeBSD :-( I can create filesystem on a file, but not a memory disk (not supported on my operating system yet). Then I cannot mount both of them anyway. Dead end for UDF disk on FreeBSD? Is seems possible on Linux and Windows though: http://tanguy.ortolo.eu/blog/article93/usb-udf root@hexagon:~ # dd if=/dev/zero of=udf.bin bs=64k count=128k 131072+0 records in 131072+0 records out 8589934592 bytes transferred in 111.747670 secs (76869026 bytes/sec) root@hexagon:~ # newfs_udf -L UDFTEST udf.bin Opening device udf.bin UDF device udf.bin is a regular file bufcache thread initialising Disc info for disc in device udf.bin MMC profile : Unknown[0] profile sequential : no recordable : yes erasable : no blankable : no formattable : no rewritable : yes mount raineer : no packet writing : no strict overwrite : no blocking number : 1 disc state : random writable last session state : incomplete sectorsize : 512 Number of sessions 1 Session 0 start at 0 ends at 16777216 length for 16777216 next writable at 16777217 free blocks 0 packet size 64 Creating a filingsystem on a recordable rewritable CD-RW or DVD+RW/DVD-RW or fixed length file Free unallocated space on this volume 8587442688 Closing disc Dismounting disc syncing disc syncing `4dc9e13a`:`00001674`:`UDFTEST` syncing data syncing nodes used/freed space tables Closing logical volume `4dc9e13a`:`00001674`:`UDFTEST` wait for syncing disc to idle stopping bufcache thread bufcache thread joining signal disc its finished with writing wait for final disc idling close device Disc access statistics sector reads 1 (0 Kbyte) sector written 4267 (2133 Kbyte) switches 3 root@hexagon:~ # dd if=/dev/zero of=udf2.bin bs=64k count=8k 8192+0 records in 8192+0 records out 536870912 bytes transferred in 7.191754 secs (74650899 bytes/sec) root@hexagon:~ # mdconfig -a -f udf2.bin md0 root@hexagon:~ # newfs_udf -L UDFTEST2 /dev/md0 Opening device /dev/md0 Got error executing SCSI command, assuming IDE disc UDF: no explicit support for disc devices yet for this operating system. : No such file or directory Trying readonly access... : No such file or directory UDF: warning... reading/writing on 'disc' device bufcache thread initialising Disc info for disc in device /dev/md0 MMC profile : Unknown[0] profile sequential : no recordable : no erasable : no blankable : no formattable : no rewritable : no mount raineer : no packet writing : no strict overwrite : no blocking number : 1 disc state : random writable last session state : complete/closed disc sectorsize : 512 Number of sessions 1 Session 0 start at 0 ends at 0 length for 0 next writable at 0 free blocks 0 packet size 0 Can't create filingsystem on a non recordable disc Closing disc Dismounting disc dismounting readonly disc stopping bufcache thread bufcache thread joining Disc access statistics sector reads 0 (0 Kbyte) sector written 0 (0 Kbyte) switches 0 root@hexagon:~ # mount_udf -v /dev/md0 /mnt/tmp mount_udf: /dev/md0: Invalid argument root@hexagon:~ # mdconfig -d -u 0 root@hexagon:~ # mount_udf -v udf.bin /mnt/tmp mount_udf: udf.bin: Invalid argument root@hexagon:~ # mdconfig -a -f udf.bin root@hexagon:~ # mount_udf /dev/md0 /mnt/tmp mount_udf: /dev/md0: Invalid argument Did I miss anything? :-( -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info