1

i've messed up the /etc/profile file and now i can't login to the rpi. Is there a way to edit this file on windows or linux ?

1
0

Take the sd card and edit the file on another computer. That's the easiest way to go around it.

6
  • when i read the card from windows i cant see the file – Hbib May 7 '18 at 17:23
  • Are you able to see other files? Or none at all? You should end up seeing two partitions (I think) and you will have to "mount" the second partition from the sd card.... and that is "if" windows is able to mount ext3/ext4 (or whatever formatting) the partition has. I have no idea if that's possible with windows these days (would think it's still not possible, but won't assume.. it's been more than 15 years since I used windows semi-seriously so don't know the state of affairs for this). I'd say: try to mount it on a linux box. – eftshift0 May 7 '18 at 17:26
  • Just in case: not that you need to install linux on a computer to do this. If you are in extreme need, you could just use a live CD or live USB to boot on linux without touching a single bit from your windows installation on the computer. – eftshift0 May 7 '18 at 17:28
  • You do not need to install linux to read linux file systems. There is software available to access linux fs on windows. Just search how to access linux fs on windows on google @eftshift0 , Hbib. – scitronboy May 7 '18 at 19:45
  • 1
    Your comments and clarifications belong in your answer, not the comments. Please edit your answer accordingly. – Steve Robillard May 7 '18 at 20:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.