Debian :: Delay Init.d Script Until Network Filesystem Is Available?
Oct 27, 2010
I'm having some difficulty starting a service from an init.d script. It relies on the availability of a network filesystem (glusterfs) which is mounted from fstab. The service starts before the filesystem is up, and crashes.I've tried adding "# Required-Start: remote_fs" to the service init.d script, and delaying it by changing the ordering with "update-rc.d service defaults 90", but neither seems to work. If I add a "sleep 10" to the script, that works, but it feels wrong.Is there some way to get the ordering right? To delay starting the service until after everything in fstab is ready to g
View 2 Replies
ADVERTISEMENT
Mar 17, 2010
I haven't been active in Debian for two years back when Lenny was still in 'testing' and noticed that for some reason it is no longer protocol to restart network services using the 'init.d' scripts. I also noticed the same for Ubuntu (which I don't use or could care about) and am trying to understand what is the correct way now for Debian and what changed? I did a search on Google but didn't turn up any results. Is it no longer correct to run:
Code:
/etc/init.d/network restart
View 7 Replies
View Related
May 28, 2011
I installed the latest Debian on a computer to make a backup appliance. No GUI.When the computer starts, everything is okay. The DHCP client is running, the network interface have an address, fine.If I do a /etc/init.d/network restart (or stop + start), no more DHCP client. t is stopped when the interface is down. When the interface is up, I have to start it manually.1 - is it normal ?2 - isn't ifup's job to launch the dhcp client ?3 - can /etc/network/if-up.d be the right place to resolve this ?
View 4 Replies
View Related
Mar 4, 2010
Having trouble booting into Kubuntu originally installed with Wubi.The system returns this error:
Code:
mount: mounting /dev/loop0 on /root failed: Device or resource busy
mount: mounting /sys on /root/sys failed: No such file or directory
[code]....
View 1 Replies
View Related
Oct 11, 2010
I've recently installed 10.10 onto my laptop, a Toshiba Equium A-100. It's been working perfectly for the last few weeks, but today I woke up, booted and got this;
Code:
mount: mounting dev/disk/by-uuid/9f8e1fd1-ca75-4eeb-8afc-a6b7bd756180 on /root
failed: Invalid argument
mount: mounting /dev on /root/dev failed: No such file or directory
[code]....
I'm a bit of a linux newbie, and while I can use the system fine, once we get into a shell I'm out of my depth. My laptop is useless now, and, unluckily, my 2000 word end-of-semester submission is on it. No, I didn't back it up because I wrote it last night. Arrgh.
View 6 Replies
View Related
Nov 15, 2010
I hope that you will be able to help me. I know that my topic may seem the same as some other threads, but there is a twist and it seems that I can't sort things out. I installed Ubuntu on the family's 4 year old Dell about a year ago when Windows stopped working (too many bluescreens!). It seed to be good, until one day when I tried to boot and it listed some codes on a black screen. I then reinstalled ubuntu from one of my disks, and it worked fine... until the entire thing occurred again a week later. This happened once or twice more, until today's problem:
It won't boot into ubuntu and also has white writing on the black background (read this below). I tried to reinstall from a ubuntu install disk, burned additional install disks, made an install usb, and also tried opensuse. They all say the below message when I try to boot into the disk:
Killed
mount: mounting on /dev on root/dev failed: No such file or directory
mount: mounting on /sys on root/sys failed: No such file or directory
mount: mounting on /proc on root/proc failed: No such file or directory
Target filesystem doesn't have /sbin/init.
[Code]...
View 3 Replies
View Related
Oct 1, 2010
I have installed Ubuntu 10.04 .. normally and I installed also some programs; I had problems with the monitor and many times I shutted dow the CPU when I changed the monitor and turned on angain and appears a black screen:after
mount: mounting /dev on root/dev failed: no such such file or dir
mount: mounting /sys on root/sys failed: no such such file or dir
mount: mounting /proc on root/proc failed: no such such file or dir
[code]...
View 3 Replies
View Related
Sep 15, 2010
when I start my laptop (Ubuntu 10), it even doesnt offer log in and writes this:mount: mounting/ proc on / root/ proc failed: No such file on directory Target filesystem doesntt have sbin/init. No init found. Try passing init=bootarg.device scan complete, Attached scsi generic sg2 type 0I tried to restart it several times, but it shows the same. The evening before I used it to show some files on projector and after I disconnected my laptop from it, it was a bit slower, but working. And the next morning I get that message. As I just started with Linux,
View 3 Replies
View Related
Mar 22, 2010
My UBUNTU 8.04 server does not boot anymore : here is the error message :Quote:Target filesystem doesn't have /sbin/initPrevious messages on the boot were :Quote:
kinit: name_to_dev_t(/dev/disk/by-uuid/0a301...a8 = md1(9.1)
kinit: trying to resume from /dev/disk/by-uuid/0a301...a8
kinit : No resume image, doing normal boot...
[code]....
View 6 Replies
View Related
Nov 7, 2010
since yesterday that my ubuntu does not boot. This message appears...Target filesystem doesnt have /sbin/init,No init found. Try passing init=bootarg. (initramfs)
I boot ubuntu-live from a usb flash drive, but i can't mount the partition where i have installed ubuntu /dev/sda6. Either run fsck command. this error appears.... Filesystem mounted or opened exclusively by another program?
View 9 Replies
View Related
Apr 6, 2011
Click here for solution... http://ubuntuforums.org/showpost.php...99&postcount=3So I just realized how stupid I was being trying to run these commands for a NTFS partition... so I searched and used Gparted to check sda2, and also ran
Code:
root@ubuntu:/home/ubuntu# sudo ntfsfix /dev/sda2
Mounting volume... OK
[code]....
View 2 Replies
View Related
Jun 22, 2011
I can't get Ubuntu to boot. The computer isn't actually mine so I don't know exactly what happened, but I think an update went badly wrong...
Anyway, whenever I try and boot Ubuntu, i get this
Code:
Killed
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have /sbin/init
No init found. Try passing init= bootarg
(and then something about initramfs) I've been trying to find out what the error is on the forums, and I think it could be to do with grub not being able to find something, but I really don't know because I don't understand exactly what's going on.
I can load the grub menu, but I can't boot Ubuntu from there. Also, I can't run or install Ubuntu on a live usb because it just hangs at the Ubuntu loading screen.
View 6 Replies
View Related
Sep 1, 2011
Ubuntu has officially jumped the shark. I did an update...restarted and got this:
Quote:
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have requested /sbin/init.
No init found. Try passing init=bootarg
[Code]....
View 9 Replies
View Related
Jun 17, 2011
I had a LiveUSB of CentOS 5.5, so I decided the install it.With no installer,I just copied the files to my hard drive.his was in a multi boot with Windows 7, Ubuntu 9.10, and FreeDOS.I updated GRUB2 and it detected CentOS. I loaded my entry and it failed to mount the root filesystem.I took the initrd0 file from the LiveUSB syslinux folder and added that ramdisk to the entry. Now it finds the root filesystem (/dev/sda9 as Ext3).But it fails shortly after loading /sbin/init. It talks about an init error where it says "File not found!!!".The previous lines involved umounting old filesystems, like /dev.
View 4 Replies
View Related
May 7, 2011
I'm trying to boot Emdebian lenny on my compact flash and it shows the following errors during boot time :
Code:
Mounting local filesystems ... done .
/etc/rc.d/S35mountall.sh : line 45 : uname : command not found .
[code]...
View 3 Replies
View Related
May 11, 2011
After GRUB 2 comes up (I'm running Ubuntu 10.10) and I choose the OS to boot, there is about a 5 second delay where nothing appears to happen after I make the selection -- no disk activity. It happens consistently every time I boot. Again, this is after I choose the OS to boot, so it shouldn't have anything to do with the standard delay to allow me to choose the appropriate OS.Is there a good way to troubleshoot this and determine what is causing the delay?
View 4 Replies
View Related
Mar 12, 2011
Instructions for installing ns-allinone ns2-version 2.27 to the network can be simulated DTN (delay tolerant network).
View 14 Replies
View Related
Mar 20, 2011
I have a script with a command that requires a network connection.
It worked fine with an ethernet connection but on changing to a wireless one, its stopped working.
Question: how can I delay a script command until the network is connected?
View 2 Replies
View Related
Jun 14, 2010
Using Xubuntu 10.04 to connect to some Windows XP shares by adding lines to fstab. The network shares are not mounted at boot, but can be mounted from the command line, after the OS has booted and everything is up. I am suspecting the network isn't up yet, when fstab is processed. I tried adding the option "_netdev" to the relevant network share lines in fstab, but the shares still don't mount automatically at boot up. I read that this option only works for NFS and I am using CIFS. Can someone confirm that _netdev only works for NFS ?
I've seen solutions involving running a mount script after the OS is fully loaded, or running a cron job to periodically check the status of the share and mount if needed. Good workaround but doesn't address the root cause. Is there any other way (besides the _netdev option) to delay mounting of network shares that appear in fstab until the network interface is up ?
View 14 Replies
View Related
Feb 22, 2010
Before upgrading to Lenny there was no noticeable delay between entering a username & the prompt for a password when logging in via ssh. Now there is about a 5-second delay which is rather annoying. There is no delay when logging in through the Gnome UI. Anyone know why the delay is there? Is it something about ssh under Lenny? Is there a setting that can be changed?
View 1 Replies
View Related
Mar 13, 2011
I want to run a command on startup (Via startup applications) that has to wait for another program to run first.I don't seem to be able to use sleep to delay the command as it is stored in a .desktop file.How do I make it run later, preferably without having to create a script just for this one command.Also, how do I make the system start with compiz? Change "/desktop/gnome/session/required_components/windowmanager" ? Or do it the clean way by (Somehow) configuring gnome to use compiz?
View 3 Replies
View Related
Mar 4, 2015
I have moved from a raspberry pi to an olimex LIME A20. I have managed to get everything working correctly except mediatomb. I have a USB drive attached, I believe that mediatomb is trying to read the drive before it's mounted leaving me with an empty database.
After boot I can create the mediatomb database which works until I reboot the computer. What can I try to delay the mediatomb services start?
View 1 Replies
View Related
Jan 26, 2016
Im experiencing a long delay before the gdm login screen appears in debian jessie with kernel 4.4 and also with the distro kernel 3.16
there in the Xorg.log
Code: Select allX.Org X Server 1.16.4
Release Date: 2014-12-20
[ 22.516] X Protocol Version 11, Revision 0
[ 22.516] Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
[code]...
they claim to have fixed the issue after kernel 3.4 so i must have some missconfiguration causing this loop.
View 2 Replies
View Related
Sep 1, 2010
I have debian lenny, when I run an application is slow to load (example: iceweacel open and it takes, I can hold him iceweacel work normally), I tried to change from gnome to another and the same thing, went down some services (samba, squid) and nothing. I open a terminal and it takes, I want to duplicate it and do it fast. From a terminal without X (tty1) with root run mc and moves quickly, also run as root "sudo mc" and takes to boot.Any action done with sudo it takes to run.Can not be what it takes to make starting the applications, not the PC because it is new, and from one moment to another I began to pass this
View 2 Replies
View Related
Jan 1, 2011
I've been dual booting 10.10 with Windows7 for about a month. Today is the first time I've encountered a serious problem.
This morning, nothing functioned properly after trying to open several programs. The computer seemed to be "frozen", although the mouse was working fine.
I decided to reboot, but then encountered an even bigger problem.
It failed to boot and got this message: no init found. try passing init= bootarg
The problem now is that it requires a Live CD session and I keep getting this: GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
In case it matters, I didn't install 10.10 from an ISO, I just upgraded from 10.04.
View 2 Replies
View Related
Jan 26, 2011
When I'm in OpenBox, I often have a termianl (lxterminal) open in the background. The terminals responds quickly when logged in as my standard user. If I, however, use su to switch to root, there's about a 2 or 3 second delay on the output for any command I type. This delay goes away if I type another character or tap the spacebar. That input is read as normal -- I've accidentally answered 'y' to prompts before.
My machine is an ASUS Eee PC 1001P (1GB of RAM, Atom 450) with an 40GB Intel SSD.
View 8 Replies
View Related
Mar 22, 2011
The applications menu editor allows the editing of the menu though not it's settings so how do I remove the menu delay? I want instant menus.
View 8 Replies
View Related
Jan 18, 2015
I have Linux debian 7.7.0 i386-amd64 under VBox 4.3.20 and here is the problem:::
When I open the menu from Linux's top-right corner and click SHUT DOWN..., it shows the dialog with choices, and that Linux guest will automatically shutdown after 60 seconds and I need to change that delay value to 3 seconds. Of course I could just re-click Shut Down -button again, but I don't want to do it. Period.
By Googling I found these "instructions" for UBUNTU:
None of this worked on my 13.04 system. In the end I re-compiled gnome-session.
In gsm_shell.c and gsm_logout_dialog.c change #define AUTOMATIC_ACTION_TIMEOUT from 60 to 5
View 7 Replies
View Related
Jan 20, 2010
Ubuntu 9.10 will not boot! System froze this morning, I restarted and it is now failing to boot. Starts loading grub and I get this message:
mount: mounting /dev/disk/by-uuid/04aa3697-7bc0-45b5-b86a-77a1e6534bd5 on /root failed: invalid argument
mount: mounting /sys on /root/sys failed: no such file or directory
mount: mounting /dev on /root/sys failed: no such file or directory
[code]....
I booted with 9.04 LiveCD discovered the drive could not be mounted-ran fsck -ln and it told me the drive has no valid partition table. I have had intermittent problems mounting flash drives before this, so I'm kind of worried it might be a hardware issue.Also have files on that drive I would rather not lose, so reinstalling is hopefully a last resort.
View 9 Replies
View Related
May 18, 2011
I am very new to linux, and I have a question regarding the filesystem check (fsck). The power recently went out and when I tried to restart linux the following error appears:
*/dev/sda1 contains file system w/errors, check forced it then goes on to say..
*An error occured during the file system check. Dropping you to a shell; the system will reboot when you leave the shell. Give root password for maintenance (or type Control-D to continue) I wasn't sure what to do, but checked some other online forums and they suggested running fsck manually - so I typed in the root password - and used the command, "fsck -A -V ; echo == $? ==" it then gave the following message
*WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage
*Would you like to continue (y/n)
Again, I wasn't sure what to do so i just checked no. I then manually turned off the computer and was prompted at the beginning to press Alt-3. I was brought to another screen and it informed me one of the drives was degraded and suggested rebuilding the array. I tried doing this, but it still brings me back to the original error of, "/dev/sda1 contains file system w/errors, check forced," and the process continues.
Also, when I tried to rebuild the array, I didn't backup any of the data on our home directory before doing this (which was probably a big mistake). After being prompted to type the root password, I was able to give the ls command and look at all the directories...the home directory where our data was stored was empty and I am afraid I may have lost some information. Is there a possibility that data was lost when I was trying to rebuild using the old drives?
View 2 Replies
View Related