1. 程式人生 > >centos 掛載硬碟

centos 掛載硬碟

Linux磁碟掛載操作手冊

轉自:http://wenku.baidu.com/link?url=rlCF2zTPJKXwB3VhlK9DSQAgvXjOmkWJfMXrLjhSMwl6zBcy6IysyUsFvWYdn2UhSdoAq32xKBLGpOVdWmNEsREpT5E1BjgVSLyaHXDA8sS

一、掛載單個分割槽小於2T的分割槽

1.檢視系統當前分割槽情況

命令df –h

例項:

Last login: Fri Oct 26 00:01:51 2012 from e10-3

E10-3:~ # df -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/sda2              40G  4.7G   33G  13% /

devtmpfs               12G  144K   12G   1% /dev

tmpfs                 3.9G  100K  3.9G   1% /dev/shm

/dev/sda1             479M   72M  383M  16% /boot

/dev/sda5             869G  201M  824G   1% /home

/dev/sr0              2.9G  2.9G     0 100% /media/SLES-11-SP1-DVD-x86_64.0432..001

2.檢視系統當前硬碟分割槽情況

命令:fdisk –l 

E10-3:~ # fdisk -l

Disk /dev/sda: 999.0 GB, 998999326720 bytes

255 heads, 63 sectors/track, 121454 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x00004cb7

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          63      506016   83  Linux

/dev/sda2              64        5284    41937682+  83  Linux

/dev/sda3            5285        6328     8385930   82  Linux swap / Solaris

/dev/sda4            6329      121454   924749595    f  W95 Ext'd (LBA)

/dev/sda5            6329      121452   924733498+  83  Linux

Disk /dev/sdb: 999.0 GB, 998999326720 bytes

255 heads, 63 sectors/track, 121454 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 4994.0 GB, 4993981612032 bytes

255 heads, 63 sectors/track, 607150 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x00000000

Disk /dev/sdc doesn't contain a valid partition table

3.建立新的硬碟分割槽

命令: fdisk /dev/sdb

注:這裡的/dev/sdb是具體一個硬碟,此引數可改成fdisk –l顯示的硬碟的序號。

例項:

E10-3:~ # fdisk /dev/sdb

 Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

 Building a new DOS disklabel with disk identifier 0xd3f0a6aa.

 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 121454.

 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

    t   change a partition's system id

    u   change display/entry units

    v   verify the partition table

    w   write table to disk and exit

    x   extra functionality (experts only)

 Command (m for help): n

 Command action

    e   extended

    p   primary partition (1-4)

 e

 Partition number (1-4): 1

 First cylinder (1-121454, default 1): 1

 Last cylinder, +cylinders or +size{K,M,G} (1-121454, default 121454): 

 Using default value 121454

 Command (m for help): p

 Disk /dev/sdb: 999.0 GB, 998999326720 bytes

 255 heads, 63 sectors/track, 121454 cylinders

 Units = cylinders of 16065 * 512 = 8225280 bytes

 Disk identifier: 0xd3f0a6aa

    Device Boot      Start         End      Blocks   Id  System

 /dev/sdb1               1      121454   975579223+   5  Extended

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

E10-3:~ # fdisk -l

 Disk /dev/sda: 999.0 GB, 998999326720 bytes

 255 heads, 63 sectors/track, 121454 cylinders

 Units = cylinders of 16065 * 512 = 8225280 bytes

 Disk identifier: 0x00004cb7

    Device Boot      Start         End      Blocks   Id  System

 /dev/sda1   *           1          63      506016   83  Linux

 /dev/sda2              64        5284    41937682+  83  Linux

 /dev/sda3            5285        6328     8385930   82  Linux swap / Solaris

 /dev/sda4            6329      121454   924749595    f  W95 Ext'd (LBA)

 /dev/sda5            6329      121452   924733498+  83  Linux

 Disk /dev/sdb: 999.0 GB, 998999326720 bytes

 255 heads, 63 sectors/track, 121454 cylinders

 Units = cylinders of 16065 * 512 = 8225280 bytes

 Disk identifier: 0xd3f0a6aa

    Device Boot      Start         End      Blocks   Id  System

 /dev/sdb1               1      121454   975579223+   5  Extended

 Disk /dev/sdc: 4994.0 GB, 4993981612032 bytes

 255 heads, 63 sectors/track, 607150 cylinders

 Units = cylinders of 16065 * 512 = 8225280 bytes

 Disk identifier: 0x00000000

 Disk /dev/sdc doesn't contain a valid partition table

4.建立掛載點

即建立目錄,以便將新建的分割槽掛載到新目錄下

命令:mkdir -p /webroot/1

例項:

E10-3:~ # mkdir -p /webroot/1

5.掛載分割槽

命令:mount /dev/sdb1   /webroot/1 

說明:其中/dev/sdb5是硬碟,/webroot/1是掛載點,即掛載到的目錄

例項:

E10-3:/etc # mount /dev/sdb1 /webroot/1 

 mount: you must specify the filesystem type

E10-3:/etc # mount -t ext3 /dev/sdb1   /webroot/1 

mount: wrong fs type, bad option, bad superblock on /dev/sdb1,

       missing codepage or helper program, or other error

      In some cases useful info is found in syslog - try

       dmesg | tail  or so

E10-3:/etc # mkfs.ext3 -L /webroot/1  /dev/sdb1 

mke2fs 1.41.9 (22-Aug-2009)

mkfs.ext3: inode_size (128) * inodes_count (0) too big for a

        filesystem with 0 blocks, specify higher inode_ratio (-i)

        or lower inode count (-N).

E10-3:/ # mkdir -p /webroot/1

 E10-3:/ # mount -t nfs -o loop /dev/sdb1 /webroot/1

 mount.nfs: remote share not in 'host:dir' format

 E10-3:/ # mkfs.ext3 -L /webroot/1 /dev/sdb1

 mke2fs 1.41.9 (22-Aug-2009)

 mkfs.ext3: inode_size (128) * inodes_count (0) too big for a

         filesystem with 0 blocks, specify higher inode_ratio (-i)

         or lower inode count (-N).

 E10-3:/ # mkfs -t ext3 -c /dev/sdb1

 mke2fs 1.41.9 (22-Aug-2009)

 mkfs.ext3: inode_size (128) * inodes_count (0) too big for a

         filesystem with 0 blocks, specify higher inode_ratio (-i)

         or lower inode count (-N).

以上紅色部分表示掛載或者格式化/dev/sdb1沒有成功,經百度搜索查詢原因得知,這裡掛載和格式化的是擴充套件分割槽,我們不能這麼做,掛載或者格式化操作物件只能是邏輯分割槽或者主分割槽。所以這裡需要在擴充套件分割槽上建立邏輯分割槽。

5.1建立邏輯分割槽

命令:E10-3:/ # fdisk /dev/sdb

例項:E10-3:/ # fdisk /dev/sdb

 The number of cylinders for this disk is set to 121454.

 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): 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

    t   change a partition's system id

    u   change display/entry units

    v   verify the partition table

    w   write table to disk and exit

    x   extra functionality (experts only)

 Command (m for help): p

 Disk /dev/sdb: 999.0 GB, 998999326720 bytes

 255 heads, 63 sectors/track, 121454 cylinders

 Units = cylinders of 16065 * 512 = 8225280 bytes

 Disk identifier: 0xd3f0a6aa

    Device Boot      Start         End      Blocks   Id  System

 /dev/sdb1               1      121454   975579223+   5  Extended

 Command (m for help): n

Command action

    l   logical (5 or over)

    p   primary partition (1-4)

 l

 First cylinder (1-121454, default 1): 

 Using default value 1

 Last cylinder, +cylinders or +size{K,M,G} (1-121454, default 121454): 

 Using default value 121454

 Command (m for help): p

 Disk /dev/sdb: 999.0 GB, 998999326720 bytes

 255 heads, 63 sectors/track, 121454 cylinders

 Units = cylinders of 16065 * 512 = 8225280 bytes

 Disk identifier: 0xd3f0a6aa

    Device Boot      Start         End      Blocks   Id  System

 /dev/sdb1               1      121454   975579223+   5  Extended

 /dev/sdb5               1      121454   975579192   83  Linux

Command (m for help): w

 The partition table has been altered!

 Calling ioctl() to re-read partition table.

 Syncing disks.

E10-3:/ # fdisk -l

 Disk /dev/sda: 999.0 GB, 998999326720 bytes

 255 heads, 63 sectors/track, 121454 cylinders

 Units = cylinders of 16065 * 512 = 8225280 bytes

 Disk identifier: 0x00004cb7

    Device Boot      Start         End      Blocks   Id  System

 /dev/sda1   *           1          63      506016   83  Linux

 /dev/sda2              64        5284    41937682+  83  Linux

 /dev/sda3            5285        6328     8385930   82  Linux swap / Solaris

 /dev/sda4            6329      121454   924749595    f  W95 Ext'd (LBA)

 /dev/sda5            6329      121452   924733498+  83  Linux

 Disk /dev/sdb: 999.0 GB, 998999326720 bytes

 255 heads, 63 sectors/track, 121454 cylinders

 Units = cylinders of 16065 * 512 = 8225280 bytes

 Disk identifier: 0xd3f0a6aa

    Device Boot      Start         End      Blocks   Id  System

 /dev/sdb1               1      121454   975579223+   5  Extended

 /dev/sdb5               1      121454   975579192   83  Linux

 Disk /dev/sdc: 4994.0 GB, 4993981612032 bytes

 255 heads, 63 sectors/track, 607150 cylinders

 Units = cylinders of 16065 * 512 = 8225280 bytes

 Disk identifier: 0x00000000

 Disk /dev/sdc doesn't contain a valid partition table

