Disk Partitioning With fdisk Linux分区

Reference: http://www.liquidweb.com/kb/disk-partitioning-with-fdisk-2/

1. 显示 disk 信息
命令: fdisk -l
或: parted -l (以G为单位进行显示)
或: df -h

2. 选择目标disk
命令: fdisk /dev/sda
名称可能因disk而异

3. 进入 fdisk后,
– 新建,输入: n
– 选择primary 输入: p
– set partition number, 输入1 – 4:

-选择First cylinder (6375-19581, default 6375):
一般直接输入回车,选择default

– 选择last cylinder Last cylinder, +cylinders or +size{K,M,G} (6375- 19581, default 19581):
可输入回车选择default,或者自己定义大小再回车

– 查看 当前设置, 输入: p

– 确认无误, write 输入: w

5. 无误后, reboot

3 Responses so far.

  1. quest bars says:
    Very good post. I absolutely appreciate this website.
    Keep it up!
  2. quest bars says:
    Everything posted made a lot of sense. But, what about this?
    suppose you added a little information?
    I mean, I don’t wish to tell you how to run your website, but what if you added a
    post title that makes people desire more? I mean Disk Partitioning With fdisk Linux分区 – Huang Shiyang is kinda boring.
    You could peek at Yahoo’s home page and note how they create article
    titles to get people interested. You might add a video or a related
    picture or two to get people interested about what you’ve written. In my opinion, it might make your website a little bit more interesting.
  3. You can definitely see your skills in the paintings you write. The arena hopes for more passionate writers such as you who are not afraid to say how they believe. All the time go after your heart. “The most profound joy has more of gravity than of gaiety in it.” by Michel de Montaigne.

Leave a Reply to quest bars Cancel reply