LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 03-19-2002, 05:02 AM   #1
sourceman
Member
 
Registered: Feb 2002
Posts: 48

Rep: Reputation: 15
Question 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?
 
Old 03-19-2002, 05:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why would you want to??
 
Old 03-19-2002, 05:26 AM   #3
sourceman
Member
 
Registered: Feb 2002
Posts: 48

Original Poster
Rep: Reputation: 15
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.
 
Old 03-19-2002, 10:13 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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.
 
Old 06-29-2007, 08:22 AM   #5
uplink
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Rep: Reputation: 0
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
 
Old 06-29-2007, 08:42 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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....
 
Old 06-30-2007, 03:59 AM   #7
uplink
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Rep: Reputation: 0
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.
 
Old 08-01-2007, 08:07 AM   #8
Hottbuttaz
LQ Newbie
 
Registered: Aug 2007
Posts: 1

Rep: Reputation: 0
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.
 
Old 08-01-2007, 08:41 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
Old 08-02-2007, 04:55 PM   #10
uplink
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Rep: Reputation: 0
Exclamation

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
 
Old 01-10-2008, 04:29 AM   #11
olo
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
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:
partprobe
 
Old 01-10-2008, 04:31 AM   #12
olo
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
If you have sfdisk you can also do this:

Quote:
sfdisk -R /dev/DISK_DEVICE_TO_REREAD_FROM
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10 can't read my partition table... robza Mandriva 3 04-13-2004 11:58 AM
Mandrake 10 install can't read partition table chessh Mandriva 7 03-14-2004 08:35 PM
Knoppix can't read partition table sb73542 Linux - General 1 10-13-2003 09:55 AM
LFS compiled kernel can't read partition table curtdodds Linux From Scratch 6 08-05-2003 09:50 PM
Unable To Re-Read The Partition Table? EMF9 Linux - General 13 12-08-2002 06:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration