3
neodite
7y

I broke it :(

One of my Ubuntu server machines won't boot, I know I shouldn't be asking here but I know we have some linux pros in here.

Don't suppose anyone could give me a hand over discord pretty please?

Comments
  • 1
    Well depends - what for a server home or cloud.
    Do you have a backup system which boots (for Chroot)?
    What do you think is the reason for the problem?
  • 2
    Error msg please
  • 3
    Yeah, 'doesn't boot' will get use nowhere
    Kernel panic? No boot device? Starts but can't reach?
  • 1
    @Kimmax
    My car wont drive, what is the problem?
  • 1
    Sorry been trying to fix it.

    Turned out it was failing at mounting a windows share at boot.

    For some reason it can no longer contact anything on the network via hostname without FQDN.

    Strange :(

    Cheers tho guys
  • 2
    @neodite

    Sounds like resolv.conf got rewritten.
  • 1
    Check the output of:

    dpkg -l | grep -i resolvconf

    There will probably be a line that begins like this:

    ii resolvconf

    That means that any changes you want to persist past a reboot in your DNS search path need to go into:

    /etc/resolvconf/resolve.conf.d/base

    ...in the following format:

    search blarg.org
    nameserver 1.2.3.4
    <more nameservers>

    My guess is that you used a graphical network config app to set your search path, which just hamfisted resolv.conf, ignoring the fact that resolvconf, a default package in Ubuntu now, overwrites it every time the network is brought up.
  • 1
    I did get that response. I have added both the dns servers too base, so does the resolve.conf just get ignored?
  • 0
    @bahua
    Not really, read the description about the problem again :)
  • 1
    @neodite

    Then I'm guessing NetworkManager is handling your name resolution.

    http://bu.tl/vK
  • 1
    @Linux

    I've read it five times now, and yeah, it looks like the problem I described. Non-FQDN local hostnames are not resolving. What would you say is the problem in that case?
  • 1
    Tried running

    nmcli device and get

    Error: nmcli (0.9.88) and NetworkManager (unknown) versions don't match.

    Right to assume this could be the issue? Remove network manager?
  • 1
    @neodite

    After you made the update to base, did you reload resolvconf? Make sure you do that. If that works (ie: the host resolves) then you won't have to mess with NetworkManager at all.
  • 1
    ...but for the record, I do remove NM every time I start using a new install.
  • 0
    @bahua
    Yeah that is maybee my limitation in English that fucks my translation up
  • 0
    There's always something fucking with resolv conf
    Set it to +i and be happy
  • 2
    @Kimmax

    Ha, that's what I used to do. Kind of like shoving a paperclip into the CD-ROM to get your game CD out when it wouldn't eject.
  • 1
    Just removing NM seems to have done it :) thank you :D
  • 1
    @neodite

    Excellent!
Add Comment