Can't boot into Manjaro after adding additional HDD to fstab

Hi guys!

I’ve just added secondary drive to my main desktop PC (main disk is a 1TB M.2 SSD). It’s a 2TB HDD which I’ve been using as a secondary drive in my previous gaming rig (Windows 10).
I’ve formatted it using ext4, mounted it in /mnt, changed permission to $USER and added to it to fstab.
After reboot system won’t load properly.
I took a picture of the screen after reboot.
How can I fix it?

You have something wrong in your fstab file. Boot with a live usb and chroot and share it’s contents:

manjaro-chroot -a
cat /etc/fstab
1 Like

:point_up:

lsblk -fa
1 Like

@maycne.sonahoz lbslklsblk

1 Like

Thanks guys for quick replies :grinning:
I’m flashing a fresh live USB atm and will be back soon.

Ok, so here is all the info I’ve got:

[manjaro@manjaro ~]$ manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
==> Mounting (ManjaroLinux) [/dev/nvme0n1p2]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
 --> mount: [/mnt/mnt/media-storage]
mount: /mnt/mnt/media-storage: special device /dev/disk/by-uuid/[87a020f6-ed4c-4f95-b530-4fa9f966f7f6] does not exist.
[manjaro /]# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=47B2-FCD9                            /boot/efi      vfat    umask=0077 0 2
UUID=26dca0c8-83d7-429a-b819-dc2236c10de9 /              ext4    defaults,noatime 0 1
/swapfile                                 swap           swap    defaults,noatime 0 0

UUID=[87a020f6-ed4c-4f95-b530-4fa9f966f7f6] /mnt/media-storage ext4 defaults,noatime 0 2
[manjaro /]# lsblk -fa
NAME        FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
loop0                                              
loop1                                              
loop2                                              
loop3                                              
loop4                                              
loop5                                              
loop6                                              
loop7                                              
sda                                                
`-sda1                                             
sdb                                                
|-sdb1                                             
`-sdb2                                             
nvme0n1                                            
|-nvme0n1p1                          299.1M     0% /boot/efi
`-nvme0n1p2                          571.7G    32% /

Remove the square brackets. Then test using sudo mount -a.

1 Like

Ok, so the disk folder has been mounted inside /mnt.

[piotr@Ryzen5 ~]$ sudo mount -a
[sudo] password for piotr: 
[piotr@Ryzen5 ~]$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0   1.8T  0 disk 
└─sda1        8:1    0   1.8T  0 part /mnt/media-storage
nvme0n1     259:0    0 931.5G  0 disk 
├─nvme0n1p1 259:1    0   300M  0 part /boot/efi
└─nvme0n1p2 259:2    0 931.2G  0 part /
[piotr@Ryzen5 ~]$ 

Navigate to /mnt/media-storage. If you want it to show up in file manager sidebar then mount it in /media, which you’ll have to create. It’ll show under removable devices.

sudo mkdir -p /media/media-storage

That’s fine I’m ok with a disk folder but how can I permanently change permision to user?
As it’s all started from permissions. I can’t create folder/files on this hdd.

You need to take ownership.

sudo chown $USER:$USER /mnt/media-storage

https://wiki.archlinux.org/title/File_permissions_and_attributes

It’s strange, it shows as I have permissions in terminal but in thunar I can’t create a folder.

[piotr@Ryzen5 ~]$ ls -l /mnt
total 4
drwxr-xr-x 3 piotr piotr 4096 Feb 13 10:17 media-storage

That is strange, have you tried restarting thunar?

Not sure what’s going on there.

reboot helped

many thanks :grinning:

1 Like

You’re welcome :slight_smile:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.