You are viewing an old revision of this post, from March 7, 2017 @ 16:27:33. See below for differences between this version and the current revision.

Ubuntu – Assign static name for partitions

If you are running Linux system and you have an additional disk in your computer, you can see that the partion name will change after you reboot your operating system.

That's issue is not good for users who want to have a static link of those partitions.

Here is the solution to resolve your problem.

Use this command to determine the UUID of your C: drive:

sudo blkid

Example output:

/dev/sda1: UUID="f1b3915e-3c86-a3ec-3273-43967f134ce5" UUID_SUB="f48bf957-6f67-171f-ea75-29ddbd401637" LABEL="ubuntu:0" TYPE="linux_raid_member" 
/dev/sda2: LABEL="Win" UUID="28A139962EFFC093" TYPE="ntfs" 
/dev/sda3: UUID="571a61fe-6e6f-45d0-9fe1-832f28519f96" TYPE="reiserfs" 
/dev/sdb1: UUID="f1b3915e-3c86-a3ec-3273-43967f134ce5" UUID_SUB="d0318ec5-9e4c-a864-7906-2d43bcbd0374" LABEL="ubuntu:0" TYPE="linux_raid_member" 
/dev/md0p1: UUID="88dc483f-aef9-454b-b744-2c3e3202a198" TYPE="swap" 
/dev/md0p5: LABEL="Home" UUID="b632fe56-564e-4d3f-833a-fde68fd1dd32" TYPE="ext4" 
/dev/md0p6: LABEL="Ubuntu" UUID="da84c996-f7d0-4fe8-8822-407e4f6c5c22" TYPE="ext4"

Find the device corresponding to your C: drive (use label if it's difficult) and add such line into your /etc/fstab:

 UUID=AC7A30A47A306D68 /windows        ntfs    defaults,umask=007,gid=46 0       0

Reboot (or do sudo mount -a) and see your drive mounted in /windows.

Revisions

  • March 7, 2017 @ 16:27:33 [Current Revision] by Sharing Solution
  • March 7, 2017 @ 16:27:33 by Sharing Solution

Revision Differences

There are no differences between the March 7, 2017 @ 16:27:33 revision and the current revision. (Maybe only post meta information was changed.)

No comments yet.

Leave a Reply