When formatting Linux partitions, many people have encountered a tough problem, suggesting that Could not stat /dev/sda7 --- No such fileor directory error, then there is any way to solve the error of Linux formatted partition What about the problem?
Linux has good points View area
[root @ linuxidc ~] # fdisk -l /dev /sda
Disk /dev /sda: 21.5 GB , 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280bytes
Sector size (logical/physical): 512 bytes /512 bytes
I/O size (minimum/optimal): 512 bytes /512bytes
Disk identifier: 0x7d57cb1f
Device Boot Start End Blocks Id System
/dev/sda1 1 2610 20964793+ 5 Extended
/dev/sda5 1 128 1028097 83 Linux
/dev/sda6 129 256 1028128+ 83 Linux
/Dev/sda7 257 384 1028128+ 83 Linux
When formatting a new partition, an error is reported, indicating the following error, without this file or directory.
Could not stat /dev/sda7 --- No such fileor directory
The device apparently does not exist; didyou specify it correctly?
[root@linuxidc ~]# mke2fs -t ext4 /dev/sda7
mke2fs 1.41.12 (17-May-2010)
Could not stat /dev/Sda7 --- No such fileor directory
The device apparently does not exist; didyou specify it correctly?
Workaround:
Execute the partprobe command
The partprobe is included in the parted rpm package.
Partprobe can modify the partition table in the kernel to make the kernel re-read the partition table.
Therefore, you can use this command to create partitions and identify them without rebooting the machine.
Check if the command has been installed:
[root@linuxidc~]# rpm -q parted
packageparted is not installed
The prompt has not been installed , you need to install parted
Installation command: #yum install parted #Premise is to ensure that your virtual machine can access the Internet, download the installation package from the network
[root@linuxidc~]# yum install Parted
Loadedplugins: fastestmirror
1234567 Loadingmirror speeds from cached hostfile
* base: mirrors.skyshe.cn
* extras: mirrors.skyshe.cn
* updates: mirrors.skyshe.cn
base |
3.7 kB 00:00
extras |
3.3 kB 00:00
updates |
3.4 kB 00:00
Settingup Install Process
ResolvingDependencies
--"Running transaction check
---"Package parted.i686 0:2.1 -25.el6 will be installed
--"Finished Dependency Resolution
DependenciesResolved
Package Arch Version Repository Size
Previous12Next Total 2 Pages
In Windows, there is a multi-window mode that divides the screen into two equal parts, 4, but you wa
Linux system If you want to understand the load between multiple database servers, then you will use
In Linux, many people dont understand the meaning of the variable parameter $ in th
The system needs to clean up the contents of the log file for a long time, but sometimes the log fil
Ubuntu compile and install Hypertable method
Linux uses GRUB to add kernel parameters
How to use clam antivirus antivirus in Linux
What is optimized for Linux kernel 4.2?
Linux system hard disk failure repair method
How to set up the program to boot from Debian
Linux tips for modifying tab widths
Ubuntu PHP encoding error does not prompt how to solve?
How to deal with the problem of starting weblogic server error in Linux
How does the Linux system redirect data streams?
How to use cgroups to manage CPU resources under Linux
Ubuntu 12.04 system boot space is insufficient to delete the old kernel
Solve ntp error no server suitable for synchronization found
Reasons for the failure to delete files and suggestions (1)
Time synchronization in WinXP SP2
How to write a virus with Visual Basic
In the win7 computer login 163 mailbox appears 0xc06d007e error prompt how to do?
Install Win10 Update KB3124200 Appears 8024041a Error Solution
Win7 how to system quick screenshot
How Win8/WinRT uses files and folders
Win10 Preview 10147: Edge Browser Support Label Drag and Drop
How to get DNF rabbit biscuits DNF rabbit biscuits get the strategy and use