国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

Linux 使用fdisk添加新分區

2024-06-28 13:24:47
字體:
來源:轉載
供稿:網友
linux 使用fdisk添加新分區 2014-08-14 22:31 by 瀟湘隱者, ... 閱讀, ... 評論, 收藏, 編輯

Linux系統由于數據累計增長、前期存儲規劃不合理等諸多因素,出現存儲不夠用的情況時,此時就需要擴展邏輯分區或添加新的邏輯分區。下面介紹一下通過使用fdsik添加新的邏輯分區。

首先使用df命令檢查文件系統的磁盤空間占用情況

[root@DB-ONE-SERVER~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-sda3
                       30G  2.4G   26G   9% /
/dev/sda1              99M   23M   71M  25% /boot
tmpfs                 4.0G     0  4.0G   0% /dev/shm
You have new mail in /var/spool/mail/root

然后使用fdisk -l查看分區表信息

[root@DB-ONE-SERVER~]# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        5221    41833260   8e  Linux LVM
Disk /dev/sdb: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/dm-0: 32.3 GB, 32346472448 bytes
255 heads, 63 sectors/track, 3932 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 10.4 GB, 10468982784 bytes
255 heads, 63 sectors/track, 1272 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-1 doesn't contain a valid partition table

fdisk命令參數介紹

p、打印分區表。

n、新建一個新分區。

d、刪除一個分區。

m、輸出菜單

q、退出不保存。

w、把分區寫進分區表,保存并退出。

[root@DB-ONE-SERVER~]# fdisk /dev/sdb
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 2610.
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): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 客服| 曲麻莱县| 珲春市| 崇阳县| 湛江市| 金塔县| 道孚县| 三明市| 井冈山市| 广水市| 浦江县| 石河子市| 秭归县| 隆安县| 广宗县| 金秀| 交城县| 许昌市| 南澳县| 舒兰市| 山东| 绩溪县| 奉新县| 唐山市| 延安市| 鄱阳县| 南通市| 天峨县| 香港 | 阳信县| 沿河| 会东县| 香港 | 沛县| 贞丰县| 河源市| 卓资县| 鄄城县| 柞水县| 弋阳县| 阜新|