From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f68.google.com ([209.85.221.68]:34151 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728207AbeHVTBG (ORCPT ); Wed, 22 Aug 2018 15:01:06 -0400 Received: by mail-wr1-f68.google.com with SMTP id g33-v6so1982053wrd.1 for ; Wed, 22 Aug 2018 08:35:43 -0700 (PDT) Date: Wed, 22 Aug 2018 17:35:41 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Jan Kara Cc: jean-luc malet , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 0/2] udf: A cleanup and a mount fix Message-ID: <20180822153541.x3qzggxqe6gv3xbk@pali> References: <20180821135429.676-1-jack@suse.cz> <20180822152435.GD23037@quack2.suse.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yzy3ev2bu4rvqdjq" Content-Disposition: inline In-Reply-To: <20180822152435.GD23037@quack2.suse.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: --yzy3ev2bu4rvqdjq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wednesday 22 August 2018 17:24:35 Jan Kara wrote: > Hi, >=20 > On Wed 22-08-18 15:25:51, jean-luc malet wrote: > > I didn't had time to test the patch yet but there is an issue in udf de= tection > > of mount (using udf formated partition with mkfs.udf under linux) > > when I do=C2=A0 > > # mount /dev/sdx1 /some/mount/point=C2=A0 > > it gives an error, syslog show and error saying exfat marker wasn't fou= nd (the > > partion id is set to one of the windows compatible one, either exfat/nt= fs or > > one of the fat32 or 0x7 as described into=C2=A0https://serverfault.com/= questions/ > > 35243/what-is-the-partition-id-filesystem-type-for-udf : Short answer: = I would > > suggest to use MBR id 0x07 for UDF partitions. so that it's detected by= windows > > and have a drive letter assigned) > > but > > #mount /dev/sdx1 /some/mount/point -t udf=C2=A0 > > works fine > > don't know where it is relevant to file the bug...=C2=A0 >=20 > This is a different issue. Older versions of mkfs.udf did not wipe all > locations on disk where other filesystems (previous filesystems on the > media) could have their identifications. So mount finds exfat signature, > tries to mount the device as FAT which fails (as UDF has already > overwritten lots of its metadata). Right, Pali? Yes, older versions of mkudffs (mkfs.udf) prior to 2.0 did not do any cleanup. Just write new needed UDF structures to device. UDF itself does not use first 32kB of disk, therefore any existing FAT/NTFS/ext* signatures stay there. So ideally prior using older mkudffs erase first 10MB of disk, this should be enough to wipe all existing filesystem signatures. Or use new version of mkudffs 2.0+. --=20 Pali Roh=C3=A1r pali.rohar@gmail.com --yzy3ev2bu4rvqdjq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQS4VrIQdKium2krgIWL8Mk9A+RDUgUCW32CyQAKCRCL8Mk9A+RD UoHGAKCo89xx/qBO6mXvWa55RNxtD+93OACfejqOW5LESHeSIWPo2TEA4fBRw98= =Zzmo -----END PGP SIGNATURE----- --yzy3ev2bu4rvqdjq--