2

I just need to edit the /etc/network/interfaces file in my otherwise-functional Debian installation, but I can't boot up because it gets stuck at "Configuring network interfaces". So how can I access this file without booting up? Do I need a Live USB?

I'm using the amd64 port of Debian 7.8.

  • what version of Debian? – strugee Apr 5 '15 at 1:03
  • debian-7.8.0-amd64-netinst.iso – Tomblarom Apr 5 '15 at 1:04
2

You don't need a live environment for this. You just need to boot into a rescue environment, which is easy.

When GRUB comes up, hit the e key, so that you can edit the kernel command-line. Find the line that begins with "linux", use the arrow keys to move down to the end of it, and type single (with a space before it). Then hit either Ctrl-x or F11 (or F10, I can't remember) to boot.

This will drop you into a recovery shell. From there, just type nano /etc/network/interfaces, edit the file, hit Ctrl-o to save, Ctrl-x to exit, and type exit to boot.

  • Ohh well, thank you so much! I'm new to linux and reinstalled my debian completely new :) I can use that further ;) – Tomblarom Apr 5 '15 at 1:24
  • @8m47x sure thing! if it helps you remember, single stands for "Single User Mode", where the only user is the superuser, root. – strugee Apr 5 '15 at 4:42
  • 1
    @8m47x since you're new to GNU/Linux, I'll also point out that (unlike Windows) usually, you can fix your problems without reinstalling. just ask on something like this site and be patient :) – strugee Apr 5 '15 at 4:44
  • This is awsome! I'm so glad to be in this community! – Tomblarom Apr 6 '15 at 9:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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