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