Posts: 1
Joined: Mon Apr 16, 2018 9:03 pm

How do you reset login when the cmdline reads differently?

Mon Apr 16, 2018 9:21 pm

I've heard a lot about how to reset logins when the cmdline file reads'

Code: Select all

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
but my file reads;

Code: Select all

quiet ramdisk_size=32768 root=/dev/ram0 init=/init vt.cur_default=1 elevator=deadline 
it is the only cdm file on my SD card and I have tried adding on to the end;

Code: Select all

but this only caused it to display;
/bin/sh: can't access tty; job control turned off
I then attempted to remount the drive with;

Code: Select all

mount -o remount,rw /
The pi then told me;
mount: can't read '/proc/mounts': no such file or directory

Posts: 2230
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: How do you reset login when the cmdline reads differently?

Tue Apr 17, 2018 7:29 pm

This systems uses a root filesystem in RAM.
Assuming you want to mount the second partition of your SD card, you could probably ...

Code: Select all

mkdir -p /mnt/
mount /dev/mmcblk0p2 /mnt
cd /mnt
... and find the contents of the partition there.
If you edit files, make sure you edit the right one, e.g. /mnt/etc/fstab and not /etc/fstab
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Return to “Beginners”