5.2 格式化邏輯分割槽

命令:E10-3:/ # mkfs.ext3 -L /webroot/1 /dev/sdb5

說明:ext3是檔案系統型別,需根據實際情況更改,/webroot/1是掛載點,/dev/sdb5是邏輯分割槽名稱

例項:

E10-3:/ # mkfs.ext3 -L /webroot/1 /dev/sdb5

 mke2fs 1.41.9 (22-Aug-2009)

 Filesystem label=/webroot/1

 OS type: Linux

 Block size=4096 (log=2)

 Fragment size=4096 (log=2)

 60981248 inodes, 243894798 blocks

 12194739 blocks (5.00%) reserved for the super user

 First data block=0

 Maximum filesystem blocks=4294967296

 7444 block groups

 32768 blocks per group, 32768 fragments per group

 8192 inodes per group

 Superblock backups stored on blocks: 

         32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 

         4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 

         102400000, 214990848

 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.

5.3臨時掛載(邏輯)分割槽

命令:mount /dev/sdb5   /webroot/1

說明:因掛載資訊沒有寫到/etc/fstab檔案中,所以這裡只是臨時掛載,系統重啟後此掛載會消失。

例項:

E10-3:/ # mount /dev/sdb5   /webroot/1 

 E10-3:/ # df -h

 Filesystem            Size  Used Avail Use% Mounted on

 /dev/sda2              40G  4.7G   33G  13% /

 devtmpfs               12G  152K   12G   1% /dev

 tmpfs                 3.9G  100K  3.9G   1% /dev/shm

 /dev/sda1             479M   72M  383M  16% /boot

 /dev/sda5             869G  201M  824G   1% /home

 /dev/sr0              2.9G  2.9G     0 100% /media/SLES-11-SP1-DVD-x86_64.0432..001

 /dev/sdb5             916G  200M  870G   1% /webroot/1

5.4取消掛載

命令:umount /dev/sdb5

說明:因為第一次掛載硬碟時不知如何掛載,所以採用了臨時掛載。但因為臨時掛載分割槽後,系統重啟後掛載分割槽會消失,所以此處先取消掛載,再將掛載資訊寫到啟動檔案,這樣系統重啟時會自動掛載所有分割槽。

例項:

E10-3:/ # umount /dev/sdb5

 E10-3:/ # df -h

 Filesystem            Size  Used Avail Use% Mounted on

 /dev/sda2              40G  4.7G   33G  13% /

 devtmpfs               12G  152K   12G   1% /dev

 tmpfs                 3.9G  100K  3.9G   1% /dev/shm

 /dev/sda1             479M   72M  383M  16% /boot

 /dev/sda5             869G  201M  824G   1% /home

 /dev/sr0              2.9G  2.9G     0 100% /media/SLES-11-SP1-DVD-x86_64.0432..001

5.5 將掛載資訊寫到啟動檔案

