I am using Ubuntu 22.04 with two hard drives as follows:
How can I use the free space on the second drive, /dev/sdb, for Ubuntu?
I am using Ubuntu 22.04 with two hard drives as follows:
How can I use the free space on the second drive, /dev/sdb, for Ubuntu?
Terse answer; for preparation and occasional use:
lsblk -ape7 will tell about present hardware partitions.part for partitions.udisksctl mount --block-device /dev/$device$partcd <mountpoint> # /media/$USER/<disk_label> for the abovesudo chown $USER:$USER . # likely required to allow accessudisksctl unmount --block-device /dev/$device$part # when done usingNote that 2. and 5. is required only once.
On boot / permanent mount not covered by this, look for /etc/fstab info.
mount/unmount can also be done from Nautilus (gnome Files) as well as from the command line, udisksctl uses the same "interface".
Note that a partition which is used from more than one OS has to be properly and fully flushed and unmounted before the next OS can use it. i.e. a hibernated or 'fastboot'-enabled Windows may cause trouble.