How to run Windows partitions automatically when booting my computer

I read that getting fstab wrong can pretty much brick your system.

I followed a different procedure that does not touch fstab at all. An NTFS disk on my system automounts with no problems on my PC.

For reference, my .mount file looks like this:

[Unit]
Description=Mount Webdev disk (/leesdisks/webdev)

[Mount]
What=/dev/disk/by-uuid/01D5A3BB92BBCA10
Where=/leesdisks/webdev
Type=ntfs
Options=defaults,rw,noatime

The .automount file looks like this:

[Unit]
Description=Automount webdev partition
ConditionPathExists=/leesdisks/webdev
 
[Automount]
Where=/leesdisks/webdev
TimoutIdleSec=10
[Install]
WantedBy=multi-user.target

Now I can access the disk by adding using /leesdisks/webdev. You can add the new location to your file manager if you prefer to use that.

Thanks @linux-aarhus for a wonderful guide that saves us from blank-screen shock!

1 Like