Re-read Partition Table
If you run fdisk, change something, and then exit fdisk, is prints something like "calling sysctl to re-read partition table".
How can I force a re-read by calling /sbin/sysctl, instead of using fdisk? |
why would you want to??
|
It's a long story... basically, i'm modifying a bunch of partitions, checking them, maybe formatting them, whatever.
The point is, it's not updating until I reset. I know sysctl can save me this reset. |
man sysctl will get you a lot further. Basically you can modify lots of things with sysctl. I don't know which variables fdisk modifies. But with sysctl -a you get a list of all the available variables you can modify.
Last time I physically changed my partition table I remember getting a message from fdisk to reboot before it would update the changes. But maybe that was an older version of fdisk. |
Since this post appears second on Google and searching for "Reread partition table" and the replies are totally off (at least today they are), I feel obligated to post an answer:
/sbin/blockdev --rereadpt /dev/hda |
Quote:
|
Quote:
|
Quote:
In internet forum vernacular, a winky yellow smiley face is used to denote a playful comment or joke. In accusing pixellany of trolling you are actually the one trolling by further derailing the topic and inviting him to defend himself against an unjust accusation. :tisk: :tisk: :tisk: |
And I would never know that I had been unjustly accused unless Hottbuttaz had lept to my defense!!!!!
Nothing here matches the definition of "trolling" as commonly used. Pointless levity--perhaps..... We'll watch for uplink's sense of humor to improve after experiencing the full range of silliness that appears in LQ. |
Quote:
|
Don't lock the thread yet!
There's more than one way to re-read the partition table. If you have parted installed, you can use this command: Quote:
|
If you have sfdisk you can also do this:
Quote:
|
All times are GMT -5. The time now is 06:03 AM. |