# NTFS data partition: label, auto-mount, and desktop/sidebar shortcuts

Session note
- A user asked to rename an NTFS partition to `DATA`, open it in the GUI, create a desktop shortcut and a Nautilus sidebar shortcut, and make it auto-mount.

Verified commands
- Inspect block devices: `lsblk -o NAME,SIZE,FSTYPE,LABEL,UUID,MOUNTPOINTS,TYPE,MODEL`
- Confirm label: `sudo blkid /dev/nvme0n1p7`
- Rename NTFS label: `sudo ntfslabel /dev/nvme0n1p7 DATA`
- Remount after label change: `udisksctl mount -b /dev/nvme0n1p7`
- Auto-mount entry used in `/etc/fstab`:
  - `UUID=680A2ADD56C828CA /mnt/DATA ntfs3 uid=1000,gid=1000,umask=022,windows_names,nofail,x-systemd.automount,x-systemd.idle-timeout=600 0 0`
- Verify mount: `findmnt -S /dev/nvme0n1p7 -o TARGET,SOURCE,FSTYPE,OPTIONS`

Desktop integration
- Desktop launcher created at: `~/Desktop/DATA.desktop`
- Example contents:
  - `Exec=nautilus /mnt/DATA`
  - `Icon=drive-harddisk`
- Make it executable: `chmod +x ~/Desktop/DATA.desktop`
- Nautilus favorites updated via GTK bookmarks:
  - `~/.config/gtk-3.0/bookmarks`
  - `~/.config/gtk-4.0/bookmarks`
  - line format: `file:///mnt/DATA DATA`

Pitfalls
- Do not guess the partition from size alone. Confirm via GParted/lsblk/blkid before changing labels.
- If the partition is already mounted through the desktop automounter, unmounting may fail with "target is busy". In that case, mounting the same device at `/mnt/DATA` works, but the desktop mount may still remain until the session releases it.
- For a permanent setup, prefer a stable mountpoint like `/mnt/DATA` over the transient `/run/media/$USER/...` path.

Verification
- After the change, check both the label and the mountpoint:
  - `sudo blkid /dev/nvme0n1p7`
  - `findmnt -S /dev/nvme0n1p7`
- Also confirm the desktop launcher exists and the GTK bookmark file contains `file:///mnt/DATA DATA`.
