本篇內(nèi)容介紹了“CentOS6.5怎么實(shí)現(xiàn)開機(jī)自動(dòng)掛載硬盤 ”的有關(guān)知識(shí),在實(shí)際案例的操作過程中,不少人都會(huì)遇到這樣的困境,接下來就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細(xì)閱讀,能夠?qū)W有所成!
蕉嶺ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書未來市場(chǎng)廣闊!成為創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:13518219792(備注:SSL證書合作)期待與您的合作!
1、手動(dòng)掛載磁盤
查看磁盤分區(qū)信息,執(zhí)行fdisk命令
[root@tsp-rls-webservice tsp]# fdisk -l
Disk /dev/sdb: 1476.5 GB, 1476529225728 bytes
255 heads, 63 sectors/track, 179511 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008a3a1
Device Boot Start End Blocks Id System
/dev/sdb1 1 179512 1441922048 83 Linux
Disk /dev/sda: 322.1 GB, 322122547200 bytes
255 heads, 63 sectors/track, 39162 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6a5b51c5
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 39163 314059776 8e Linux LVM
Disk /dev/mapper/vg_tsprlswebserv-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_tsprlswebserv-lv_swap: 16.8 GB, 16814964736 bytes
255 heads, 63 sectors/track, 2044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_tsprlswebserv-lv_home: 251.1 GB, 251092008960 bytes
255 heads, 63 sectors/track, 30526 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
查看到/dev/sdb1沒有掛載,接下來建立掛載點(diǎn)(創(chuàng)建掛載目錄),執(zhí)行mount命令,掛載數(shù)據(jù)盤。
[root@tsp-rls-webservice tsp]# mkdir /tsp
[root@tsp-rls-webservice tsp]# mount /dev/sdb1 /tsp
2、系統(tǒng)啟動(dòng),自動(dòng)掛載數(shù)據(jù)盤
查看磁盤UUID信息
[root@tsp-rls-webservice tsp]# blkid
/dev/mapper/vg_tsprlswebserv-lv_root: UUID="3dedb8a7-69c5-44d7-b590-e70a0b1b3c9a" TYPE="ext4"
/dev/sdb1: UUID="e85dd659-bb20-4d12-a8bc-16130efc04ea" TYPE="ext4"
/dev/sda1: UUID="97f12da1-c972-4508-9028-9b98cde34a34" TYPE="ext4"
/dev/sda2: UUID="cKJ1xc-8mci-0d89-DNaR-5IAG-2JOv-V1G1q9" TYPE="LVM2_member"
/dev/mapper/vg_tsprlswebserv-lv_swap: UUID="aa4589df-1d47-4060-a419-9c4432c3bb9a" TYPE="swap"
/dev/mapper/vg_tsprlswebserv-lv_home: UUID="17a62039-4676-45ce-8eb9-1914e2d4820c" TYPE="ext4"
編輯系統(tǒng)分區(qū)表
[root@tsp-rls-webservice tsp]# vi /etc/fstab
添加如下信息:
UUID=e85dd659-bb20-4d12-a8bc-16130efc04ea /tsp ext4 defaults 1 2
編輯后的信息如下:
#
# /etc/fstab
# Created by anaconda on Thu Aug 21 17:17:19 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_tsprlswebserv-lv_root / ext4 defaults 1 1
UUID=97f12da1-c972-4508-9028-9b98cde34a34 /boot ext4 defaults 1 2
UUID=e85dd659-bb20-4d12-a8bc-16130efc04ea /tsp ext4 defaults 1 2
/dev/mapper/vg_tsprlswebserv-lv_home /home ext4 defaults 1 2
/dev/mapper/vg_tsprlswebserv-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
保存退出;重啟系統(tǒng),確認(rèn)自動(dòng)掛載成功。
“CentOS6.5怎么實(shí)現(xiàn)開機(jī)自動(dòng)掛載硬盤 ”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識(shí)可以關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實(shí)用文章!
分享名稱:CentOS6.5怎么實(shí)現(xiàn)開機(jī)自動(dòng)掛載硬盤
網(wǎng)頁鏈接:http://jinyejixie.com/article2/jdoeic.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務(wù)器、標(biāo)簽優(yōu)化、網(wǎng)站收錄、網(wǎng)站制作、用戶體驗(yàn)、網(wǎ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í)需注明來源: 創(chuàng)新互聯(lián)