Linux boot automatically mounts windows partitions

Source: Internet
Author: User

Blkid viewing UUID
As follows
PS: or use Uuidgen "device" to view the UUID of a specific device
[Email protected]:~$ 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 "

Modify the/etc/fstab file
View the UUID below this folder
The original is as follows

#/etc/fstab:static File System information.
#
# use ' Blkid ' to print the universally unique identifier for a
# device; This is used with uuid= as a more robust-to name devices
# that works even if disks is 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

After modification

#/etc/fstab:static File System information.
#
# use ' Blkid ' to print the universally unique identifier for a
# device; This is used with uuid= as a more robust-to name devices
# that works even if disks is 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 corresponds to the uuid of your Windows partition

#/media/reddusty/c is the mount point followed by the format behind the default can be
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

Linux boot automatically mounts windows partitions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.