Laptop stuck at login page after entering the right password

I’m really sorry for stressing you on this… I’m not so good with the shell/bash stuff.

You are supposed to do that inside the /mnt directory, as I explained above…

:arrow_down:

Okay, given that /dev/sda1 is already mounted, just do this… :arrow_down:

cd /mnt
sudo du -ch . | sort -h
2 Likes

What about:

sudo du /mnt -chd1 | sort -h

as /mnt is already mounted :wink:

2 Likes

[manjaro mnt]# sudo du -ch . | sort -h
4.0K ./flashdrive
8.0K .
8.0K total
[manjaro mnt]# sudo du /mnt -chd1 | sort -h
4.0K /mnt/flashdrive
8.0K /mnt
8.0K total

Let’s try this again… :roll_eyes:

:arrow_down:

cd / && sudo du -chd1 /mnt | sort -h

I think it will be nice to send you all the command in my terminal so far.

   ~  sudo su -                                                                                      ✔
[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/sda1]
 --> mount: [/mnt]
mount: /mnt: /dev/sda1 already mounted on /mnt.
       dmesg(1) may have more information after failed mount system call.
[manjaro /]# sudo  du / -chd1 --exclude={/dev,/proc,/sys,/run/user}|sort -h
^C
[manjaro /]# sudo du / -chd1 --exclude={/dev,/proc,/sys,/run/user} | sort -h
^C
[manjaro /]# cd /mnt
[manjaro mnt]# sudo du / -chd1 --exclude={/dev,/proc,/sys,/run/user} | sort -h
^C
[manjaro mnt]# sudo du -ch . | sort -h
4.0K    ./flashdrive
8.0K    .
8.0K    total
[manjaro mnt]# sudo du /mnt -chd1 | sort -h
4.0K    /mnt/flashdrive
8.0K    /mnt
8.0K    total
[manjaro mnt]# ^C
[manjaro mnt]# cd / && sudo du -chd1 /mnt | sort -h
4.0K    /mnt/flashdrive
8.0K    /mnt
8.0K    total
[manjaro /]#

All these are from the terminal on the live USB drive

Whatever you mounted to /mnt, it is not the filesystem, you wanted to look into.

Interrupting a command with ^C :rofl: may prevent it from giving you any usefull results.

2 Likes

I did this because i wanted to run another command and since the initial command didn’t return anything

What is the output of… :arrow_down:

lsblk

… and… :arrow_down:

mount | grep sd
1 Like
[manjaro mnt]# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0    93M  1 loop
loop1    7:1    0 867.5M  1 loop
loop2    7:2    0   1.9G  1 loop
loop3    7:3    0 921.4M  1 loop
sda      8:0    0 298.1G  0 disk
`-sda1   8:1    0 298.1G  0 part /
sdb      8:16   1  14.6G  0 disk
|-sdb1   8:17   1   3.8G  0 part
`-sdb2   8:18   1     4M  0 part
sr0     11:0    1  1024M  0 rom

[manjaro mnt]# mount | grep sd
/dev/sda1 on / type ext4 (rw,relatime)

That doesn’t make any sense. It means you are in a chroot environment.

Okay, now do this… :arrow_down:

sudo du -chd1 / | sort -h
[manjaro mnt]# sudo du -chd1 / | sort -h
du: cannot access '/proc/3709/task/3709/fd/4': No such file or directory
du: cannot access '/proc/3709/task/3709/fdinfo/4': No such file or directory
du: cannot access '/proc/3709/fd/3': No such file or directory
du: cannot access '/proc/3709/fdinfo/3': No such file or directory

Try this then… :arrow_down:

sudo du -chd1 / --exclude={/dev,/proc,/sys,/run} | sort -h

It doesn’t return anything

You need to wait until it does :upside_down_face:

Okay. Thought it’s gonna be a fast stuff.

Is this a LUKS-encrypted drive, by the way? :scream:

It is gona count every single byte on your volume !
This may take some time :innocent:

1 Like