From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Thu, 23 Feb 2006 11:32:41 +0000 Subject: Re: Creating partition devices after creating a partition on a harddisk? Message-Id: <200602231432.54287.arvidjaar@mail.ru> List-Id: References: <20060223111429.GA21178@sci.fi> In-Reply-To: <20060223111429.GA21178@sci.fi> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org -----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&kid0944&bid$1720&dat1642 _______________________________________________ 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