說明:將掛載資訊寫到/etc/fstab檔案,系統啟動時會根據此檔案的資訊掛載分割槽

 E10-3:/ # df -h

 Filesystem            Size  Used Avail Use% Mounted on

 /dev/sda2              40G  4.7G   33G  13% /

 devtmpfs               12G  152K   12G   1% /dev

 tmpfs                 3.9G  100K  3.9G   1% /dev/shm

 /dev/sda1             479M   72M  383M  16% /boot

 /dev/sda5             869G  201M  824G   1% /home

 /dev/sr0              2.9G  2.9G     0 100% /media/SLES-11-SP1-DVD-x86_64.0432..001

 E10-3:/ # more /etc/fstab

 /dev/disk/by-id/scsi-3600605b0020ecc50181c076d1680b376-part3 swap               

   swap       defaults              0 0

 /dev/disk/by-id/scsi-3600605b0020ecc50181c076d1680b376-part2 /                  

   ext3       acl,user_xattr        1 1

 /dev/disk/by-id/scsi-3600605b0020ecc50181c076d1680b376-part1 /boot              

   ext3       acl,user_xattr        1 2

 /dev/disk/by-id/scsi-3600605b0020ecc50181c076d1680b376-part5 /home              

   ext3       acl,user_xattr        1 2

 proc                 /proc                proc       defaults              0 0

 sysfs                /sys                 sysfs      noauto                0 0

 debugfs              /sys/kernel/debug    debugfs    noauto                0 0

 usbfs                /proc/bus/usb        usbfs      noauto                0 0

 devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

 LABEL=/webroot/1     /webroot/1     ext3     defaults 0 0

 E10-3:/ # mount -a

 mount: special device LABEL=/webroot/1 does not exist

 E10-3:/ # vi /etc/fstab

 /dev/disk/by-id/scsi-3600605b0020ecc50181c076d1680b376-part3 swap                 swap       defaults              0 0

 /dev/disk/by-id/scsi-3600605b0020ecc50181c076d1680b376-part2 /                    ext3       acl,user_xattr        1 1

 /dev/disk/by-id/scsi-3600605b0020ecc50181c076d1680b376-part1 /boot                ext3       acl,user_xattr        1 2

 /dev/disk/by-id/scsi-3600605b0020ecc50181c076d1680b376-part5 /home                ext3       acl,user_xattr        1 2

 proc                 /proc                proc       defaults              0 0

 sysfs                /sys                 sysfs      noauto                0 0

 debugfs              /sys/kernel/debug    debugfs    noauto                0 0

 usbfs                /proc/bus/usb        usbfs      noauto                0 0

 devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

/dev/sdb5    /webroot/1     ext3     defaults 0 0

5.6立即掛載所有分割槽

命令:mount -a             

E10-3:/ # mount -a

5.7 檢視掛載結果

命令:df -h

 E10-3:/ # df –h

Filesystem            Size  Used Avail Use% Mounted on

 /dev/sda2              40G  4.7G   33G  13% /

 devtmpfs               12G  152K   12G   1% /dev

 tmpfs                 3.9G  100K  3.9G   1% /dev/shm

 /dev/sda1             479M   72M  383M  16% /boot

 /dev/sda5             869G  201M  824G   1% /home

 /dev/sr0              2.9G  2.9G     0 100% /media/SLES-11-SP1-DVD-x86_64.0432..001

 /dev/sdb5             916G  200M  870G   1% /webroot/1

相關推薦

centos 掛載硬碟

Linux磁碟掛載操作手冊 轉自:http://wenku.baidu.com/link?url=rlCF2zTPJKXwB3VhlK9DSQAgvXjOmkWJfMXrLjhSMwl6zBcy6IysyUsFvWYdn2UhSdoAq32xKBLGpOVdWmNEsREp

mount掛載報錯mount:you must specify the filesystem type 。 Linux(CentOS)掛載U盤、行動硬碟以及檔案拷貝

mount:you must specify the filesystem type報錯主要是因為沒有指定檔案系統格式,我就進行如下操作  檢視檔案系統格式: df -T -h 我們平時用的行動硬碟是NTFS格式的,linux預設情況下不支援NTFS格式,支援FAT-32格式。

Centos掛載第二塊硬碟

作為一個初創小公司的架構師,工作內容紛繁複雜,涉及了系統管理員、資料庫管理員、架構師、高階軟體工程師、專案經理的部分。 今天的任務是安裝公司的伺服器,使用centos6.7。安裝過程就不用細講了。安裝好之後,發現我們的伺服器是有兩塊1TB的硬碟的,但是系統裡面的磁碟容量

centos訪問本機windows系統的檔案----centos掛載ntfs硬碟

在以前只有win7系統的電腦上裝了一個CentOS系統,即,現在我的電腦有雙系統。但是,現在登陸我的CentOS系統怎麼訪問我原來win7系統的檔案呢? 換句話說: 我電腦的硬碟是ntfs格式,我現在的CentOS系統要訪問該ntfs格式的硬碟,要怎麼做?

Linux(CentOS)掛載U盤、行動硬碟以及檔案拷貝、備份

說明: 環境:VMware workstation  系統:centos6.2 以下操作均在root下執行的 1.U盤掛載 mkdir /mnt/usb  //建立一個目錄,用於掛載U盤fdisk -l   //檢視系統中掛載的U盤,若系統有一塊硬碟sdb1 代表你的

Linux/Centos 掛載NTFS格式行動硬碟

問題描述:   通過mysqldump匯出的sql檔案很大,300G,如果用網路傳輸的話比較慢,所有就用行動硬碟去掛載匯入到另一條伺服器上,發現檔案系統報錯說是 "error mounting: mount : unknown filesystem type ntfs" 這個

