I want to give my other disk read/write permission all the time
I recently moved from windows to Ubuntu, I used one of my 2 drives to install Ubuntu and all my data in the other drives with the old windows partitions.
Now I need to mount partitions of my old drive to keep my new data, and I find it so hard to all the time mount and change the permissions of the needed partitions to be write/read each time I need to download or change something.
I need a way to mount partitions and give write permissions all each time I boot.
I used # blkid
to get the UUID of partitions needed to be mounted.
/dev/sdb1: BLOCK_SIZE="512" UUID="F8FE844CFE84055A" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="053727a6-5dba-4888-93c6-da2a466a8e4d"
/dev/sdb2: UUID="5E75-8826" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="0d13c77a-a67f-4971-a2ec-547af6019abf"
/dev/sdb3: PARTLABEL="Microsoft reserved partition" PARTUUID="61c05d96-6a41-4e3c-9ec8-cad4c4076419"
/dev/sdb4: LABEL="A" BLOCK_SIZE="512" UUID="244457294456FCCC" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="2f42d340-e6b0-4d24-8964-5c2117acff34"
/dev/sdb5: LABEL="B" BLOCK_SIZE="512" UUID="B270646A7064376F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="5c1e2d61-5025-46ea-b1bb-3dc0573507ba"
/dev/sdb6: LABEL="D" BLOCK_SIZE="512" UUID="0220616220615E23" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="18822c48-5ff7-4daf-a595-63eda7eb76df"
/dev/sdb7: LABEL="20h2" BLOCK_SIZE="512" UUID="14206D4A206D33C0" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="6d6f76b9-8d4f-4cec-90a7-a7539b5b3a68"
/dev/sdb8: BLOCK_SIZE="512" UUID="F8047DF7047DB8E8" TYPE="ntfs" PARTUUID="bf7c341a-dd3f-4bc5-8e73-bac8234f7b9b"
And the fstab file shown, but not really sure how to add it.
# /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/sda2 during installation
UUID=53541401-02f6-44e7-a272-d08775f93209 / ext4 errors=remoun>
# /boot/efi was on /dev/sda1 during installation
UUID=DF3D-1B7E /boot/efi vfat umask=0077 0 1
/swapfile none swap sw >
I edited fstab
file by adding
/dev/disk/by-uuid/244457294456FCCC /mnt/A ntfs-3g users,uid=1000,dmask=027,fmask=137,rw,x-gvfs-show,utf8 0 0
The partition mounts each time I boot, but still I need it to be accessed in read/write mode the rw in the line I added it, and it did not work.
-
Check all available partitions using:
sudo blkid
The output for each partition is something like this:
/dev/sdb8: BLOCK_SIZE="512" UUID="**F8047DF7047DC8E8**" TYPE="*ntfs*" PARTUUID="bf7c341a-dd3f-4bc5-8e73-bac8232f7b9b"
-
With this information, a new terminal window should be opened from the user and the
fstab
file should be edited using:sudo nano /etc/fstab
-
At the bottom of the file, add the UUID, mount point and label, partition type,
defaults
and0 0
, all separated by tabs:UUID=F8047DF7047DC8E8 /media/Label ntfs defaults 0 0
-
To make sure that there is nothing wrong, use:
mount -a
-
If the partition has a Windows cache and error appearing, the
ntfsfix
command can be used:sudo ntfsfix /dev/sdb8