Debian :: Lenny Not Booting After Wrong Startup Script Added?
May 14, 2010
I added a script to start a service and Lenny wont boot anymore,its stuck at the point where the script is supposed to load. I used update-rd scriptname defaults I was trying to add NTLM Authorization Proxy Server, by adding a script
Code:
python /root/ntlmaps/main.py
This is the second time i am trying this, that last i did this i added a & at the end( this should send it to the background?) and it worked fine.I have mounted the root file system through live-cd, but iam not able to figure out how to undo this silly mistake of mine
Edit: I just managed to get the system back up. Looks like i was confusing /mnt/etc/init.d with /etc/init.d ...
I added the & to the end of the line, making it
Code:
python /root/ntlmaps/main.py &
I referred to [URL] while doing this exercise and apparently there should be some code for shutting down too, dont really know how to do that, on the command line i use kill 9 <PID>, but theres probably some other way for it here...
I tried running a racing game I downloaded yeterday and the screen just went black and started flashing on and off occasionally for a minute. I rebooted the system and after an error free boot it asked for my login. My problem is that I login fine but only get a terminal prompt and no regular GUI screen...
I tried recompiling a new kernel yesterday (2.6.34) on my debian sarge box, but I ran into multiple difficulties. These difficulties forced me to do a double dist-upgrade to lenny. The new kernel was (seemingly) compiled without any hiccups, and I ran dpkg -i on both the image and the header debs. They didn't install properly into grub, but I think I managed to fix that manually.Next thing I did was rebooting the server. It refused to come back up. Luckily my ISP has recovery tools, so I managed to switch back to the old kernel. It boots just fine with that kernel, but the problem is that there is no ssh daemon running! I can access it through ftp and do limited jobs through php, but nothing big, as I have no root access.Now, enough backstory. My question is: How can I install openssh-server onto the server remotely? I cannot access the server personally, as the server is in a completely different country.
I recently did a single boot install of Lenny-xfce on a Compaq Armada laptop. There were no errors and grub indeed found that Lenny was the only OS on the hard drive and installed itself on the MBR. My problem is that I'm getting an error 18 when booting the freshly installed system from hard disk. I booted into rescue mode and started a shell to take a look around. There are files on the drive and /etc/grub exists. device.map shows dev(0,0) as being mapped to /dev/hda. A search on the forum for "grub error 18" came up with nothing.
Have a little experience with backtrack 4, which is a Ubuntu distro. I'm changing to Lenny due to hardware limitations on my laptop, an older Dell inspiron 7000.
Here's the specs : 400 MHZ, 120 G HDD parted as C: = 20G (has bad sectors, left blank) and D: = 20G Windows part 128 Mb low density RAM ATI Rage Mobility ( not sure of video RAM, I think 8 Mb)
Now I liked running BT and liked the linux work, so when the BT install went south I started to look for another linux distro I can run, the BT tools I use are linux after all. Here's where I hit my stump. I decided to go with the Lenny distro, it already has some of the tools I need, but the first time I installed I had the HDD like this 20G, 20G, 20G,20G, 17.??G. I had windows installed on C: (of course, no problems, yet)
After I installed lenny to D: via an iso I downloaded, the Debian GNU/Linux 5.0.6 "Lenny" - Official i386 xfce+lxde-CD Binary-1, BTW first install was from booting from the disk. After reparting, format, etc. of the install, GRUB boot loader detects my D: Windows, great. Reboot to GRUB boot menu, select ddebian, and it loads...cool, until I realize I don't have synaptic, the tools, and apt isn't going to work unless I can load the linux driver from the cdrom...which I can't find.
Reboot...windows, internet for answers I'm thinkin. GRUB loads fine, select windows and get the following error message "Windows can't start because of hardware configuration problems. Could not read from selected boot disk, check boot path and hardware. Check configuration manual for disk configuration."
It took three days to get Windows reinstalled, and a LL format (zerowrite the drive) but during the process I discovered a possible hdw issue...bad sectors on the C: hdd. Solution: C: 20G = unused, D: = Windows xp. Worked great. No more windows issues, so try it again. This time I used the disks installer from windows. Everything started great, boot menuselected debian, install-graphic, but this time I let the part manager create a drive, 20G from the free space an it appropriately made it's swapfile...when lenny booted it was good, but still no synaptic, cd/rom, couldn't browse the computer.
Reboot to windows to get instructions from someone that really knows what's going on...no windows. exactly same message as before. I was able to boot into debian okay, but couldn't find any drives, utilities, wasn't very much, but I needed my windows and the internet to get lessons. I am familiar with the terminal console and KDE. Can use apt for updating, but prefer using the synaptic. Why does my windows keep disappearing? If I can solve the dual boot issue I can learn the system casually. Right now my config is: C: = 20G, nothing here, still haven't run a scandisk either...next on todo list. D: = 20G Windows install...what I'm using now. I'm not going to attempt to reinstall debian until I receive a efinate answer to the dissappearing config, or boot capacity. Oh, yeah, Did try a fdisk/mbr and fix. this didn't bring it back either.
I recently installed another Linux distro, Kali Linux, alongside my Debian 8 and discovered to my chagrin that my computer boots to Kali's grub rather than to the Debian grub. I had spent some time customizing Debian's grub and would hate to see that effort go to waste. Is there a way I can get my computer to boot to Debian's grub instead? I tried deleting Kali's boot partition with gparted but that did not seem to do anything.
I have installed Koha on Debian Lenny. It does work well, but I have to manually start the koha-zebra-ctl.sh by entering /usr/share/koha/bin/koha-zebra-ctl.sh start The is, however, that this starts at boot from /etc/init.d/koha-zebra-daemon. Like /etc/init.d/koha-zebra-daemon start (does not work now) In the koha-zebra-daemon file I have:
#!/bin/sh # Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh set -e # Must be a valid filename
I had debian lenny running smoothly for a while, then I think the power went out and the computer didn't shutdown smoothly. The next time I started it up I ran into this error: Checking root file system.../etc/rcS.d/S10checkroot.sh: line 274: /sbin/logsave: Permission deniedfailed (code 126)This happens in single user mode as well. I've tried fscking all my partitions but it doesn't help. I've booted in bypassing the normal init and changed the permissions of /sbin/logsave to 777 and during boot I get a message of: The file system check corrected errors on the root partition but requested that the system be restarted. failed!Then the system just reboots automatically without letting me to anything.
I have a laptop with Karmic Koala in dual boot with Lenny. I need to reinstall Lenny however if I do that I will loose Karmic Koala in the grub screen because of the new version of grub that comes with Karmic Koala. Which means that I will need to reinstall Karmic Koala after Lenny so that they both appear in the grub screen at startup. If I reinstall only Lenny is it possible to use Gparted to change the boot back to Karmic Koala and have them both in the grub screen again? Or is there another way around it?
i have a pc having OS Windows XP and Windows 7 installed (hd0,0 and hd0,1). Yesterday i installed Debian 6(hd0,5). But it doesn't show boot menu on startup. It automatically load GRUB and start loading Debian. While i m on GNOME or KDE i can see all the files of windows XP n 7. Is any way to rescue and boot with Windows??? And yah one more thing ... i also dont have menu.lst file in /boot/grub/.
i was trying to use gnome and kde but i don't like them. I tried xfce and it seem to fit my needs but.My computer is used to be powered on for a weeks. While time passes, a process xfdesktop begin to use more and more memory and to free RAM i need to log out and log in again.
I tried squeeze yesterday on my virtual machine and it has 4.6 and seem not to have that bug, RAM usage is static(yes it still works when i write this and have memory usage 34492k, which is not changing for an hours of usage already), also 4.6 is MUCH better than 4.4.
i already tried adding squeeze to "sources.list" but i can see too many dependencies which should be upgraded if i install 4.6, i'm beginning to afraid it can crash entire GUI(or entire system, i can see there is libc6 required to be updated).
I'm just using a plop boot cd...it does what I need, boot from hdc 2. or (hd2,1) I'm having an issue, because Im not sure how to change the mbr so when I boot the computer from the third hdd, it just works...where is the MBR, and how do I edit it, or better, is there a GUI interface I can use?
I have two versions of Ubuntu on my computer - 10.04 and an earlier one that i no longer use. I'd like to free up the space that the old partition is taking, but the computer boots from the grub menu.lst of that old version. How can I make the boot process use the menu.lst in the 10.04 partition?
where is the boot process situated anyway and how can you get at it?
Got a HP dv6-3019wm laptop yesterday and my attempt to dual boot has gone up in flames. I first followed the tutorial [URL]
I might have gone wrong by accidentally making the hard disk 'dynamic' after shrinking the windows partition. Upon booting the computer up after the 11.04 installation, Win7 gave me a 0xc0000225 error. The built in hard drive recovery didn't work and neither have multiple win7 64b recovery disks I have downloaded. A gparted live cd wouldn't boot. On attempting to reinstall 11.04 (so I can just get rid of win7), the installation freezes when it tries to recognize the state of my hard drive.
I've basically turned to dban, but that won't even work. The latest version gives me an error of "no configuration file found" and 1.0.7 give me "non-fatal error", even when I attempt to auto-nuke.
I'm running OpenSuSE 11.2 with an Nvidia GeForce 8200 on board graphics card and am running the drivers installed from the file NVIDIA-Linux-x86-190.53-pkg1.run which I obtained from the Nvidia web site. I also have this vga directive on the kernel line in /boot/grub/menu.lst vga=0x346 Yet, sometimes when the system starts up it will go into 640x480 mode instead of 1680x1050. If I shutdown and restart a few times it will eventually come up in the proper resolution.
I have conky running a simple script on my Ubuntu 11.04 install. Running conky from using ALT-F2 is fine, but I have have conky added to the startup list, and when it runs from this, the conky window is different (ie not integrated with desktop layer). It has some shadowing around the edge and it seems to be on a layer other than the desktop. In addition to this, it stops running after a short while. I then run conky from ALT-F2 again and it's appears as I want, and stays there all day. I have included what I think is the relevant code below from my conkyrc. Has anyone had similar issues with a suitable way to resolve the problem?
i had recently installed fedora 12 in a system running debian lenny in (hd0,0), its grub is installed in mbr and the grub of fedora is installed in the installation partition of fedora .I defined a separate partition /boot for debian but for fedora i used the available space for boot swap and /. i booted with live cd to copy the grub.conf of the fedora to add it into menu.lst of debian but i have got "error 15 : file not found".
Grub use to open an old kernel I tried to edit /boot/grub/menu.lst to open the one I wanted. The edit gets saved but it still opens in the wrong kernel. i.e when edit menu.lst it has no effect. I have tried running sudo grub-update. I've read piles of forum entries to no avail. I am running Jaunty.
Recently installed Centos 5.6 in order to install Plesk on. Not familiar with Linux partitioning so left the default values at install with a few GB of unpartitioned space left free. Followed the instructions on the Plesk installation manual for adding a seperate partition for /tmp - [url]
Then later on I couldn't get in to the server locally via the GUI (which was already switched on), it just had a black screen so I powered the machine off. It then wouldn't boot back up. When it got to e2fsck I got a [Failed]. I also got the same message as in this thread.
I'm now at a remote location. When logging in as root and trying to run fsck to find and fix any disk problems a remote engineer has found that it won't unmount the partitions so I can't really run fsck on it. He's forced the machine to boot for me and I have SSH access but if I reboot the machine I'm quite sure I won't be able to get in again from here.
I just installed drivers for this nVidia GPU from the website. Now, whenever I boot, the screen resolution goes to 1024x768 instead of 1280x800 like I want it to. I have to change the screen resolution every time I boot into Ubuntu.
I have an hp z420 workstation. I bought 8x4Gb of 1600MhZ, ECC unbuffered memory.
Something weird happens now: I tested each individual RAM module by booting my machine with only that module inserted. They are all fine.
However, when I insert all of them, my machine does not boot (and the fan goes crazy).. In particular, the problem happens when I insert any RAM module into a specific slot.
Right now I am using my machine with 7x4Gb of ram, and it is fine. Does it mean I have a hardware problem with one of the sockets?
I am still new to Ubuntu but I am having a problem when booting into Ubuntu 10.10. When I turn on the computer, after a few screens go by I see a boot manager giving me the option of:
1: Earlier Versions of Windows 2: Windows 7 3: Ubuntu
All OSes are working with no trouble. But when I try to boot into Ubuntu, I get another boot screen that states:
1: Ubuntu, Linux 2.6.35-28-generic 2: Ubuntu, Linux 2.6.35-28-generic (recovery mode) 3: Ubuntu, Linux 2.6.35-22-generic 4: Ubuntu, Linux 2.6.35-22-generic (recovery mode) 5: Windows 7 (loader) (on /dev/sda2)
When I choose 1 or 3, quite often it doesn't load up the startup GUI, it loads up some command line crap that I don't understand yet, where I type in reboot until I finally get Ubuntu loaded, this happens several times then finally works to the point I can log in. What could be going on, my install is inside Windows 7, not a full install if that matters. What is the difference between line 1 and 3?
I am just new in Linux. Last week I install Linux Fedora12 into my notebook. The problem is sometime it come black screen when we want to start after booting. It also blank screen when want to tab to other properties in system. It is due to graphic card or else which the system used ATI Radeon.
I installed a new source for multimediaI made the necessary updatessome paquets were created other were deleted.And now I don't have any sound, when it was working before I added the new repository
When I boot into Ubuntu with the Xfce desktop then proceed to terminal to check my IP it is always some random IP as provided via DHCP by the router. If I then go to the cmdline and type sudo /etc/init.d/networking restart then the wifi correctly connects to the router to the one static network address that I have specifically provided for it - as stated in my interfaces file. Why is this not happening on startup?
I would like to upgrade from Win8.1 to Debian 8. This post might require some Wind expertise as well. I have to deal with the dreaded UEFI interface.
I got the iso with the added firmware from here: [URL] ....
The i386 download and it appears to be 334 MB. I pretty got it because I don't want to mess with the wireless controller (been there done that.)
As far as the Wind side goes I disabled secure boot. Just whenever I get to the fancy blue screen, I select boot from EFI DVD. Then it just says it can't load it and asks if I want to continue loading the OS. This might be useful I used the default Desktop Burning Gadget to burn the disk image.
I have just installed Debian and the installation went smooth (net installation). The last prompt was to specify if you want to be able to boot 3 different OS's using grub. I answered yes (I have Win7, Ubuntu and now wanted to install Debian for testing purposes). Is there any way I could manually add entry to grub for booting Debian, for instance from Ubuntu adding to menu.lst?
How can I disable the startup for ubuntu's desktop during booting the system?I would like to start it manually.I tried to remove the /etc/init.d/gdm file but no help.