在线精品99_中国九九盗摄偷拍偷看_91免费版在线观看_91.app_91高清视频在线_99热最新网站

Linux下怎么用fdisk进行分区

140次阅读
没有评论

共计 1963 个字符,预计需要花费 5 分钟才能阅读完成。

这篇文章主要为大家展示了“Linux 下怎么用 fdisk 进行分区”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让丸趣 TV 小编带领大家一起研究并学习一下“Linux 下怎么用 fdisk 进行分区”这篇文章吧。

当你在 Linux 服务器上装上全新的硬盘后,你需要用类似 fdisk 这样的工具进行相应的分区。

fdisk 中相应的提供 5 种基本操作:

o n ndash; 创建新分区  
o d ndash; 删除一个已有的分区  
o p ndash; 打印现有的分区表  
o w ndash; 把改动写入到分区表,也就是保存. 
o q ndash; 离开 fdisk

创建新分区

在下面的例子中, 我创建了主分区 /dev/sda1

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

# fdisk /dev/sda

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won t be recoverable. The number of cylinders for this disk is set to 34893. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): p

Disk /dev/sda: 287.0 GB, 287005343744 bytes

255 heads, 63 sectors/track, 34893 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Command (m for help): n

Command action

e extended

p primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-34893, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-34893, default 34893):

Using default value 34893

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

确认分区是否创建成功

1

2

3

4

5

6

7

8

9

10

11

12

# fdisk /dev/sda

The number of cylinders for this disk is set to 34893.

There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 287.0 GB, 287005343744 bytes

255 heads, 63 sectors/track, 34893 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sda1 1 34893 280277991 83 Linux

Command (m for help): q

以上是“Linux 下怎么用 fdisk 进行分区”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注丸趣 TV 行业资讯频道!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-08-25发表,共计1963字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)
主站蜘蛛池模板: 日本免费一区二区三区在线看 | 尤物在线观看网站 | 久久男人天堂 | 久爱无码精品免费视频在线观看 | sihu免费观看在线高清 | 2021色噜噜狠狠综曰曰曰 | 日本三级视频网站 | aaa一级黑人毛片 | 羞羞答答91麻豆网站入口 | 天天拍久久 | 国模少妇一区二区三区 | 亚洲天堂久久 | 波多野结衣爽到高潮大喷 | 91小视频在线播放 | 婷婷97狠狠的狠狠的爱 | 国产无遮挡裸体免费视频在线观看 | 日本尤物精品视频在线看 | 99re8热精品免费视频 | 国产伦精品一区二区三区免费 | 少妇人妻偷人激情视频 | 久久香蕉国产观看猫咪3atv | 四虎影视免费观看高清视频 | 国产91精品久久久久久久 | 久久露脸国产精品 | 亚洲精品中文字幕乱码一区二区 | 国产成人精品一区二区视频 | 老色鬼 欧美精品 | 中国一级特黄真人毛片 | 成人免费777777被爆出 | 亚洲精品成人一区二区www | 国产成人精品123区免费视频 | 亚洲精品无码成人a片 | 亚洲性夜色噜噜噜在线观看不卡 | 国产真实伦视频在线视频 | 精品国产乱码久久久久久鸭王1 | 日本伦理网站 | 亚洲一区综合在线播放 | 亚洲精品成人在线 | 黑人巨大无码中文字幕无码 | 日本人一级大毛片 | 欧美人人|