Redhat、CentOS新增硬碟硬碟分割槽,配置掛載硬碟操作,新增交換分割槽,磁碟容量配額。

文章目錄 1、環境說明 2、準備 軟、硬體準備 知識儲備 3、新增硬碟裝置 fdisk 命令 du 命令 4、新增交換分割槽 5、

CentOS掛載NTFS行動硬碟

yum -y install gcc automake autoconf libtool make   //安裝gcc等編譯環境 //下載ntfs-3g並編譯安裝 wget http://tuxera

20151117 Linux下磁碟管理(centos 6.5)1.新增硬碟 2.硬碟分割槽 3.格式化硬碟 4.掛載硬碟 5.設定開機自動掛載

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF                               disklabel Building a new DOS disklabel with disk i

Centos 掛載windows分割槽 出現mount: unknown filesystem type 'ntfs' 掛載大於2T硬碟

今天幫客戶掛載一個USB 行動硬碟4T,NTFS格式,遇到了一些問題,總結記錄如下, 系統 #fdisk -l 有看到一個4T硬碟 WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fd

Linux(CentOS)掛載行動硬碟,實現檔案拷貝、備份

常常我們需要備份伺服器上的某些資料,今天在這裡跟大家分享一下如何使用行動硬碟備份CentOS上的檔案。 一、掛載行動硬碟(掛載NTFS格式分割槽)  1. 安裝ntfs3g工具 wget http://tuxera.com/opensource/ntfs-3g_nt

CentOS如何掛載硬碟※※※※ ---持續跟進文章

遠端SSH登入上CentOS伺服器後,進行如下操作 提醒:掛載操作會清空資料,請確認掛載盤無資料或者未使用 第一步:列出所有磁碟  命令:  ll /dev/disk/by-path 提示:如果無法確認資料盤裝置名稱,請使用df命令來確認系統盤的名稱,從而排除掛

centos 掛載與解除安裝硬碟

fdisk -l //先查詢未掛載的硬碟名如:sdb1 等 mkfs.ext3 /dev/xvdb 開始格式化 df -h mount /dev/xvdb /home 開始掛載 vi /etc/fstab 設定自動開啟啟動 按

centos 掛載NTFS移動硬盤

掛載點 entos mkdir sdc 文件 支持ntfs 掛載 創建 mnt 1.安裝軟件,使centos支持ntfs格式文件系統 yum install ntfs-3g -y 2.創建掛載點 mkdir /mnt/usb 3.掛載 mount -t ntfs-3g /d

virtualBox linux centos 掛載u盤 解決亂碼

shel 虛擬 6.5 就是 查看 data- resource med 解決 liunx 掛載u盤 環境:虛擬機virtualBox5.2.8 linux centos6.5 64bit 第一步:插入u盤 第二步:virtualBox 設置啟用u盤 提示:如果不知道哪個

linux下如何掛載硬碟

 如果是雙系統 第一步首先在windows下分一個盤出來,比如100個G,格式化  重啟到linux系統下 sudo fdisk -l 找裝置。根據記憶體大小,找到 裝置位置,比如  /dev/sda5 第二步: 將格式進行轉換 mkfs -t

Linux—掛載硬碟

使用parted工具parted /dev/sdb      #選擇sdb這塊硬碟print               

win10 和centOs7雙系統下,centos掛載ntfs分割槽報錯“symbol lookup error: /sbin/mount.ntfs: undefined symbol: ntfs_x”

在window10下安裝完centOS7,本來想利用linux系統吃記憶體少的特點,建立虛擬機器叢集,但是當初沒有考慮好,就給centOS7分配了50G記憶體,所以就想把虛擬機器系統放到window10的其他分割槽,但是centOS7怎麼都掛不上,裝了fuse,裝了ntfs-3g都沒有辦法,

Centos7掛載硬碟

以root身份登入系統進行以下操作。 一. 檢視磁碟資訊 注意:在沒有分割槽和格式化資料盤之前,使用 df-h 命令是無法看到資料盤的。 fdisk -l 二. 新建分割槽 fdisk /dev/vdb //這裡的vdb是要掛載的新硬碟

CentOS7設定開機自動掛載硬碟

如果需要在伺服器系統啟動時自動掛載磁碟,最好不要採用在 /etc/fstab直接指定分割槽(如/dev/sdb1)的方法,因為裝置的順序編碼在關閉或者開啟伺服器過程中可能發生改變,例如/dev/sdb1可能會變成/dev/sdb2。推薦使用UUID來配置自動掛載資料盤。 說明:磁碟的UU