91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Linux下怎么用fdisk進行分區

發布時間:2021-10-27 10:35:06 來源:億速云 閱讀:165 作者:小新 欄目:系統運維

這篇文章主要為大家展示了“Linux下怎么用fdisk進行分區”,內容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領大家一起研究并學習一下“Linux下怎么用fdisk進行分區”這篇文章吧。

當你在Linux服務器上裝上全新的硬盤后,你需要用類似 fdisk 這樣的工具進行相應的分區。

fdisk中相應的提供5種基本操作:

o n – 創建新分區 
o d – 刪除一個已有的分區 
o p – 打印現有的分區表 
o w – 把改動寫入到分區表,也就是保存. 
o q – 離開 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進行分區”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注億速云行業資訊頻道!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

承德市| 西昌市| 海淀区| 陵川县| 互助| 新兴县| 阳江市| 永康市| 吉木乃县| 北碚区| 连南| 石城县| 慈利县| 页游| 文成县| 韶关市| 玛多县| 晋城| 鹤岗市| 海林市| 安乡县| 巨野县| 沭阳县| 方正县| 台中市| 华坪县| 沂南县| 林西县| 岐山县| 十堰市| 晋城| 北海市| 武平县| 密云县| 得荣县| 安泽县| 临夏市| 永济市| 株洲县| 普格县| 乃东县|