how to mount ntfs drive after boot up?

xokia

Member
Apr 8, 2023
96
9
8
I am trying to figure out how to mount a ntfs drive that is attached to my machine
sda1 is a storage drive that is formatted ntfs. I would like to make this available to a container that I have. I do not want to reformat it to ext4.

I can mount it manually at a terminal
mount /dev/sda1 /media/media1 -t ntfs

This will work fine I can then create a mount point in a container. The problem I have is after reset this goes away.
If I try to mount inside /etc/ftsab I get a mount error at startup

This drive has no UUID I assume because its not formatted in ext4?

How do I make this drive available for use to containers or VMs without reformatting?



1681874437331.png


1681874585276.png
 

Attachments

  • 1681874401037.png
    1681874401037.png
    92.1 KB · Views: 16
Last edited:
figured it out

created a directory
mkdir -p /media/media0

Ran this command to get the specifics of the drive
lsblk |awk 'NR==1{print $0" DEVICE-ID(s)"}NR>1{dev=$1;printf $0" ";system("find /dev/disk/by-id -lname \"*"dev"\" -printf \" %p\"");print "";}'|grep -v -E 'part|lvm'

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT DEVICE-ID(s)
sda 8:0 0 1.8T 0 disk /dev/disk/by-id/ata-ST2000VX007-2AZ103_ZBM163PA /dev/disk/by-id/wwn-0x4000c400c5879786
nvme0n1 259:0 0 1.9T 0 disk /dev/disk/by-id/nvme-SOLIDIGM_SSDPFKNU018TY_PHEH365000CA2P0C /dev/disk/by-id/nvme-eui.0000000001000000c7d3c8b79a020000

did
ls /dev/disk/by-id/ata-ST2000VX007-2AZ103_ZBM163PA hit tab and /dev/disk/by-id/ata-ST2000VX007-2AZ103_ZBM163PA-part1 shows up

Pretty sure that means partition1

opened up /etc/ftsab added the following line
/dev/disk/by-id/ata-ST2000VX007-2AZ103_ZBM163PA-part1 /media/media0 ntfs defaults 0 2

Now it automagically maps the drive so I can use it.
 
Last edited: