@zslzxc
2018-03-14T06:15:06.000000Z
字数 1755
阅读 1942
deepin
fdisk
amor@amor-PC:/$ sudo fdisk -l
Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 36B473BF-19A9-4DBE-828F-B18D4C9990DD
Device Start End Sectors Size Type
/dev/sdb1 2048 1953523711 1953521664 931.5G Linux filesystem
Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D1B5664B-A64B-4D9D-90B8-45E134816B1D
Device Start End Sectors Size Type
/dev/sda1 2048 616447 614400 300M EFI System
/dev/sda2 616448 250066943 249450496 119G Linux filesystem
amor@amor-PC:/$ mount /dev/sdb1 /data
mount: only root can do that
amor@amor-PC:/$ sudo mount /dev/sdb1 /data
amor@amor-PC:/$ ls
bin data etc initrd.img lastore lib64 media opt recovery run srv tmp var vmlinuz.old
boot dev home initrd.img.old lib lost+found mnt proc root sbin sys usr vmlinuz
amor@amor-PC:/$ cd /data/
amor@amor-PC:/data$ ls
c docker lor lua python source zhubook
amor@amor-PC:/data$
amor@amor-PC:/data$ ls -l /dev/disk/by-uuid/
总用量 0
lrwxrwxrwx 1 root root 10 3月 2 15:06 e4a3fce9-b6a0-4f0a-be23-0751888a9cac -> ../../sda2
lrwxrwxrwx 1 root root 10 3月 2 15:06 e9498775-ea94-4068-b980-7323ac9916dc -> ../../sdb1
lrwxrwxrwx 1 root root 10 3月 2 15:06 F6AA-5382 -> ../../sda1
amor@amor-PC:/data$ sudo vim /etc/fstab
********************************************
# /dev/sda2
UUID=e4a3fce9-b6a0-4f0a-be23-0751888a9cac / ext4 rw,relatime,data=ordered 0 1
# /dev/sda1
UUID=F6AA-5382 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/sdb1
UUID=e9498775-ea94-4068-b980-7323ac9916dc / ext4 defaults 0 0