欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

如何在TurboLinux11中添加新硬盤(pán)

本篇內(nèi)容主要講解“如何在TurboLinux11中添加新硬盤(pán)”,感興趣的朋友不妨來(lái)看看。本文介紹的方法操作簡(jiǎn)單快捷,實(shí)用性強(qiáng)。下面就讓小編來(lái)帶大家學(xué)習(xí)“如何在TurboLinux11中添加新硬盤(pán)”吧!

網(wǎng)站設(shè)計(jì)制作過(guò)程拒絕使用模板建站;使用PHP+MYSQL原生開(kāi)發(fā)可交付網(wǎng)站源代碼;符合網(wǎng)站優(yōu)化排名的后臺(tái)管理系統(tǒng);成都網(wǎng)站設(shè)計(jì)、做網(wǎng)站、成都外貿(mào)網(wǎng)站建設(shè)公司收費(fèi)合理;免費(fèi)進(jìn)行網(wǎng)站備案等企業(yè)網(wǎng)站建設(shè)一條龍服務(wù).我們是一家持續(xù)穩(wěn)定運(yùn)營(yíng)了十年的成都創(chuàng)新互聯(lián)網(wǎng)站建設(shè)公司。

一.Linux的硬盤(pán)識(shí)別

2.6 kernel以后,linux會(huì)將識(shí)別到的硬件設(shè)備,在/dev/下建立相應(yīng)的設(shè)備文件.如:

sda	表示第1塊SCSI硬盤(pán).
hda	表示第1塊IDE硬盤(pán)(即連接在第1個(gè)IDE接口的Master口上).
scd0	表示第1個(gè)USB光驅(qū).

當(dāng)添加了新硬盤(pán)后,在/dev目錄下會(huì)有相應(yīng)的設(shè)備文件產(chǎn)生.cciss的硬盤(pán)是個(gè)例外,它的
設(shè)備文件在/dev/cciss/目錄下.一般使用”fdisk -l”命令可以列出系統(tǒng)中當(dāng)前連接的硬盤(pán)
設(shè)備和分區(qū)信息.新硬盤(pán)沒(méi)有分區(qū)信息,則只顯示硬盤(pán)大小信息.
 

二.在linux系統(tǒng)中添加新硬盤(pán)

下面說(shuō)明一下,在GTES 11上,添加一塊10G硬盤(pán)到第一個(gè)IDE口的Slave接口上.
 

安裝好硬盤(pán)后,開(kāi)機(jī)進(jìn)入Turbolinux.以root身份登錄.
執(zhí)行fdisk -l命令顯示當(dāng)前系統(tǒng)的硬盤(pán)設(shè)備.
 

[root@g11-64-1 ~]# fdisk -l

Disk /dev/hda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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          89      610470   82  Linux swap / Solaris
/dev/hda3              90        2610    20249932+  83  Linux

Disk /dev/hdb: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdb doesn't contain a valid partition table
[root@g11-64-1 ~]#

顯示hdb沒(méi)有分區(qū)信息,大小為10G.
使用fdisk命令對(duì)hdb進(jìn)行分區(qū).
 

[root@g11-64-1 ~]# 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 1305.
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)

輸入: n 表示新建分區(qū).

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
輸入: p 表示建立一個(gè)原始分區(qū).
p
Partition number (1-4): 1
輸入: 1 表示此分區(qū)編號(hào)為1.
First cylinder (1-1305, default 1):
輸入: 回車 表示使用默認(rèn)起始柱面號(hào).
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305):
輸入: 回車 表示使用默認(rèn)結(jié)束柱面號(hào).即此分區(qū)使用整個(gè)硬盤(pán)空間.
Using default value 1305

Command (m for help): w
輸入: w 存盤(pán),退出fdisk.
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

再使用fdisk -l命令查看分區(qū)情況.
 

[root@g11-64-1 ~]# fdisk -l

Disk /dev/hda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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          89      610470   82  Linux swap / Solaris
/dev/hda3              90        2610    20249932+  83  Linux

Disk /dev/hdb: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1        1305    10482381   83  Linux

顯示/dev/hdb上有一個(gè)hdb1分區(qū),為linux格式.
分區(qū)后,需要對(duì)這個(gè)分區(qū)進(jìn)行格式化.
 

[root@g11-64-1 ~]# 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)
1310720 inodes, 2620595 blocks
131029 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2684354560
80 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

將新建分區(qū)掛在到/mnt/hdb1上.
 

[root@g11-64-1 ~]# mkdir /mnt/hdb1
[root@g11-64-1 ~]# mount /dev/hdb1 /mnt/hdb1
[root@g11-64-1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3              19G  8.2G  9.7G  46% /
/dev/hda1              99M   16M   79M  17% /boot
tmpfs                 250M     0  250M   0% /dev/shm
/dev/hdb1             9.9G  151M  9.2G   2% /mnt/hdb1
[root@g11-64-1 ~]#

hdb1已掛載到/mnt/hdb1上,剩余空間為9.2G.
在此分區(qū)上創(chuàng)建文件.
 

[root@g11-64-1 ~]# cd /mnt/hdb1
[root@g11-64-1 hdb1]# ls > a
[root@g11-64-1 hdb1]# ls -hl
total 20K
-rw-r--r-- 1 root root  13 Nov  3 08:45 a
drwx------ 2 root root 16K Nov  3 08:44 lost+found
[root@g11-64-1 hdb1]#

卸載hdb1分區(qū).
 

[root@g11-64-1 hdb1]# cd
[root@g11-64-1 ~]# umount /mnt/hdb1
[root@g11-64-1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3              19G  8.2G  9.7G  46% /
/dev/hda1              99M   16M   79M  17% /boot
tmpfs                 250M     0  250M   0% /dev/shm
[root@g11-64-1 ~]#

三.設(shè)置新硬盤(pán)開(kāi)機(jī)自動(dòng)掛載

在/etc/fstab中添加新硬盤(pán)的掛載信息.添加下面一行:

/dev/hdb1       /mnt/hdb1               ext3 defaults         1       2

這樣,每次開(kāi)機(jī)后,系統(tǒng)會(huì)自動(dòng)將/dev/hdb1掛載到/mnt/hdb1上.

undefined

到此,相信大家對(duì)“如何在TurboLinux11中添加新硬盤(pán)”有了更深的了解,不妨來(lái)實(shí)際操作一番吧!這里是創(chuàng)新互聯(lián)網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!

當(dāng)前文章:如何在TurboLinux11中添加新硬盤(pán)
鏈接分享:http://www.chinadenli.net/article46/joiseg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供小程序開(kāi)發(fā)商城網(wǎng)站企業(yè)網(wǎng)站制作響應(yīng)式網(wǎng)站網(wǎng)站制作網(wǎng)站營(yíng)銷

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運(yùn)營(yíng)