You are not logged in.

#1 2021-12-19 10:52:55

Franco_64
Member
From: Milano, Italy
Registered: 2021-11-20
Posts: 49

External disk with two partitions: ntfs & ext4. How to manage mounts?

I have an NTFS partition on an external USB disk, used with NTFS-3G. In the same disk there is also an ext4 partition, that I need to be mounted in rw. Ntfs partition doesn't appear  in my /etc/fstab:

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda3
UUID=280d704e-1cc3-4bac-9702-fc21ae246a69       /               ext4            rw,relatime,stripe=8191 0 1

# /dev/sda1
UUID=28A5-069D          /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro   0 2

# /dev/sda2
UUID=00e079b8-9666-4c60-8c51-aa2bc3e01c45       none            swap            defaults        0 0

# /dev/sdb5
UUID=2b825989-c736-4d34-aa69-631391cd1b7b       /media/DiskTwo  ext4    defaults,nofail    0  2
~
(END)

I don't need to mount NTFS partition in rw mode, it is OK to mount only in read mode. But also I need that the whole disk (that contains also an ext4 partition) to be connected or disconnected when Arch is running. So ext4 partition (dev/sdb5) should be synced in real time (correct?).

The questions is:

- Can I use option "sync" in /etc/fstab for the ext4 partition? This resolves my issue?
- Can I add another option in  /etc/fstab for the NTFS partition to force read-only mount, or should I use ntfs-3g options? (I don't understand if there is a config file for it).

Offline

Board footer

Powered by FluxBB