Fdisk-l can't find partition what to do? Try to find the hidden partition.

Source: Internet
Author: User

centos6.6 Install the system, select the system default partition. Installed after the discovery of a large part of the space, through the fdisk-l can not find the partition, in addition to use parted-l also can not find the missing cylinder.

Such as:

[Email protected]]# fdisk-Ldisk/DEV/SDA:1198.0GB,1197998080000bytes255Heads theSectors/track,145648cylindersunits= Cylinders of16065* +=8225280bytessector size (logical/physical): +Bytes/4096Bytesi/o Size (minimum/optimal):4096Bytes/4096bytesdisk Identifier:0x0009600cDevice Boot Start End Blocks Id System/DEV/SDA1 *1           -      204800    thelinuxpartition1does not end on cylinder boundary./dev/sda2 -       15324   122880000    theLinux/dev/sda315324       15961     5120000    theLinux Swap/Solaris[[email protected]]# parted-Lmodel:lsi Logical Volume (SCSI) Disk/dev/sda:1198gbsector size (logical/physical): 512b/4096BPartition table:msdosnumber Start End Size Type File system Flags11049kB 211MB 210MB primary EXT4 boot2211MB 126GB 126GB primary EXT43126GB 131GB 5243MB Primary Linux-swap (v1)

Since we can't find the rest of the space, let's recreate the partition!

parted/dev/Sdagnu Parted2.1Using/dev/sdawelcome to GNU Parted! Type' Help'To view a list of commands.  (parted) Mkpart Partition type? Primary/logical?p File System type? [Ext2]?Ext4 Start? 5244MB End?- 1s # The last sector of the hard drive, at the end of the hard disk warning:you requ                 Ested a partition from 5244MB to 1198GB. The closest location we can manage are 131GB to 1198GB. Is this still acceptable?Yes/no?y Warning:WARNING:the kernel failed to re-read the partition Table on/dev/SDA (Device or resource busy). As Aresult, it may not be reflect all of your changesuntilAfter reboot. (parted) Q information:you may need to update/etc/fstab.

Then Fdisk-l has discovered the new partition. If the new partition cannot be mounted, format it first: MKFS.EXT4/DEV/SDA4

Fdisk-l can't find partition what to do? Try to find the hidden partition.

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.