What should I do if the Linux system formats the partition and prompts Could not start /dev?

  

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

Copyright © Windows knowledge All Rights Reserved