Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-18-2015, 06:18 AM   #1
LQ Newbie
Registered: May 2015
Location: France
Distribution: Debian 7/8, Raspbian, Redhat 6/7
Posts: 4

Rep: Reputation: Disabled
Unhappy Debian forgot its name, its nic, ... and bad TTY resolution

Hi there
A few days ago my Debian (Wheezy) server acted odd. I couldn't ssh, the screen was blank, so I've rebooted. And now: low resolution on TTY (I have no X server), and it prompts the following:

(none) login :

It just forgot its name. However, its hostname is still on /etc/hostname. I can login, but nothing works: the nic is disabled, I have to enable it by hand and it doesn't get an IP, ...

So I've booted with a live cd ; it worked. Correct resolution, the nic is up. I've chrooted and I could run apache2, etc. So it's not a hardware issue.

I think I know the cause of the problem: a few days before that "crash" I accidentally removed /etc/* but I could get it back thanks to a recent backup (~6 days old). Some issues remained, like when I wanted to install a new package many errors were displayed. I fix that by editing some symlinks in /etc/rcS.d/ (some files were not symlinks to ../init.d but scripts themselves). After the fix it worked and I didn't make any change so far.

Has someone an idea to fix the problem? As I can access to the files and chroot the HDD from a livecd I can provide logs and so on.

In the worst case I'll reinstall Debian from scratch (I have backups from /home, /etc and /var/www) but I prefer recover if I can.
By the way, it is possible to copy /etc/* from a system to another (in a not-so-dirty way)? To avoid recreate all the users and so on.


PS: sorry for my bad english ; I'm not a native speaker.
Old 05-21-2015, 02:20 AM   #2
LQ Newbie
Registered: May 2015
Location: France
Distribution: Debian 7/8, Raspbian, Redhat 6/7
Posts: 4

Original Poster
Rep: Reputation: Disabled
I edited /etc/rcX.d/ but it changed nothing. So I just re-install the whole thing.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: no access to tty (Bad file descriptor). riolot01 Linux - Software 1 03-01-2010 06:44 PM
tty resolution? zarnold Fedora 1 08-29-2006 09:04 AM
Change resolution in TTY Daylighthater Ubuntu 1 09-03-2005 12:09 PM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM
Bad NIC's speeds running Debian! comawhite Linux - Networking 0 12-29-2003 04:42 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration