mounting udf

Sergey Manucharian sm at ara-ler.com
Sun Dec 20 21:38:11 UTC 2015


Excerpts from Polytropon's message from Sun 20-Dec-15 18:39:
> On Sun, 20 Dec 2015 10:21:57 -0700, Sergey Manucharian wrote:
> > Excerpts from Adam Vande More's message from Sun 20-Dec-15 11:14:
> > > On Sun, Dec 20, 2015 at 10:28 AM, Sergey Manucharian <sm at ara-ler.com> wrote:
> > > 
> > > > Nope. Nothing new. I've also reformatted it in Windows (which created a
> > > > partition). Still works fine in Linux, but not in FreeBSD:
> > > >
> > > > # fstyp /dev/da0s1
> > > > fstyp: /dev/da0s1: filesystem not recognized
> > > >
> > > > # mount_udf -v /dev/da0 /mnt/tmp/
> > > > mount_udf: /dev/da0: Invalid argument
> > > >
> > > 
> > > You are preforming operations on two different block devices.  I cannot
> > > understand why.  The prior output from linux indicates /dev/da0 is the only
> > > one you should care about.
> > 
> > No, I've mentioned it above: Windows has created a partition after
> > I reformated it.
> 
> So da0 is not carrying the file system - da0s1 is.

By my undestanding since there is no magic number for UDF, Windows set
the partition type to FAT32. But that should not have any effect, especially
when the filesystem is specified explicitely.

Linux:
======

# file -s /dev/sda
/dev/sda: DOS/MBR boot sector; partition 1 : ID=0xb, start-CHS
(0x0,1,1), end-CHS (0x3ff,254,63), startsector 63, 31262427 sectors,
extended partition table (last)

# file -s /dev/sda1

# fdisk -l /dev/sda
Disk /dev/sda: 14.9 GiB, 16008609792 bytes, 31266816 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start      End  Sectors  Size Id Type
/dev/sda1          63 31262489 31262427 14.9G  b W95 FAT32

# mount /dev/sda1 /mnt/tmp/

$ mount
....
/dev/sda1 on /mnt/tmp type udf (rw,relatime,utf8)


FreeBSD:
========
# file -s /dev/da0
/dev/da0: DOS/MBR boot sector; partition 1 : ID=0xb, start-CHS
(0x0,1,1), end-CHS (0x3ff,254,63), startsector 63, 31262427 sectors,
extended partition table (last)

# file -s /dev/da0s1
/dev/da0s1: data

# gpart list da0
Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 31266815
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: da0s1
   Mediasize: 16006362624 (15G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 32256
   Mode: r0w0e0
   rawtype: 11
   length: 16006362624
   offset: 32256
   type: fat32
   index: 1
   end: 31262489
   start: 63
Consumers:
1. Name: da0
   Mediasize: 16008609792 (15G)
   Sectorsize: 512
   Mode: r0w0e0

# mount  -t udf /dev/da0s1 /mnt/tmp/
mount: /dev/da0s1: Invalid argument

--
S.



More information about the freebsd-questions mailing list