linux之kubuntu掛載硬碟

2021-10-05 16:11:21 字數 4459 閱讀 5879

jack@jack

-coding:

~$ sudo blkid

[sudo] jack 的密碼:

/dev/sda1: uuid=

"703e5476-6d7d-480a-bca3-7ae26e0b2d77" type=

"ext4" partuuid=

"d5fe6716-01"

/dev/sda5: label=

"m-hm-=m-/m-dm-;m-6" uuid=

"0a9ad66165f33762" type=

"ntfs" partuuid=

"d5fe6716-05"

/dev/sda6: label=

"m-fm-^vm-^gm-fm-!m-#" uuid=

"299d817a2d97ad94" type=

"ntfs" partuuid=

"d5fe6716-06"

/dev/sda7: label=

"m-em-(m-1m-dm-9m-^p" uuid=

"225a6d42d4fa828f" type=

"ntfs" partuuid=

"d5fe6716-07"

/dev/sdb1: uuid=

"18a8636f-ce45-4676-96b1-292da70cdd80" type=

"ext4" partuuid=

"17c23e73-01"

jack@jack

-coding:

~$ sudo mkdir -p hdd/hdd_dev1

jack@jack

-coding:

~$ df -t

檔案系統 型別 1k-塊 已用 可用 已用% 掛載點

udev devtmpfs 8152816

081528160%

/dev

tmpfs tmpfs 1636768

1328

16354401%

/run

/dev/sdb1 ext4 239314556

27795224

19929308013%

/tmpfs tmpfs 8183832

437604

77462286%

/dev/shm

tmpfs tmpfs 5120

451161%

/run/lock

tmpfs tmpfs 8183832

081838320%

/sys/fs/cgroup

/dev/sda1 ext4 82042776

10315028

6751706414%

/hdd1

tmpfs tmpfs 1636764

016367640%

/run/user/

119tmpfs tmpfs 1636764

2016367441%

/run/user/

1000

/dev/sda6 fuseblk 135267324

143316

1351240081%

/media/jack/文件1

/dev/sda7 fuseblk 133960700

82982240

5097846062%

/media/jack/娛樂1

/dev/sda5 fuseblk 135267324

81893772

5337355261%

/media/jack/軟體1

+執行命令: umount /dev/sda6,解除安裝"文件"硬碟。

jack@jack

-coding:

~$ sudo mkfs.ext4 /dev/sda6

mke2fs 1.44.1(

24-mar-

2018

)/dev/sda6 有乙個標籤為「文件」的 ntfs 檔案系統

proceed anyway?

(y,n) y

建立含有 33816576 個塊(每塊 4k)和 8470656 個inode的檔案系統

檔案系統uuid:027dc02e-

201c-

46d2

-bd55-cb9dcd28f687

超級塊的備份儲存於下列塊:

32768

,98304

,163840

,229376

,294912

,819200

,884736

,1605632

,2654208

,4096000

,7962624

,11239424

,20480000

,23887872

正在分配組表: 完成

正在寫入inode表: 完成

建立日誌(262144 個塊) 完成

寫入超級塊和檔案系統賬戶統計資訊: 已完成

jack@jack

-coding:

~$ sudo mount /dev/sda6 /home/jack/hdd/hdd_dev2/

jack@jack

-coding:

~$ sudo blkid

/dev/sda1: uuid=

"703e5476-6d7d-480a-bca3-7ae26e0b2d77" type=

"ext4" partuuid=

"d5fe6716-01"

/dev/sda5: label=

"m-hm-=m-/m-dm-;m-6" uuid=

"0a9ad66165f33762" type=

"ntfs" partuuid=

"d5fe6716-05"

/dev/sda6: uuid=

"027dc02e-201c-46d2-bd55-cb9dcd28f687" type=

"ext4" partuuid=

"d5fe6716-06"

/dev/sda7: label=

"m-em-(m-1m-dm-9m-^p" uuid=

"225a6d42d4fa828f" type=

"ntfs" partuuid=

"d5fe6716-07"

/dev/sdb1: uuid=

"18a8636f-ce45-4676-96b1-292da70cdd80" type=

"ext4" partuuid=

"17c23e73-01"

# /etc/fstab:

static file system information.

## use 'blkid' to print the universally unique identifier for a

# device;

this may be used with uuid= as a more robust way to name devices

# that works even if disks are added and removed. see fstab(5

).##

# / was on /dev/sdb1 during installation

uuid=

18a8636f-ce45-

4676

-96b1-

292da70cdd80 / ext4 errors=remount-ro 0

1/swapfile none swap sw 0

0#mount dev

uuid=

703e5476-6d

7d-480a-bca3-

7ae26e0b2d77 /hdd1 ext4 defaults 1

1#mount /dev/sda6 to /home/jack/hdd/hdd_dev2/

uuid=

027dc02e-

201c-

46d2

-bd55-cb9dcd28f687 /home/jack/hdd/hdd_dev2/ ext4 defaults 1

1

Linux之磁碟掛載

集群配置 掛載磁碟 檢視集群磁碟 fdisk l 1 首先檢查 df h 檢視掛載情況 blkid 檢視有多少磁碟 假設9塊,其中sda一塊,其他兩塊,sdb sdg 6塊 2 修改主機名 在 etc sysconfig network vi etc sysconfig network hostna...

linux之掛載硬碟

sudo gedit etc fstab中新增 uuid 190534e2 d8ae 4928 94b7 0f4d4209a3ab data ext4 defaults 0 3 如果需要使用者許可權則為 uuid 190534e2 d8ae 4928 94b7 0f4d4209a3ab data e...

Linux之U盤掛載

第一步 檢視u盤資訊 首先使用 sudo fdisk l 命令檢視一下u盤在那裡,這個資訊檢視後,可能會類似看到下面資訊 disk dev sdb 4007 mb,4007657472 bytes 255 heads,63 sectors track,487 cylinders units cyli...