From: Jeff Moyer <jmoyer@redhat.com>
To: Chris Murphy <lists@colorremedies.com>
Cc: Linux FS Devel <linux-fsdevel@vger.kernel.org>
Subject: Re: how to track down cause for EBUSY on /dev/vda4?
Date: Fri, 18 Dec 2020 13:49:53 -0500 [thread overview]
Message-ID: <x49sg83t0dq.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <CAJCQCtQUvyopGxBcXzenTy8MuEvm+W1PQNqzFf1Qp=p1M9pBGQ@mail.gmail.com> (Chris Murphy's message of "Thu, 17 Dec 2020 13:13:54 -0700")
Chris Murphy <lists@colorremedies.com> writes:
> Hi,
>
> Short version:
> # mkfs.any /dev/vda4
> unable to open /dev/vda4: Device or resource busy
>
> Curiously /dev/vda4 is just a blank partition, not in use by anything
> that I'm aware of. And gdisk is allowed to modify the GPT on /dev/vda
> without complaint. This is a snippet from strace of the above command
> at the failure point:
>
> openat(AT_FDCWD, "/dev/vda4", O_RDWR|O_EXCL) = -1 EBUSY (Device or
> resource busy)
[snip]
> format, and /proc/mounts shows
>
> /dev/vda /run/initramfs/live iso9660
> ro,relatime,nojoliet,check=s,map=n,blocksize=2048 0 0
That mount claims the device, and you can't then also open a partition
on that device exclusively.
> So it sees the whole vda device as iso9660 and ro? But permits gdisk
> to modify some select sectors on vda? I admit it's an ambiguous image.
> Is it a duck or is it a rabbit? And therefore best to just look at it,
> not make modifications to it. Yet /dev/vda is modifiable, where the
> partitions aren't. Hmm.
The file system is mounted read-only. It may be that the /device/ is not
read-only.
HTH,
Jeff
next prev parent reply other threads:[~2020-12-18 18:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-17 20:13 how to track down cause for EBUSY on /dev/vda4? Chris Murphy
2020-12-18 18:49 ` Jeff Moyer [this message]
2020-12-21 21:47 ` Chris Murphy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x49sg83t0dq.fsf@segfault.boston.devel.redhat.com \
--to=jmoyer@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=lists@colorremedies.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).