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.
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












{ 9 comments… read them below or add one }
Strange, Ubuntu doesn’t come with partprobe by default. RPM based distros like Redhat, Fedora and CentOS have it by default.
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.
sudo hdparm -z
sudo hdparm -z
You linux people have to do everything through the rectum. The more complicated the better.
You might want to tell “us” how it should be done.
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?
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…
thanks!
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.