* Creating partition devices after creating a partition on a harddisk?
@ 2006-02-23 11:14 Anssi Saari
2006-02-23 11:32 ` Andrey Borzenkov
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Anssi Saari @ 2006-02-23 11:14 UTC (permalink / raw)
To: linux-hotplug
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?
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Creating partition devices after creating a partition on a harddisk?
2006-02-23 11:14 Creating partition devices after creating a partition on a harddisk? Anssi Saari
@ 2006-02-23 11:32 ` Andrey Borzenkov
2006-02-27 14:18 ` Creating partition devices after creating a partition on a David Zeuthen
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Andrey Borzenkov @ 2006-02-23 11:32 UTC (permalink / raw)
To: linux-hotplug
-----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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Creating partition devices after creating a partition on a
2006-02-23 11:14 Creating partition devices after creating a partition on a harddisk? Anssi Saari
2006-02-23 11:32 ` Andrey Borzenkov
@ 2006-02-27 14:18 ` 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
3 siblings, 0 replies; 5+ messages in thread
From: David Zeuthen @ 2006-02-27 14:18 UTC (permalink / raw)
To: linux-hotplug
On Thu, 2006-02-23 at 14:32 +0300, Andrey Borzenkov wrote:
> 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.
I'm pretty sure this wont work on IDE unless someone fixed the IDE code
in kernel recently. Is this the case?
David
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Creating partition devices after creating a partition on a harddisk?
2006-02-23 11:14 Creating partition devices after creating a partition on a harddisk? Anssi Saari
2006-02-23 11:32 ` Andrey Borzenkov
2006-02-27 14:18 ` Creating partition devices after creating a partition on a David Zeuthen
@ 2006-02-27 15:52 ` Anssi Saari
2006-02-27 18:34 ` Andrey Borzenkov
3 siblings, 0 replies; 5+ messages in thread
From: Anssi Saari @ 2006-02-27 15:52 UTC (permalink / raw)
To: linux-hotplug
On Mon, Feb 27, 2006 at 09:18:19AM -0500, David Zeuthen wrote:
> On Thu, 2006-02-23 at 14:32 +0300, Andrey Borzenkov wrote:
> > 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.
>
> I'm pretty sure this wont work on IDE unless someone fixed the IDE code
> in kernel recently. Is this the case?
Unfortunately I went and used up all the space on my new disk, so
I can't easily test this right now. Maybe if I dig up the old disk and
plug it in. This is a laptop, so that's harder than with a desktop...
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Creating partition devices after creating a partition on a harddisk?
2006-02-23 11:14 Creating partition devices after creating a partition on a harddisk? Anssi Saari
` (2 preceding siblings ...)
2006-02-27 15:52 ` Creating partition devices after creating a partition on a harddisk? Anssi Saari
@ 2006-02-27 18:34 ` Andrey Borzenkov
3 siblings, 0 replies; 5+ messages in thread
From: Andrey Borzenkov @ 2006-02-27 18:34 UTC (permalink / raw)
To: linux-hotplug
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 27 February 2006 17:18, David Zeuthen wrote:
> On Thu, 2006-02-23 at 14:32 +0300, Andrey Borzenkov wrote:
> > 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.
>
> I'm pretty sure this wont work on IDE unless someone fixed the IDE code
> in kernel recently. Is this the case?
>
Well, it fails if some partition is mounted or otherwise busy, but this is not
IDE specific. What makes IDE so different?
- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
iD8DBQFEA0ZAR6LMutpd94wRAq5IAKCouLLqln/ONDDaxGfBeHuck0E1CgCeMjC0
Fy7ahI9u3U3LrMeCYEnrKoI=lLc2
-----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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-02-27 18:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-23 11:14 Creating partition devices after creating a partition on a harddisk? Anssi Saari
2006-02-23 11:32 ` Andrey Borzenkov
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
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).