From owner-freebsd-usb@freebsd.org Sun Dec 1 18:33:51 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 02FDB1B4139 for ; Sun, 1 Dec 2019 18:33:51 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Qxht0CqSz45vg for ; Sun, 1 Dec 2019 18:33:49 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72e.google.com with SMTP id x1so15612934qkl.12 for ; Sun, 01 Dec 2019 10:33:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eZO7X52rNQ5gEhcp8cJsf76ixZbsVncglcuUj3a3X7w=; b=u87tDB+WcUGhcMPZ5pbIRQboWKWFjoJnKkebDCw8D2q/6dnOeg3gecDcNjPLfBd2up eiLGKrwRoSlxnscVjLcYrG17Q1V2bCOJFWqjFnJAXPNNiVbRc0+bydX1Khz/qMX0V/VY qwHFT5Y/YvbRrQeyYp4NQN4UheQ1kAvte4m3FZx6EBorWO3dp0r+pCqxroumkkz74EYW xFzMH30slugT4RLB1fpmxLodOzVIYRiLjzzXP20LrQFuAiBbpLEgLN0T8NFsJWMWXBIq J1DpzyNYACeFo4yjtzrJTpmyeuFgwO0sji+Np5z76rslE7TatrqwRQ/z7BYagLASUMjE Sa3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eZO7X52rNQ5gEhcp8cJsf76ixZbsVncglcuUj3a3X7w=; b=F1chpT+5Vw2P7Fqh6L4UPuh8ai2p6bgdHmDCTkcje25zB3+7L/FdhiFYdV1y5Wz8qZ J6UqnDSibsTWGhKOv+jS6pfFp7cCZMA4N+J0aTiAGTI9wF0AUcvLWq04X/lbuZMYeLx+ kDptIC939x9pqE+VaTS9AWnDNV8VL6HLIgX4f+D0ZF/C6pW5D0gmszVXRVLp53ynXgM3 3fiy7eSvL2MJs8SHa2yzEXer70kHGwF3wlmSua4e894i6qsUgYkQw7tTkQmqgcwqu4qN erqG/B5XSplULCQXTJPokRRshtlXl2csGjTmHB63Bzm9eFd0r1Zlep7YoKTuIjp70h1t EK3Q== X-Gm-Message-State: APjAAAWI30nrBJAfN6Gj1/h0vvTD3DRGRh1HR6eqAJG6QMisNirNK9/J hNY+gBHoojenK2cQUAo2m3hchdfcJ0G3uxHtEyoPPA== X-Google-Smtp-Source: APXvYqzPxsXBTfwCLyqczSM8tI0VZYvjUhgHVBCD+sNVyjLQf9+xOnaG6z3CdFRaH9sq2Stf2/avdC5aQ6EZHfLJEHc= X-Received: by 2002:a05:620a:144:: with SMTP id e4mr27047874qkn.240.1575225228320; Sun, 01 Dec 2019 10:33:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Sun, 1 Dec 2019 11:33:36 -0700 Message-ID: Subject: Re: pendrive clone impossible ? To: Tomasz CEDRO Cc: freebsd-questions@freebsd.org, "freebsd-usb@FreeBSD.org" X-Rspamd-Queue-Id: 47Qxht0CqSz45vg X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=u87tDB+W; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::72e) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-2.70 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; IP_SCORE(-2.70)[ip: (-9.27), ipnet: 2607:f8b0::/32(-2.25), asn: 15169(-1.94), country: US(-0.05)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; URI_COUNT_ODD(1.00)[9]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[e.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 18:33:51 -0000 On Sun, Dec 1, 2019, 10:22 AM Tomasz CEDRO wrote: > As my previous message got moderated, just a quick summary - looks > like a GEOM_PART silently discards writes to MBR with a DD when it > considers MBR broken (writing to the rest of the disk is possible). I > have reported this as error: > I'm sorry, but you are wrong. It does no such thing. The error posted is on close when geom retastes the drive and finds bogus data. Geom *never* changes a write, ever, nor does it filter them. Gpart is not even looped in when writing to the raw disk with dd, though it may indirectly deny the open of the device. Debug flags 16 permits the open, but has no other effect. Some thumb drive have antivirus protection that will reject a write that is bogus. Warner https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242341 > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > _______________________________________________ > freebsd-usb@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" >