From owner-freebsd-questions@freebsd.org Sun Dec 20 21:38:11 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 453B8A4E601 for ; Sun, 20 Dec 2015 21:38:11 +0000 (UTC) (envelope-from sm@ara-ler.com) Received: from mail-ig0-x241.google.com (mail-ig0-x241.google.com [IPv6:2607:f8b0:4001:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 12C8914AB for ; Sun, 20 Dec 2015 21:38:11 +0000 (UTC) (envelope-from sm@ara-ler.com) Received: by mail-ig0-x241.google.com with SMTP id wf13so3545637igc.0 for ; Sun, 20 Dec 2015 13:38:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ara-ler-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=0N8ErK8VsSL3G22A1fv05AC1TieEDzKo9TQQKVc7fh4=; b=EHXW5TKpeGnRAeaR1PUTd/Touvwro0nvDv57VNzt0W9UxoPyq7MY3aEULiteDRI5Oq LbLgGess9xbghG3D4q+yY3MpJMirFcUKpa6q5JJRrHD4oESbVENu3k92A3K3XvVdmeXd CxFraxev1ml5wz/4Iinyp+cm6JWdMySxbOnHej4E98yEFoVOXjvfduBsKEMt9BDZI+K5 Jn38bDmeECon4JxF7JyEMTNlO6HFH+jY5lfnWPK0OHWlyprVv6bNWn2X1jAYuQTBh5zX aI8YWGx8Gfv6CNgaSmDmJ70pDcdjPykalr8gfhjyOLv4ThzGBddLD2QQhqvWlSV4tn5Z LGUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=0N8ErK8VsSL3G22A1fv05AC1TieEDzKo9TQQKVc7fh4=; b=NH0yjdWK/6YEpe6xAkmADdkB1pPSRS/hCdzj+aXEFoevjYYXhURhT3mXOVFRy4oVtk qIRejLJm1/UpQbDpKTtRfyaKuMD1g49ZPXBx7Rqm1mm8QDUsNPDnSIBUmumVP+84d7jo yp3cYYUa4TTUvoyIrlOWgRTdUhShC9Su6zQIslz5d8db7e4O8cKUEGAKAbiJ5ka7eoB9 XuBLAWk5W9+hudBdIo1KMnCRPLgirMESezSjHAwgEcmA4n1fx3r0tUqRWjXhnh+e8+8H ON0LLDReoXYSyye75dra9GjYE6JLyXHiYygXiFAC1ie8kjHHy3yt3+C/4SDOImfrW5bx rUTA== X-Gm-Message-State: ALoCoQk+DBSbNwUrGFtr3IUhtQpWgD8/inGHvGJAY9k82cWTQO5numKjeXWO7k+A2xJc2sS7pfRbxLfpTj3TW0wuOSjBxtT7Ig== X-Received: by 10.50.13.100 with SMTP id g4mr13779540igc.64.1450647490350; Sun, 20 Dec 2015 13:38:10 -0800 (PST) Received: from dendrobates.araler.com (70-59-19-232.hlrn.qwest.net. [70.59.19.232]) by smtp.gmail.com with ESMTPSA id l21sm10757554ioe.21.2015.12.20.13.38.09 for (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Dec 2015 13:38:09 -0800 (PST) Date: Sun, 20 Dec 2015 14:38:07 -0700 From: Sergey Manucharian To: freebsd-questions Subject: Re: mounting udf Message-ID: <20151220213807.GA4064@dendrobates.araler.com> References: <20151219171651.12f1da2d@jive.levalinux.org> <20151219191010.21d4af06.freebsd@edvax.de> <20151219204039.70b2b91b@jive.levalinux.org> <20151219210321.c5438bdc.freebsd@edvax.de> <20151220060715.GJ22018@dendrobates.araler.com> <20151220162856.GC4053@dendrobates.araler.com> <20151220172157.GD4053@dendrobates.araler.com> <20151220183934.4bf4c6bb.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151220183934.4bf4c6bb.freebsd@edvax.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2015 21:38:11 -0000 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 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.