Welcome, guest!
Members: 46 Social: 6 Topics: 15 Posts: 19
 
Topic: Screwed up something with your IoT and need to fix it? by registered user sams ( 2 years ago )

sams

Posted:
2 years ago
Reply

https://bit.ly/2MKypot

Lets say you screwed up fstab or firewall locked out or something of that nature and the o/pi will not boot. Just use a sdcard reader that you can attach to another o/pi or linux based pc and do this:

if you are using a sdcard reader chances are the dev will be somthing like /dev/sda1 if using a sdcard slot on the device itslf it may be /dev/mmcblk2p4 or such.
fdisk -l will show you

run this for which ever type:
mount /dev/mmcblk2p4 /mnt/
or
mount /dev/sda1 /mnt/
chroot /mnt /bin/bash --login
fix whatever it is, then exit and pop it back into your device.

You need to be logged in to post!