Solve the problem when formatting the file system in Linux

Source: Internet
Author: User
An error occurred while formatting the file system in Linux. solution: an error occurred while formatting a partition in VMware: # mkfs. ext3/dev/sda2mke2fs1.40.8 (13-Mar-2008) mkfs. ext3: inode_size (128) * inodes_count (0) toobigforafilesystem... an error occurred while formatting the file system in Linux. solution: an error occurred while formatting a partition in VMware: # mkfs. ext3/dev/sda2 mke2fs 1.40.8 (13-Mar-2008) mkfs. ext3: inode_size (128) * inodes_count (0) too big for a filesystem with 0 blocks, specify higher inode_ratio (-I) or lower inode count (-N ). how can this problem be solved? Ten minutes later, I solved the problem like this: first, let's take a look at why we need to add a hard disk: when I installed Fedora, I used a VM and used three virtual hard disks, A 6 GB system is mounted to the/directory, a 1 GB system is mounted to the SWAP partition, and a 15 GB hard disk is mounted to the/work directory to store code data. After the system is installed, the/partition has only a little disk space. So I thought I could not use the VMware tool to increase the disk capacity. After Linux is turned off, you can re-adjust the disk size in setting on the menu bar of the VM. However, it is prompted that the extra space needs to be re-partitioned. I will increase the root partition of 6 GB to 8 GB, later, I learned that the root directory is not mounted. I used the fdisk command to add a partition. I mounted it to/opt. At first, I added an expand partition/sda2. During formatting, the above error always pops up. then I searched the internet, it seems that Anpartitio extended n does not really exist and takes up almost zero space on your drive. its a software hack to get around the four partition limit. all it does is to reserve some space on the drive in which you create logical partitions to use the pace. make some more partitions. it seems that expand formatting is meaningless because it serves the logical partition and they are of the same size. In a hard disk, you can only create four partiton at most, including the primary partition and expand partition, while an expand partition can create multiple logical partition, which uses space in the logical partition. Then I created a logical partition/sda5, which may need to be restarted. If the restart is troublesome, enter the partprobe command, which allows the kernel to obtain the partition table information again. You can use mount later. if mount is not available, it is generally a file system and the format is incorrect.
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.