All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@mail.ru>
To: linux-hotplug@vger.kernel.org
Subject: Re: Creating partition devices after creating a partition on a harddisk?
Date: Thu, 23 Feb 2006 11:32:41 +0000	[thread overview]
Message-ID: <200602231432.54287.arvidjaar@mail.ru> (raw)
In-Reply-To: <20060223111429.GA21178@sci.fi>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 23 February 2006 14:14, Anssi Saari wrote:
> I added a partition to a harddisk yesterday, but after I exited fdisk
> I couldn't mkfs on it, because the device node didn't exist, /dev/hda7
> to be exact. After manually creating it with mknod, I still couldn't
> mkfs. So I removed the manually created node and rebooted and then I
> had the node and could mkfs.
>
> But what does one do to accomplish the same thing without rebooting?
>

You should be able to do 'bockdev --rereadpt /dev/hda' to force kernel to 
reread partition table. I would expect that fdisk (or whatever is used to 
repartition) does the equivalent IOCTL automatically.

blockdev is part of util-linux

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD/Z1mR6LMutpd94wRAqjdAJ9npurMfxg2UxA2oGYpx60dcdIqVACdFRmY
6IkyVQeFt4QRwZYQRNj0Wgo=JM7m
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  reply	other threads:[~2006-02-23 11:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-23 11:14 Creating partition devices after creating a partition on a harddisk? Anssi Saari
2006-02-23 11:32 ` Andrey Borzenkov [this message]
2006-02-27 14:18 ` Creating partition devices after creating a partition on a David Zeuthen
2006-02-27 15:52 ` Creating partition devices after creating a partition on a harddisk? Anssi Saari
2006-02-27 18:34 ` Andrey Borzenkov

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=200602231432.54287.arvidjaar@mail.ru \
    --to=arvidjaar@mail.ru \
    --cc=linux-hotplug@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.