I formatted this to ext4.
I am getting this message.
How can I make this 2nd drive useable?
Thanks.
What is the make/model of the drive?
Please confirm that is a USB drive that you are attempting to auto-mount, not defined as an entry in /etc/fstab.
The drive is a platter drive.
blkid
/dev/sda2: UUID="26c126a6-290a-4019-a32b-f6bb290663ea" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="5d202965-7027-4a53-baba-da14fa16a0e2"
/dev/sdb1: UUID="af83b28c-743c-4496-bce3-f94f0977a608" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="000f0791-01"
Can someone help me?
Hi, @fixit7
Could you please paste the output of the following commands (assuming the output does not include something that you want to keep private, for some reason)? I believe they may help to better understand your setup:
inxi --disk
lsblk -n | grep --invert-match ^loop
for drive in $(inxi --disk | grep 'ID' | awk '{ print $2 }');do echo; sudo fdisk -l $drive; echo; done
grep ^[^#] /etc/fstab
df -hTP | grep --invert-match 'tmpfs' | grep --invert-match 'efivarfs'
Thanks Ricardo.
~$ inxi --disk
Drives:
Local Storage: total: 2.11 TiB used: 40.21 GiB (1.9%)
ID-1: /dev/sda vendor: Western Digital model: WD2003FYPS-27Y2B0
size: 1.82 TiB
ID-2: /dev/sdb vendor: Maxtor model: STM3320620AS size: 298.09 GiB
~
$
lsblk -n | grep --invert-match ^loop
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 1M 0 part
└─sda2 8:2 0 1.8T 0 part /var/snap/firefox/common/host-hunspell
/
sdb 8:16 0 298.1G 0 disk
└─sdb1 8:17 0 298.1G 0 part /media/andy/af83b28c-743c-4496-bce3-f94f0977a608
sr0 11:0 1 1024M 0 rom
~$
for drive in $(inxi --disk | grep 'ID' | awk '{ print $2 }');do echo; sudo fdisk -l $drive; echo; done
grep ^[^#] /etc/fstab
[sudo] password for andy:
Disk /dev/sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD2003FYPS-2
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 947D6337-AEFC-4E3E-8C26-E1C7E2E60634
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 3907026943 3907022848 1.8T Linux filesystem
Disk /dev/sdb: 298.09 GiB, 320072933376 bytes, 625142448 sectors
Disk model: MAXTOR STM332062
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000f0791
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 625141759 625139712 298.1G 83 Linux
/dev/disk/by-uuid/26c126a6-290a-4019-a32b-f6bb290663ea / ext4 defaults 0 1
/swap.img none swap sw 0 0
~$ df -hTP | grep --invert-match 'tmpfs' | grep --invert-match 'efivarfs'
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 1.8T 41G 1.8T 3% /
/dev/sdb1 ext4 293G 32K 278G 1% /media/andy/af83b28c-743c-4496-bce3-f94f0977a608
Hi again, @fixit7
Thanks for the outputs! Based on the following command and output, the "ext4" filesystem of your 300 GB HDD (hard disk drive) is already (successfully) mounted on /media/andy/af83b28c-743c-4496-bce3-f94f0977a608
:
~$ df -hTP | grep --invert-match 'tmpfs' | grep --invert-match 'efivarfs'
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 1.8T 41G 1.8T 3% /
/dev/sdb1 ext4 293G 32K 278G 1% /media/andy/af83b28c-743c-4496-bce3-f94f0977a608
I'm guessing you may now want to do 2 things:
1. - Change the ownership of the /media/andy
and the /media/andy/af83b28c-743c-4496-bce3-f94f0977a608
directories so those directories get owned by the user andy
(based on the screenshot you've included in the first post of this topic, I believe that andy
is the user you use). To do that, you should use the following two commands (in sequence):
sudo chown -v andy /media/andy
sudo chown -v andy /media/andy/af83b28c-743c-4496-bce3-f94f0977a608
2. - Change the content of the /etc/fstab
file to add the filesystem mounted in the /media/andy/af83b28c-743c-4496-bce3-f94f0977a608
directory to the list of filesystems that should be mounted at boot. To do that, I would :
2.1. - First, create a backup of the existing /etc/fstab
file:
sudo cp -piv /etc/fstab /etc/fstab.ORIG.$(date +%Y-%m-%d)
2.2. - Append a line with the desired mount to the /etc/fstab
file. I believe you can enter the following command to do that:
sudo bash -c 'echo "UUID=af83b28c-743c-4496-bce3-f94f0977a608 /media/andy/af83b28c-743c-4496-bce3-f94f0977a608 ext4 defaults 0 2" >> /etc/fstab'
2.3. - Verify that the new /etc/fstab
is good. It should be good if a sudo findmnt --verify
returns only the following warning (and no other warnings or errors):
$ sudo findmnt --verify
[W] your fstab has been modified, but systemd still uses the old version;
use 'systemctl daemon-reload' to reload
0 parse errors, 0 errors, 1 warning
2.4. - Assuming the output of sudo findmnt --verify
was as described above, let's now make systemd use the new version of the /etc/fstab
:
sudo systemctl daemon-reload
2.5 - Finally, let's mount all the fillesystems:
sudo mount -av
I hope this helps Please, keep us posted!