HowTo: Reload (re-read) Partition Table In Ubuntu Linux

by on May 25, 2010 · 9 comments· LAST UPDATED May 25, 2010


How do I reload the partition table in Ubuntu Linux without rebooting the systems?

You need to install the parted package as follows
sudo apt-get update
sudo apt-get install parted

Once installed type the following command to re-read / reload the partition:
sudo partprobe
Finally, use mkfs.ext3 or mkfs.ext4 to create the file systems:
sudo mkfs.ext3 /dev/sdXY
Make sure you replace /dev/sdXY with actual device name and be careful do not type wrong device same. You may end up destroying working data. Please note that on server with RAID and SAS disk you may need to type the following command to rescan changes:
sudo echo 1 > /sys/block/sdd/device/rescan
sudo fdisk -l
sudo mkfs.ext3 /dev/sdXY

Again replace sdd with actual device name. Please note that above commands should work with all Linux distributions.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 9 comments… read them below or add one }

1 Swapneel May 25, 2010 at 8:44 pm

Strange, Ubuntu doesn’t come with partprobe by default. RPM based distros like Redhat, Fedora and CentOS have it by default.


2 Nilesh May 27, 2010 at 4:28 am

Not only RPM, even Arch Linux and others if you use the default installation configuration.

Ubuntu, Debian has always been weird and different from others !! :)^

One who is used to RPM and others will have a tough time migrating to Debain/Ubuntu and vice-versa as it happened to me, though not migrating. Had to help a friend setup his Ubuntu VPS.


3 Anonymous June 2, 2010 at 12:11 am

sudo hdparm -z


4 Mr. Pink June 2, 2010 at 12:14 am

sudo hdparm -z
You linux people have to do everything through the rectum. The more complicated the better.


5 Anders June 10, 2010 at 6:34 pm

You might want to tell “us” how it should be done.


6 Mr. Pink October 3, 2011 at 12:53 am

In the era of multicore multiGHz CPUs, multiGB RAM and multiTB hard drives you would think that Linux could handle it autoFUCKINGmaticaly.
Can you imagine how many man/hours around the world are wasted on doing this by hand, while system could do it in a fraction of a second. So here. Now I told how it should be done. Do you think it took a lot of brain power? You could probably come up with it on your own, but then again you’re Linux user. It’s all about being a slave to your computer, isn’t it?


7 Anders October 4, 2011 at 3:53 am

Sorry, but you still have to tell. HOW to do it without causing any other problem, like losing data.
What you have done here is just been ranting like you actually know HOW to do this. But you have just told us how you WANT it to be done, not HOW it actually NEEDS to be done, without losing any data.
But I guess it is easier to produce hot air then actually producing a sollution and/or some real code…


8 mark October 22, 2010 at 10:24 am



9 xew March 24, 2011 at 11:07 am

I don’t think this works :
sudo echo 1 > /sys/block/sdd/device/rescan

You have to start a new shell with sudo, like this :
sudo bash -c “echo 1 > /sys/block/sdd/device/rescan”

Otherwise only echo is done with sudo permissions. The redirection “>” is done by your current shell which does not have sudo permissions.


Leave a Comment

Tagged as: , , , , , , , , , , , , ,

Previous Faq:

Next Faq: