1

Problem: new hard drive doesn't show up in file system where I can easily access data and save stuff.

I am trying to install and mount a new SATA SSD hard drive for additional file storage.

I used gparted to partition and mount the disk. I followed the advice from this question to partition and mount.

This is my output from sudo parted -l

(base) john@john-linux:~$ sudo parted -l
Model: ATA Samsung SSD 860 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags 1 1049kB 1000GB 1000GB ext4

Model: Samsung SSD 970 EVO 1TB (nvme) Disk /dev/nvme0n1: 1000GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags:

Number Start End Size File system Name Flags 1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp 2 538MB 1000GB 1000GB ext4

Here's a screenshot of my file system in my Other locations tab in file manager. I thought I could expect to see my new SATA SSD here after partitioning and mounting. However, all it shows is my M.2 SSD.

Here is the output from system-info. I've mounted the partition to /mnt. Which I've been able to find but cannot read or write data to it.

civdex
  • 25
  • 2
  • 5

1 Answers1

1

This answer describes how to manage a partition with a Linux file system (in this particular case ext4).


The "Mount Details of '/etc/fstab'" and "Current Mount Details of 'mount'" are useful. The drive is mounted with read/write permissions (for the owner).

I think that only the superuser root has privilages to write to the drive at the top level /mnt. You can live with that and create a [sub]directory

sudo mkdir /mnt/mydir

and modify the ownership

sudo chown "$USER":"$USER" /mnt/mydir

After that you should be able to create/modify/delete files and directories there. You can test with

cd /mnt/mydir
echo 'Hello World' > hello
cat hello
mkdir testdir
ls -l
rm hello
rmdir testdir
ls -l
sudodus
  • 47,684