[关闭]
@zslzxc 2018-03-14T06:15:06.000000Z 字数 1755 阅读 1942

Deepin 手动挂载硬盘

deepin fdisk


  1. amor@amor-PC:/$ sudo fdisk -l
  2. Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
  3. Units: sectors of 1 * 512 = 512 bytes
  4. Sector size (logical/physical): 512 bytes / 4096 bytes
  5. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  6. Disklabel type: gpt
  7. Disk identifier: 36B473BF-19A9-4DBE-828F-B18D4C9990DD
  8. Device Start End Sectors Size Type
  9. /dev/sdb1 2048 1953523711 1953521664 931.5G Linux filesystem
  10. Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors
  11. Units: sectors of 1 * 512 = 512 bytes
  12. Sector size (logical/physical): 512 bytes / 512 bytes
  13. I/O size (minimum/optimal): 512 bytes / 512 bytes
  14. Disklabel type: gpt
  15. Disk identifier: D1B5664B-A64B-4D9D-90B8-45E134816B1D
  16. Device Start End Sectors Size Type
  17. /dev/sda1 2048 616447 614400 300M EFI System
  18. /dev/sda2 616448 250066943 249450496 119G Linux filesystem
  19. amor@amor-PC:/$ mount /dev/sdb1 /data
  20. mount: only root can do that
  21. amor@amor-PC:/$ sudo mount /dev/sdb1 /data
  22. amor@amor-PC:/$ ls
  23. bin data etc initrd.img lastore lib64 media opt recovery run srv tmp var vmlinuz.old
  24. boot dev home initrd.img.old lib lost+found mnt proc root sbin sys usr vmlinuz
  25. amor@amor-PC:/$ cd /data/
  26. amor@amor-PC:/data$ ls
  27. c docker lor lua python source zhubook
  28. amor@amor-PC:/data$
  1. amor@amor-PC:/data$ ls -l /dev/disk/by-uuid/
  2. 总用量 0
  3. lrwxrwxrwx 1 root root 10 3 2 15:06 e4a3fce9-b6a0-4f0a-be23-0751888a9cac -> ../../sda2
  4. lrwxrwxrwx 1 root root 10 3 2 15:06 e9498775-ea94-4068-b980-7323ac9916dc -> ../../sdb1
  5. lrwxrwxrwx 1 root root 10 3 2 15:06 F6AA-5382 -> ../../sda1
  6. amor@amor-PC:/data$ sudo vim /etc/fstab
  7. ********************************************
  8. # /dev/sda2
  9. UUID=e4a3fce9-b6a0-4f0a-be23-0751888a9cac / ext4 rw,relatime,data=ordered 0 1
  10. # /dev/sda1
  11. UUID=F6AA-5382 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
  12. # /dev/sdb1
  13. UUID=e9498775-ea94-4068-b980-7323ac9916dc / ext4 defaults 0 0
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注