LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-09-2007, 07:54 AM   #1
carlyno
LQ Newbie
 
Registered: Oct 2006
Location: Bordeaux
Distribution: Gentoo 2006
Posts: 25

Rep: Reputation: 15
removing packages, debian won't boot anymore...


Hi all !
A minor incident, (progress bar not working anymore in bootsplash) led me to some awkward manipulations : I first wanted to reinstall all what goes along with bootsplash, and in particular sysv-rc-bootsplash. But since this package provides irreversibled patch on rc, I thought, well, lets reinstall this as well.... plus the dependencies.
Anyway, I ended up removing, to then reinstall, sysv-rc, sysvinit, modutils, sysv-rc, and sysv-rc-bootsplash (I think this last one is still on thought...). And I should have not messed with modutils, because now.... my debian doesn't boot anymore!!! I get this:
Code:
Target filesystem doesn't have /sbin/init

BusyBox v1.13 (Debian 1:1.1.3-3) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)
And of course, I'm not really sure about the meaning. Is there any way I could get the OS boot again, avoiding complete reinstallation of debian ?
Can I bring it back to life from a live CD; should I recompile the kernel to solve it all ? Any idea and help very welcome !!!

Last edited by carlyno; 01-09-2007 at 11:13 AM.
 
Old 01-09-2007, 08:55 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Do you have the old initrd? Try to boot with it.
 
Old 01-09-2007, 11:37 AM   #3
carlyno
LQ Newbie
 
Registered: Oct 2006
Location: Bordeaux
Distribution: Gentoo 2006
Posts: 25

Original Poster
Rep: Reputation: 15
I suppose I don't. Grubs proposes initrd.img-2-6-18, which is failing,and a recovery mode one, I tried to boot on but fails as well. Booting from a gentoo live cd and mounting the filesystem, I 've reached /boot and found out that there was a initrd.img-2-6-18.bak. I presumed that this was the "recovery mode" one; still I've updated grub's menu.lst to boot on this last one, but same error. I do have a vmlinuz-2.6.17.1,in /boot, that appears in grub's menu.lst as well. I tried to boot on it, but then, nothing happens ! The screen remains black, and there isn't any hardware activity. It just hangs... As a matter of fact, when I check the menu.lst, the part related to 2.6.17.1 doesn't have the initrd flag.

Code:
title         Debian GNU/Linux, kernel 2.6.18-kakulupia
root          (hd0,2)
kernel        /boot/vmlinuz-2.6.18-kakulupia root=/dev/sda3 ro vga=791 splash=silent
initrd        /boot/initrd.img-2.6.18-kakulupia
savedefault

title         Debian GNU/Linux, kernel 2.6.17.1-kakulupia
root          (hd0,2)
kernel        /boot/vmlinuz-2.6.17.1-kakulupia root=/dev/sda3 ro vga=791 splash=silent
savedefault
 
Old 01-09-2007, 12:10 PM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
The .bak is the previous initrd that is kept.
I took the asumption that your initrd was regenerated during your problematic update, but was it really?

If I remember well, the steps are:
kernel + initrd loaded
kernel goes to initrd by uncompression initrd to /dev/ram0, a ramdisk
a specific script from initrd is launched, modules are loaded, and the real / is mounted
pivot_root is used to switch from /dev/ram0 to real /
/sbin/init is executed


So you still seem to be in the initramfs, pivot_root seems to have been executed (we see no message of error)
but /sbin/init is not found like if / wasn't found


With your livecd, can you check if you really have /sbin/init?
Also check the file /etc/inittab which is what /sbin/init reads for executing.

Sorry I have no clear idea.
In busybox, try to do some commands like ls, mount,.. to see what could have gone wrong. Not easy..
 
Old 01-12-2007, 01:46 AM   #5
carlyno
LQ Newbie
 
Registered: Oct 2006
Location: Bordeaux
Distribution: Gentoo 2006
Posts: 25

Original Poster
Rep: Reputation: 15
thanx nx5000 for your answer. If you're still interested in this issue, you can check here
where I'm being "supported".
 
Old 01-15-2007, 05:47 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
This seems very similiar:
http://www.linuxquestions.org/questi...d.php?t=519141
 
Old 01-16-2007, 07:36 AM   #7
carlyno
LQ Newbie
 
Registered: Oct 2006
Location: Bordeaux
Distribution: Gentoo 2006
Posts: 25

Original Poster
Rep: Reputation: 15
You're right nx5000, it just is the same issue... But I've been a bit forward, and since /sbin/init seemed to be missing,I've copied it over from a ubuntu live cd, and I now get:
Code:
Begin: Running /scripts/init-bottom ...
Done.
 * version 2.86 booting
 * cannot execute "etc/init.d/rcS
 * Entering runlevel : 2
 * cannot execute "/etc/init.d/rc"

Debian GNU/Linux 4.0 (none) tty1

(none) login:
Then... my root's login and psswrd don't work of course. Should I get back to the same state before the copying of /sbin/init and try HappyTux solution ? I'm gonna do that and see what happens. If you feel inspired, go ahead, let me know, thanx again for your concern.
 
Old 01-16-2007, 07:51 AM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Well your user/password are not stored in /sbin/init so it should work. The (none) would mean that it was not able to mount a partition and then probably no /etc/passwd file is found.
Yes, use what HappyTux said, its much cleaner than getting "something" from Ubuntu.

You can still boot this broken debian by appending init=/bin/bash in grub menu.lst

Last edited by nx5000; 01-16-2007 at 07:52 AM.
 
Old 01-18-2007, 05:44 PM   #9
carlyno
LQ Newbie
 
Registered: Oct 2006
Location: Bordeaux
Distribution: Gentoo 2006
Posts: 25

Original Poster
Rep: Reputation: 15
I'm now posting in the thread you pointed at me nx5000, thanx again
 
  


Reply



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
Debian on Macbook: can't boot anymore acp Linux - Laptop and Netbook 2 01-09-2007 03:52 AM
removing packages lukman Linux - Newbie 2 06-11-2006 08:02 PM
FC5 does not boot up after removing packages and some tinkering kwei Linux - Newbie 8 06-10-2006 01:23 PM
removing packages robson8112 Linux - General 3 01-21-2004 03:34 PM
removing packages..??? mhd_Ahmed Linux - Newbie 4 08-22-2003 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:03 AM.

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