From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C0BEC2D0CE for ; Tue, 21 Jan 2020 17:51:25 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EACA8206A2 for ; Tue, 21 Jan 2020 17:51:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EACA8206A2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1itxfy-00069x-Fv; Tue, 21 Jan 2020 12:50:54 -0500 Received: from omr2.cc.ipv6.vt.edu ([2607:b400:92:8400:0:33:fb76:806e] helo=omr2.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1itxfw-00069p-DI for kernelnewbies@kernelnewbies.org; Tue, 21 Jan 2020 12:50:52 -0500 Received: from mr6.cc.vt.edu (mr6.cc.vt.edu [IPv6:2607:b400:92:8500:0:af:2d00:4488]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id 00LHoncr018164 for ; Tue, 21 Jan 2020 12:50:50 -0500 Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by mr6.cc.vt.edu (8.14.7/8.14.7) with ESMTP id 00LHohE8002901 for ; Tue, 21 Jan 2020 12:50:49 -0500 Received: by mail-qt1-f199.google.com with SMTP id l56so2445118qtk.11 for ; Tue, 21 Jan 2020 09:50:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=mza+Bz6j8MNOPi8Hm+jM1hCU/4NpiwrGKS0cu3BxN1U=; b=F0IwGEzJmbPe0ze4Os9LshIj21Pa3utdBq7EltRjpbiDGNunUMgb8sd0QdRYtgA9By XWFLzLmXyMErKbaT9A7PVcNbNfpgJWpdbZLc7z7QQo1ZnPve1taQUavQG4nKZo5+b8Tm Q2NKlHHUDyhSRuyKY+P5y4zOrrH2g3WmAPaUfrKjnqGkNbMg4tz1/gHgkExdqiwV3KOr GFFgT2ErVw6FRcB+AV4LOwBjcAUnHd8cpUDm3s/WzqdgLinCK8AjFtVmxPhEqCIPtNEL sg3c0v57kpDpupad3ocYdsZCV9n7/lGLsZi52lWbWME2Zi7dJ/buAoKVq1lOf9+kju2E pigg== X-Gm-Message-State: APjAAAVXmJ+jxrjlCCZm9s0aOzXD4ZXrdFDzCg2hGlqZHnauKKRcSz65 /uUYR7WAIc14tQl2jQDlBlT/DfmNnMt32OUpNibJ13yvCgIJyKXb2rHoPjAbW0hVnfLhYDv1Lht C3a3AjV08bfA06nJqDSa1NqV/LaOwAd+P5SX7bYk= X-Received: by 2002:a37:d14:: with SMTP id 20mr3081814qkn.330.1579629043526; Tue, 21 Jan 2020 09:50:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxUU6Rf5mmf5Wl43NIcJmpPjZnGBkVG7C9NJdMao8n6+pWo6Ln/W8/tBNpahwoFyVMASvRs5w== X-Received: by 2002:a37:d14:: with SMTP id 20mr3081793qkn.330.1579629043129; Tue, 21 Jan 2020 09:50:43 -0800 (PST) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id i28sm20105215qtc.57.2020.01.21.09.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 09:50:42 -0800 (PST) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Adam Trhon Subject: Re: Why is my block device busy? In-Reply-To: <20200120135113.0c3534d2@loki02> References: <20200120135113.0c3534d2@loki02> Mime-Version: 1.0 Date: Tue, 21 Jan 2020 12:50:41 -0500 Message-ID: <32873.1579629041@turing-police> Cc: "kernelnewbies@kernelnewbies.org" X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0912833754179334726==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============0912833754179334726== Content-Type: multipart/signed; boundary="==_Exmh_1579629041_32171P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1579629041_32171P Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, 20 Jan 2020 12:51:15 +0000, Adam Trhon said: > mount =7C grep mmc You might want to dump the *entire* output of the mount command, and see if something is mounted via an alias or devmapper entry, or if you're= using busybox and getting a stripped-down mount output. You should also check with 'cat /proc/mounts'. > EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (= null) Looks like something did mount a filesystem on the device. You probably s= hould figure out who/what did it before you scribble on the device. > Next I modified the ext driver to print stack when mounting, and I got:= > > Call Trace: > ? ext4_calculate_overhead+0x520/0x520 > mount_bdev+0x15a/0x180 Looks like what I'd expect to see when in the mount syscall. What were you expecting to see here? If you're trying to figure out who did the mount, the kernel stack trace = probably won't help. More often, you'll need to resort to something like this: mv /bin/mount /bin/mount.real cat > /bin/mount =23=21/bin/sh ps lax exec /bin/mount.real =24* =5ED chmod +x /bin/mount and then look at the parent process chain of the call in the ps output. --==_Exmh_1579629041_32171P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXic58AdmEQWDXROgAQKifA/+PAnGCJ43v1MwTDdcuOBSdIelJ0xjixeR 33TlQYgbitcSYFsNwFjySW5nXZvAcK3gGbHz3PinPyvig6RJ7VLvKmGzG5ZH6F2a kkLRgJ4XNPnilfkZmaDjJY7yQM6rw4xaIYXsykvl0QTNglixjvJXsnUOa7e/Bwi8 MZdKZ2j5OX55m3ILsxnhfqLeG0JnybQTX/xVBrgbRF6l3XbozeefPEinwnJBzZpz tlHDHv4HnqfWeeFO4Aq53+zMmzMdDVH10hsq+cbRK7a+GAo3/fU5uqLS7+tH+1LF LAhuyHUVZ20tLtE+egIuWWeNy9UlrG6UFN1aI46+btIFAwyGAmThIxg4AYxfIue1 fh/woUcbUTF9E5H9QSZy7HhL/bc+QNUrfHhJEJyFP4DD7L2kHFJPTU9lSptN84BN C8CkAK0UYYHWzF5ftpCL6HG4jPjhPKVGBiTBrQMqJED1fW6zJFlcUhepcTz/QH0J kpPU19mNHuZSuyHkVCFHFw/KCefqGuYaETxSdNDJMnT/5AOFiG84cbFXhwZ2SFam 4tqW+Q5NA6aJItHchFylD4M5+1x4htCY1fIdZlYLSzm6sBk1PnRMgbrzq6tud4BE 70Ls8NhEnTcYWl21jJw6Z18FmNAPaiZ03Sao4SGGGJ9X7XFs8IOalr4Gz2iZAhY8 C25XxYBWcvM= =NxzF -----END PGP SIGNATURE----- --==_Exmh_1579629041_32171P-- --===============0912833754179334726== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============0912833754179334726==--