好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > CentOS下添加新硬盤并分區格式化的詳細步驟

CentOS下添加新硬盤并分區格式化的詳細步驟

熱門標簽:省份地圖標注 平頂山手機自動外呼系統違法嗎 陽江智能電銷機器人 江蘇客服外呼系統怎么樣 辦理400電話怎么劃傷 南寧銷售電銷機器人廠家 灰谷地圖標注 科研地圖標注 地圖標注軌跡
下面看我操作的步驟:
1.先用Fdisk -l 來查看當前狀態下磁盤情況
 
[root@linux1 ~]# fdisk -l
Disk /dev/hda: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 652 5132767 8e Linux LVM
Disk /dev/hdb: 2147 MB, 2147483648 bytes
16 heads, 63 sectors/track, 4161 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk /dev/hdb doesn't contain a valid partition table
上面紅色標識行可以看出,我添加了一塊新硬盤/dev/hdb,大小為2G,未分區格式化狀態。
 
2.用Fdisk /dev/hdb來進行分區操作。
 
[root@linux1 ~]# fdisk /dev/hdb
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 4161.
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): n //輸入N表示新建一個分區
Command action
e extended
p primary partition (1-4)
p //p 表示建立一個原始分區
Partition number (1-4): 1 //1 表示此分區編號為1.
First cylinder (1-4161, default 1): 1 //1表示使用默認起始柱面號.如果要分多個區的話,先盤算好要多大,再輸入數字
Last cylinder or size or sizeM or sizeK (1-4161, default 4161): // 輸入: 回車 表示使用默認結束柱面號.即此分區使用整個硬盤空間
 
Using default value 4161
 
Command (m for help): w //保存分區
 
The partition table has been altered!
 
Calling ioctl() to re-read partition table.
Syncing disks.
 
3.再次查看當前分區狀態:
[root@linux1 ~]# fdisk -l
 
Disk /dev/hda: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 652 5132767 8e Linux LVM
 
Disk /dev/hdb: 2147 MB, 2147483648 bytes
16 heads, 63 sectors/track, 4161 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
 
Device Boot Start End Blocks Id System
/dev/hdb1 1 4161 2097112 83 Linux
可以看出,已經出來了一個/dev/hdb1的新分區。下一步將其格式化,再使用
 
4.用mkfs.ext3格式化新分區
[root@linux1 ~]# mkfs.ext3 /dev/hdb1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
262144 inodes, 524278 blocks
26213 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=536870912
16 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
 
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
 
This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
 
5.掛載使用。
[root@linux1 ~]# mkdir /mnt/hdb1 //新建一個掛載點。
[root@linux1 ~]# mount /dev/hdb1 /mnt/hdb1 //掛載。
[root@linux1 ~]# df -h
文件系統 容量 已用 可用 已用% 掛載點
/dev/mapper/VolGroup00-LogVol00
4.3G 3.6G 487M 89% /
/dev/hda1 99M 12M 82M 13% /boot
tmpfs 125M 0 125M 0% /dev/shm
/dev/hdb1 2.0G 3.0M 1.9G 1% /mnt/hdb1
 
6 .開機自動掛載
三.設置新硬盤開機自動掛載
在vi /etc/fstab中添加新硬盤的掛載信息.添加下面一行:
/dev/hdb1 /mnt/hdb1 ext3 defaults 1 2(如果還有一個分區就是1 3,以此類推)
這樣,每次開機后,系統會自動將/dev/hdb1掛載到/mnt/hdb1

標簽:臨汾 通化 瀘州 泰安 蕪湖 玉樹 儋州 玉溪

巨人網絡通訊聲明:本文標題《CentOS下添加新硬盤并分區格式化的詳細步驟》,本文關鍵詞  CentOS,下,添加,新硬盤,新,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《CentOS下添加新硬盤并分區格式化的詳細步驟》相關的同類信息!
  • 本頁收集關于CentOS下添加新硬盤并分區格式化的詳細步驟的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 131美女爱做免费高清视频| 韩漫被?到爽??流漫画魔镜动漫| 男女啪啪做爰高潮全过程图片漫画 | 国产综合精品办公室沙发| 天天碰天天摸天天操| 重生七零小辣媳| 免费被黄动漫网站在线无网观看| 无码av亚洲一区二区毛片公司| 帥體生自擼GV视频在线观看 | 在线精品一区二区三区电影| 99久久精品免费视频| 大地资源在线观看视频在线观看| 美女脱内衣和内裤没有衣服| 娇妻出轨爽文100系列| 91丝袜白浆高潮潮喷在线观看| 欧美精品h版电影一区| 久久国产乱子伦精品岳两| 色www亚洲国产张柏芝| 小妖精ji巴cao死你| 久久久久久精品无码一区二区| 疯狂的大巴车| 国产女人18毛片水真多1| 催眠放荡老师丝袜高跟鞋视频| 欧美色影院| 日本欧美国产精品第一页久久| 岳后面菊眼被弄肿了| 两个男的打扑克| 装修工让我变gay| 巜社长与人妻秘书HD在线| 欧美亚洲综合图区偷窥| 91久久精品都在这里| 激情欧美成人狠狠色金八天国| 在线看黄免费| 国产精品秘?糖心传媒麻豆| 美国一级毛片oo| 91av观看| 日本三级无码18???苍井空| 欧美日韩精品AV无码245期| 欧美另类videos| 成人精品美女隐私视频| 在线观看视频一区二区三区|