Raspberry Pi not booting

Home Forum Everything Else Raspberry Pi not booting

Tagged: 

This topic contains 8 replies, has 2 voices, and was last updated by Avatar Anonymous 1 year, 8 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #15377
    Avatar
    Anonymous

    Hey, I had my Raspberry Pi working all week, but then today I botched something somehow and I think I might need to wipe it and start over? Hopefully not. Anyway, long story short, when I start it up it now says: “Could not chdir to home directory /home/pi: No such file or directory”

    #15379
    Dan
    Dan
    Keymaster

    is the SD card in place correctly? does it show any of the startup text on the screen?

    I hope you don’t have to reset BUT if you do, here’s a way:
    https://raspberrypi.stackexchange.com/questions/931/how-do-i-install-an-os-image-onto-an-sd-card

    #15380
    Avatar
    Anonymous

    Ugh, sounds like I might have to reset. Yeah the SD card is in place. It only says:

    “Linux raspberrypi 4.1.19+” followed by the date etc.
    “The programs included with the Debian GNU/Linux system are free software…” etc. paragraph
    “Last login: Mon Jan 22 23:20:22” etc.
    “Could not chdir to home directory /home/pi: No such file or directory”
    “pi@raspberrypi:/$” (this line is in white, not color–before when it worked it was in color)

    It was working fine and then I messed around with some commands to try and get a menu bar in the GUI because it wasn’t showing. I rebooted it and then kablooey. Good lesson though and the perfect time for it before there’s anything on there.

    For future, do you have a recommendation for the best way to back up all the files on a pi? I have a card reader but my pc is running on Windows.

    #15387
    Dan
    Dan
    Keymaster

    before you reset, try

    cd /home
    ls

    Maybe somehow the /home/pi folder got deleted and everything else is fine.

    #15390
    Avatar
    Anonymous

    Thanks Dan. after cd /home, ls just returns me to the command line… which I think means it didn’t find any files?

    1. To reset, do I need to reformat my card as FAT and install NOOBS? https://www.raspberrypi.org/documentation/installation/noobs.md

    2. Is my card 32GB (or less)? For bigger cards it has different instructions but I don’t know how to tell.

    #15391
    Dan
    Dan
    Keymaster

    you’ll probably need to download the NOOBS SD card image and use an SD card image writer to copy it onto the SD card. 9_9

    Before that, try

    sudo mkdir /home
    sudo mkdir /home/pi

    and paste the results from

    cd /
    ls -al

    #15392
    Avatar
    Anonymous

    pi@raspberrypi:~$ sudo mkdir /home
    mkdir: cannot create directory `/home’: File exists
    pi@raspberrypi:~$ sudo mkdir /home/pi
    mkdir: cannot create directory `/home/pi’: File exists
    pi@raspberrypi:~$ cd /
    pi@raspberrypi:/$ ls -al
    total 96
    drwxr-xr-x 22 root root 4096 Jun 19 2013 .
    drwxr-xr-x 22 root root 4096 Jun 19 2013 ..
    drwxr-xr-x 2 root root 4096 Jan 15 00:14 bin
    drwxr-xr-x 3 root root 16384 Jan 1 1970 boot
    drwxr-xr-x 12 root root 3300 Jan 23 18:45 dev
    drwxr-xr-x 99 root root 4096 Jan 23 18:45 etc
    drwxr-xr-x 3 root root 4096 Jan 23 18:37 home
    drwxr-xr-x 12 root root 4096 Jan 15 00:03 lib
    drwx—— 2 root root 16384 Jun 19 2013 lost+found
    drwxr-xr-x 2 root root 4096 Jun 19 2013 media
    drwxr-xr-x 2 root root 4096 Jun 15 2013 mnt
    drwxr-xr-x 3 root root 4096 Jun 19 2013 opt
    dr-xr-xr-x 80 root root 0 Jan 1 1970 proc
    drwx—— 2 root root 4096 Jun 19 2013 root
    drwxr-xr-x 14 root root 580 Jan 23 18:45 run
    drwxr-xr-x 2 root root 4096 Jan 15 00:19 sbin
    drwxr-xr-x 2 root root 4096 Jun 20 2012 selinux
    drwxr-xr-x 2 root root 4096 Jun 19 2013 srv
    dr-xr-xr-x 11 root root 0 Jan 1 1970 sys
    drwxrwxrwt 4 root root 4096 Jan 23 18:45 tmp
    drwxr-xr-x 11 root root 4096 Jan 22 21:53 usr
    drwxr-xr-x 11 root root 4096 Jun 19 2013 var

    #15393
    Dan
    Dan
    Keymaster

    looks like all the usual suspects are where they belong. now that /home/pi exists (Because of the sudo commands) the error should be gone next time you log in.

    #15394
    Avatar
    Anonymous

    Hmm. So the “Could not chdir to home directory /home/pi..” is gone now, but it still isn’t booting properly. The same brief start screen:

    “Linux raspberrypi 4.1.19+” I noticed the date here says March…
    “The programs included with the Debian GNU/Linux system are free software…” etc. paragraph
    “Last login: Mon Jan 22 23:20:22” etc.
    “Could not chdir to home directory /home/pi: No such file or directory”
    “pi@raspberrypi:/$” (this line is in white, not color–before when it worked it was in color)

    Any last ditch ideas before I try https://raspberrypi.stackexchange.com/questions/931/how-do-i-install-an-os-image-onto-an-sd-card

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.