All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Artem S. Tashkinov" <t.artem@lycos.com>
To: linux-kernel@vger.kernel.org
Subject: Not being able to reread the partition table - why is Linux so 90x?
Date: Fri, 8 Nov 2013 13:37:29 +0000 (UTC)	[thread overview]
Message-ID: <1600311353.38386.1383917849694.JavaMail.mail@webmail14> (raw)

Hello,

I wonder why in 2013 I still cannot modify _unused_ partitions on the fly,
yeah, the Internet is full of:

# hdparm -z /dev/sda

/dev/sda:
 re-reading partition table
 BLKRRPART failed: Device or resource busy

# fdisk (after adding a new partition using unused space on my hdd)
...
Command (m for help): w

The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy

SCSI rescan command doesn't work too.

I do understand that the Linux kernel doesn't have any form of invoke() but
then it prevents me from altering the partitions which are not used - it's
100% counter intuitive. Windows, for instance, allows to modify even a
system partition on the fly since 2006, Linux doesn't allow to add partitions
without rebooting the system.

Could anyone elaborate, please?

Best regards,

Artem

                 reply	other threads:[~2013-11-08 13:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1600311353.38386.1383917849694.JavaMail.mail@webmail14 \
    --to=t.artem@lycos.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.