RE: Slackware Linux - Locked Out OR Slackware Cannot Boot

2 views
Skip to first unread message

Kiptoo Kibowen

unread,
Mar 22, 2026, 3:14:37 PMMar 22
to Nairobi GNU/Linux User Group
Jambo,

Please find attached documentation on how to "reset" your root passwd in case you are locked out :)

==BEGIN==SECONDS FROM DISASTER - BOOTING SLACKWARE PARTITION USING BOOT CD/FLASHDISK ====
Also, in situation where ELILO (UEFI) or LILO cannot boot your Slackware partition despite you hard disk being OK, then:
1) Boot from Slackware Linux Boot CD/Flash

2) Used fdisk command (fdisk -l) to list and find your active Slackware partition that failed to boot

3) If the partition was /dev/sda1, then mount the disk in /mnt directory using command
         mount /mount/sda1 /mnt

4)  Next,  prepare three virtual directories to be used by the environment to make your Slackware partition usable: 
> /dev, a directory with virtual files that represent hardware devices
> /proc, a directory with virtual files that represent processes 
> /sys which contains the kernel and other system files:

Command:
mount -o bind <{boot CD/Flash virtual directory}>   <{actual Slackware directory}>

(bind option simply makes the actual Slackware directory available somewhere else .... at the Slackware boot CD/Flash)

    mount -o bind /dev /mnt/dev

    mount -o bind /proc /mnt/proc

    mount -o bind /sys /mnt/sys

5) Since the actual Slackware directory is mounted as well as special virtual directories, to switch over from your Slackware boot CD/flashdisk, use the chroot command to tell Slackware that then new root partition / is not in the Slackware boot CD/Flashdisk but rather the actual Slackware partition mounted in /mnt

    chroot /mnt /bin/bash

6) Repair/rebuild you boot loader with such tools as lilconfig or eliloconfig (UEFI) then reboot

7) Enjoy!

==END==SECONDS FROM DISASTER - BOOTING SLACKWARE PARTITION USING BOOT CD/FLASHDISK ====


Please note that documentation is more than 15 years old but may still be useful.

Cheers & Enjoy!

Regards,


Ibrahim Kiptoo Kibowen
Tel: +254 726430830
Email: tkib...@gmail.com

("Are you sure .... Look again ....")
30 - root password.pdf
Reply all
Reply to author
Forward
0 new messages