Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-19-2002, 05:02 AM
|
#1
|
Member
Registered: Feb 2002
Posts: 48
Rep:
|
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?
|
|
|
03-19-2002, 05:11 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
why would you want to??
|
|
|
03-19-2002, 05:26 AM
|
#3
|
Member
Registered: Feb 2002
Posts: 48
Original Poster
Rep:
|
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.
|
|
|
03-19-2002, 10:13 AM
|
#4
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
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.
|
|
|
06-29-2007, 08:22 AM
|
#5
|
LQ Newbie
Registered: Jun 2007
Posts: 3
Rep:
|
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
|
|
|
06-29-2007, 08:42 AM
|
#6
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
Quote:
Originally Posted by uplink
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
|
In addition to your good deed, you get the prize for unearthing the oldest thread.... 
|
|
|
06-30-2007, 03:59 AM
|
#7
|
LQ Newbie
Registered: Jun 2007
Posts: 3
Rep:
|
Quote:
Originally Posted by pixellany
In addition to your good deed, you get the prize for unearthing the oldest thread.... 
|
This is offtopic, but the thread did show up as second on Google (so I'm not unearthing it, because it's not dead an burried, but walking the streets just fine), and I'm pretty damn mad about threads that show up on top but their contents is totally useless. So far, I haven't encountered a better idea except "unearthing". Let's stop the trolling here please.
|
|
|
08-01-2007, 08:07 AM
|
#8
|
LQ Newbie
Registered: Aug 2007
Posts: 1
Rep:
|
Quote:
Originally Posted by uplink
Let's stop the trolling here please.
|
Dear uplink,
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. 
|
|
|
08-01-2007, 08:41 AM
|
#9
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
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.
|
|
|
08-02-2007, 04:55 PM
|
#10
|
LQ Newbie
Registered: Jun 2007
Posts: 3
Rep:
|
Quote:
Originally Posted by Hottbuttaz
Dear uplink,
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. 
|
Next time I'll use quotes where appropriate. This thread is screwed by now though... Pity. Anyone want to delete everything after the real answer? And lock the thread afterwards 
|
|
|
01-10-2008, 04:29 AM
|
#11
|
LQ Newbie
Registered: Jan 2008
Posts: 2
Rep:
|
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:
|
|
|
01-10-2008, 04:31 AM
|
#12
|
LQ Newbie
Registered: Jan 2008
Posts: 2
Rep:
|
If you have sfdisk you can also do this:
Quote:
sfdisk -R /dev/DISK_DEVICE_TO_REREAD_FROM
|
|
|
|
All times are GMT -5. The time now is 06:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|