Auto Mount Your Windows Partition.

Heres a scenario for you.

I have a dual boot system running Windows 7 and Manajro Linux. My Elvis websites are on the Windows partition. When I open a browser in Manjaro I wanted to load the Elvis website as my start page. But Linux doesnt auto mount a Windows partition, so what do I need to do ? Heres the trick.

Open a konsole in Linux and enter the following command as the normal user :

sudo blkid

Which will list something like the following. But its down to how many parttions you have. I have four which are one for Windows and three for Linux.

/dev/sda1: UUID=“1616191B1618FE05” TYPE=“ntfs” PARTUUID=“22638e9f-01”

/dev/sda2: UUID=“424ffcb8-9ce5-474f-90c6-99bbf0579691” TYPE=“ext4” PARTUUID=“22638e9f-02”

/dev/sda3: UUID=“9e0017c1-6953-427f-99cd-6dfbdf6e2d4f” TYPE=“swap” PARTUUID=“22638e9f-03”

/dev/sda4: UUID=“2e58a7dc-9b9d-4457-9486-6ec45796ce27” TYPE=“ext4” PARTUUID=“22638e9f-04”

This listed all the partitions on my HDD. SDA1 is my ntfs windows partition.

To achieve write permissions for other users than root, you will need to install ntfs-3g, which also will install the fuse package in order to work. So at the prompt in the konsole enter “su” without quotes, this is to log in as root, next enter your root password and press “enter”, then type the following command and press enter:

pacman -Sy ntfs-3g

Once thats done enter the following command:

nano /etc/fstab

You need to enter the following to the bottom of the fstab list, then save by pressing CTR x

UUID=1616191B1618FE05 /mnt/windows7 ntfs-3g defaults,noatime,users 0 0

The numbers in BOLD are MY uuid number of MY Win 7 partition. By entering sudo blkid, you will get listed the uuid of YOUR Win 7 partition. Replace MY uuid with YOUR uuid.

Once you've added the line to fstab, save and close then reboot. Your Windows 7 partition will now be auto mounted under Manjaro, and hopefully other distros as well. This means you can open Dolphin and browse the Win 7 partition and move files between the two.

Quick Links. arch - linuxtips

wiki/automount.txt · Last modified: 2018/07/11 14:29 (external edit)
Public Domain
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0