标签:
blkid 查看 uuid
如下
ps:或者使用uuidgen 《设备》查看具体设备的uuid
reddusty@reddusty-X550JK:~$ sudo blkid
[sudo] password for reddusty:
/dev/sda1: LABEL="M-OM-5M-MM-3M-1M-#M-AM-t" UUID="EE29-31F5" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="ef35afca-2897-4168-9cf0-b47ffa6687a1"
/dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="b08ce421-4ba6-4a4b-b679-ffb3cae0a21d"
/dev/sda3: UUID="2CF2D8D4F2D8A2FE" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="2d2d63ed-a9b1-4426-9408-547347e0829d"
/dev/sda4: UUID="111309C6111309C6" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="78222929-9817-11e4-82b5-18cf5eaa0df9"
/dev/sda5: UUID="A44AB6BA4AB68896" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="b62878ce-db8f-4e2f-b1aa-bb902b24dc6c"
/dev/sda6: UUID="0B9B182D0B9B182D" TYPE="ntfs" PARTUUID="0b9e6fab-a18b-11e4-8256-18cf5eaa0df9"
/dev/sda7: UUID="be6a3012-8c95-466e-9f84-fb2b90ee197d" TYPE="ext4" PARTUUID="1c32d779-65fc-4e67-8043-afa24e0bee80"
/dev/sda8: UUID="401e53d0-f5c8-41a2-9066-bb4ca1844f8a" TYPE="swap" PARTUUID="ebec19c0-2767-41b2-b93e-2389acdeafa0"
/dev/sda9: UUID="7aca3630-797c-4227-b8de-fc1c8014bb17" TYPE="ext4" PARTUUID="fe8c7cb9-2689-4f66-b015-819db6dea3d1"
修改/etc/fstab文件
查看本文件夹下面的uuid
原文如下
# /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).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda7 during installation
UUID=be6a3012-8c95-466e-9f84-fb2b90ee197d / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=EE29-31F5 /boot/efi vfat defaults 0 1
# /home was on /dev/sda9 during installation
UUID=7aca3630-797c-4227-b8de-fc1c8014bb17 /home ext4 defaults 0 2
# swap was on /dev/sda8 during installation
UUID=401e53d0-f5c8-41a2-9066-bb4ca1844f8a none swap sw 0 0
修改之后
# /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).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda7 during installation
UUID=be6a3012-8c95-466e-9f84-fb2b90ee197d / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=EE29-31F5 /boot/efi vfat defaults 0 1
# /home was on /dev/sda9 during installation
UUID=7aca3630-797c-4227-b8de-fc1c8014bb17 /home ext4 defaults 0 2
# swap was on /dev/sda8 during installation
UUID=401e53d0-f5c8-41a2-9066-bb4ca1844f8a none swap sw 0 0
#在这里添加UUID对应你的windows分区的UUID
#/media/reddusty/C为挂载点 后面跟格式 后面默认即可
UUID=2CF2D8D4F2D8A2FE /media/reddusty/C ntfs defaults 0 0
UUID=111309C6111309C6 /media/reddusty/D ntfs defaults 0 0
UUID=A44AB6BA4AB68896 /media/reddusty/E ntfs defaults 0 0
UUID=0B9B182D0B9B182D /media/reddusty/F ntfs defaults 0 0
标签:
原文地址:http://www.cnblogs.com/reddusty/p/4746073.html