linux分区报错解决办法

来源:互联网 发布:病房网络瘫痪应急预案 编辑:程序博客网 时间:2024/05/29 12:01
[root@localhost ~]# fdisk -l

Disk /dev/sda: 32.6 GB, 32662945792 bytes
255 heads, 63 sectors/track, 3971 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        1318    10482412+  83  Linux
/dev/sda3            1319        1579     2096482+  82  Linux swap / Solaris
/dev/sda4            1580        3971    19213740   83  Linux
[root@localhost ~]# mkfs.ext3 /dev/sda4
mke2fs 1.39 (29-May-2006)
Could not stat /dev/sda4 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
[root@localhost ~]# partprobe
[root@localhost ~]# mkfs.ext3 /dev/sda4
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2403744 inodes, 4803435 blocks
240171 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
147 block groups
32768 blocks per group, 32768 fragments per group
16352 inodes per group
...后面省略一万字大笑
0 0
原创粉丝点击