In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "what to do with the warning message when using the fdisk command to partition in Linux". In the daily operation, I believe that many people have doubts about what to do when they use the fdisk command to partition in Linux. The editor consulted all kinds of materials and sorted out a simple and useful method of operation. I hope it will be helpful for you to answer the question of "what to do when you use the fdisk command to partition in Linux?" Next, please follow the editor to study!
When you use the fdisk command to partition in Linux, you sometimes encounter "WARNING: Re-reading the partition table failed with error 16: Device or resource busy.The kernel still uses the old table.The new table will be used at the next reboot." This kind of alarm message. As shown below
[root@localhost ~] # fdisk / dev/sde
The number of cylinders for this disk is set to 18928.
There is nothing wrong with that, but this is larger than 1024
And could in certain setups cause problems with:
1) software that runs at boot time (e.g.old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): P
Disk / dev/sde: 155.6 GB, 155692564480 bytes
255 heads, 63 sectors/track, 18928 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/ dev/sde1 1 18275 146793906 5 Extended
/ dev/sde5 1 18275 146793874 + 83 Linux
Command (m for help): n
Command action
L logical (5 or over)
P primary partition (1-4)
P
Partition number (1-4): 2
First cylinder (18276-18928, default 18276):
Using default value 18276
Last cylinder or + size or + sizeM or + sizeK (18276-18928, default 18928):
Using default value 18928
Command (m for help): W
The partition table has been altered!
Calling ioctl () to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
The newly created partition information can not be seen by using the fdisk command at this time, so you can use the partprobe command to solve this problem without rebooting the system, because partprobe can make kernel read the partition information again, thus avoiding restarting the system.
Partprobe-inform the OS of partition table changes
DESCRIPTION
This manual page documents briefly the partprobe command.
Partprobe is a program that informs the operating system kernel of partition table changes, by requesting that the operating system re-read the partition table.
At this point, the study on "what to do when there is a warning message when using the fdisk command in Linux" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.