Monday, February 26, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1120  / 1 Year ago, sat, october 22, 2022, 5:57:46

I'd like to give the Windows partition of my Ubuntu installation a persistent device name, so different applications (like the local folder-account of my email software, or my local dropbox client) have access to folders and files on this partition via a fixed file path.



As far as I understand (I am a Linux newbie), the easiest way to do this will be to create personal udev-rules. I tried to follow several guides like this one, but these seem specifically written for USB devices. If I follow their steps and type udevadm info -a -p $(udevadm info -q path -n /dev/sd2) (sd2 is my Windows partition), I get, for instance, no BUS-value and no SYSFS{product}-value either, although both seem to be necessary for writing rules.



Maybe newer Ubuntu versions even have a far more easier way to accomplish this task? Many thanks in advance for your help!


More From » udev

 Answers
0

All you need to do is modify your /etc/fstab file giving the windows partition a fixed mount point.



This is an example: /dev/sda2 /media/Windows ntfs uid=1000,gid=1000,dmask=027,fmask=137 0 0



Practically, this line says mount the /dev/sda2 partition to /media/Windows and sets partition permissions.



Every time you turn your computer on the Windows partition will automount on /media/Windows.


[#31684] Saturday, October 22, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
raldership

Total Points: 222
Total Questions: 115
Total Answers: 124

Location: North Korea
Member since Fri, Nov 4, 2022
1 Year ago
;