In this video, I’ll show you how to automatically mount your Windows partitions (C: Drive and D: Drive) every time you log into Ubuntu. By default, Ubuntu requires you to click on a drive to mount it, which can cause errors for applications trying to access those files automatically.
We will use the /etc/fstab file to make these drives permanently accessible at startup.
📄 Commands Used in This Video:
1. Check your disk details:
lsblk
(Note the device name, e.g., /dev/nvme0n1p4, for the drive you want to mount)
2. Create a mount point (folder):
sudo mkdir /mnt/d
sudo mkdir /mnt/c
3. Test mounting manually (optional):
sudo mount -t ntfs-3g /dev/[your_partition] /mnt/d
4. Edit the fstab file for auto-mounting:
sudo nano /etc/fstab
5. Line to add inside fstab:
(Replace /dev/xxxx with your specific partition ID from step 1)
/dev/nvme0n1p4 /mnt/d ntfs-3g defaults 0 0
(Press Ctrl + X, then Y, then Enter to save and exit)
Timestamps:
0:00 - Introduction & The Problem
1:05 - Identifying Drives (lsblk)
2:03 - Creating Mount Points
2:40 - Editing the fstab file
4:40 - Important Warning about C: Drive & Fast Startup
5:03 - Accessing the Mounted Drives
#Ubuntu #Linux #DualBoot #Windows #NTFS #TechTutorial #LinuxTips #opensource
Ubuntu, Linux, Dual Boot, Auto Mount, Mount Windows Drive in Linux, NTFS-3g, fstab tutorial, Linux for beginners, access windows files from ubuntu, mount partition, how to mount ntfs drive in ubuntu, ubuntu 24.04, linux terminal commands