Ubuntu :: How To Write Init.d Script

Mar 10, 2011

Actually, I want to add my programe called 'fw1loggrabber' to be added once the computer boot (without considering specific time / without CRON). I have check in internet, what should i do are create an init script then make a symbol link under /etc/rc2.d for start and stop the programe. I have modify "Skeleton" script that i find from /etc/init.d/ to be suitable to my programm

[Code]...

View 4 Replies


ADVERTISEMENT

Ubuntu :: Computer Seemed To Be Frozen - Reboot - No Init Found. Try Passing Init - Bootarg"

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

Ubuntu :: Error - No Init Found - Try Passing Init=bootarg

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

Server :: Diffrence /etc/init.d And /etc/init.d/rc.d Scripts?

Jul 29, 2010

me the difference between /etc/init.d scripts and /etc/init.d/rc?.d scripts.

View 3 Replies View Related

Ubuntu :: Wont Boot - "no Init Found. Try Passing Init=bootarg"

Jan 31, 2011

While I was using my computer a few days ago, the terminal stopped working properly, so I tried to reboot, and when it started up again it wouldn't boot and said "no init found. try passing init=bootarg"

This has happened twice before, so I really need to figure out what keeps happening, otherwise I can't continue to use linux. i reinstalled both times before. i think that this is caused by a process that prevents me from using the hard drive, because when I try to check the disk in the terminal or in gparted, it says Device or resource busy while trying to open /dev/sda1. Filesystem mounted or opened exclusively by another program?

Also, in the disk utility, in the lower right corner of the filesystem it has a spinning "loading wheel".(i'm not sure if that means anything)

I am using ubuntu 10.10, but am not sure what kernel I am using, but i tried a few different kernel options(there's three of them at start up). safe mode does not work either.

View 3 Replies View Related

Programming :: Init Scripts In /etc/init.d?

Sep 17, 2010

I have written an init script and placed it in /etc/init.d/ directory.What I would like to know is, will the script run automatically or we need to install the script using "install_initd" command.If I have to invoke this command manullay, what will be the best place to do this ? Can I add this to "/etc/init.d/rcS" file

View 6 Replies View Related

Debian :: INIT : Cannot Execute /etc/init.d/rc?

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

Software :: Stuck In Init 3 Although Indicates Its Init 5?

Mar 17, 2011

openSUSE 10.3 on Itronix IX260+ Stuck on command line, init 3, and all attempts at graphic init 5 fail. Get these messages:(EE) No devices detected; Fatal screen error: no screens found; AIGLX disabled Primary Device is PCI 01:00:0kernel:device-mapper:multipath round-robin:version 1.0.0 loaderkernel:device-mapper:table:253:0:multipath: error getting device
kernel:device-mapper:ioctl: error adding target to tableProblem would seem to be with the device-mapper, but have no idea how to fix it.

View 3 Replies View Related

General :: Kernel Panic - Not Syncing - No Init Found - Try Passing Init - Option To Kernel

Apr 19, 2011

Im am building a Linux distro. It will be very tiny and fast.

I only have a minimal linuxkernel (bzImage) who is 1,2 mb big. And then I have Busybox who is 174,6 kb big.

The commands in busybox is: cd, ls, mkdir, rmdir, wget, httpd, clear, rm, poweroff, halt, reboot, fdisk, mount, umount, free, and cp.

When I compiled the kernel i use initramfs/initrd function and point it to a folder where initrd/initramfs source is.

The kernel works OK with others initramfs/initrd files. But not with my own.

Quote:

Here is how the end of the kernelcomplie look like.

Quote:

Here is my init file who is the initrd/initramfs source.

Quote:

The initramfs folder contains "bin" (folder) and "init" a file. No more.

The problem is that the kernel cannot find/read init file.

View 4 Replies View Related

Hardware :: Mtrr: Type Mismatch For C0000000,10000000 Old: Write-back New: Write-combining?

Jan 31, 2011

solve the following problem...mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combiningThis i am getting many lines in DMESG.

View 10 Replies View Related

Fedora :: Erroneous Write During File Extend. Write -1 Instead Of 4096

Nov 17, 2009

Ive installed Gaussian '03 on fedora Core 10, but I'm unable to run it. It aborts and i get the following error

Code:

Erroneous write during file extend. write -1 instead of 4096
Probably out of disk space.
Write error in NtrExt1

View 3 Replies View Related

General :: Write A Shell Script Which Will Simultaneously Collect OS User Information And Write In An Individual Text Files?

Feb 17, 2010

I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.

View 8 Replies View Related

Ubuntu :: Can't Write To USB On 11.04 \ Can't Write To USB On Natty?

May 3, 2011

I can't write to USB on Natty. I can read the files and copy them to my netbook fine, but I can't change anything, I can't write or delete files

View 1 Replies View Related

Ubuntu Installation :: Disk Space - Failes On A "E: Write Error - Write (28 No Space Left On Device)"

Jan 4, 2011

df -h [URL] I did the following command to find everything is in /usr or /var, then tracked it down to /usr/lib and /usr/share as the main offenders, but out of all the directories none are more than 1mb or so.

du -sh /* | sort -gr | head -n 5

I tried to uninstall firefox, which is what got me in this mess in the first place, the log claims it will remove ~240 mb but failes on a "E: Write error - write (28 No space left on device)" [URL] If I could juggle something onto an external hard drive so I can uninstall firefox I would be out of the wood. Failing that I believe a new install is in order.

View 1 Replies View Related

Ubuntu :: Init / Telinit Does Not Seem To Work?

Jan 26, 2010

I just installed my machine with ubuntu 9.04. When I run "init 3" or "telinit 3", nothing happens. I need to exit the X server to install a video driver.

View 3 Replies View Related

Ubuntu :: Changing The Init Level To 3 On 10.04?

May 11, 2010

How do I go about changing the init level to 3 on ubuntu 10.04?!? Where is the old inittab file? Do I need to make? I want to boot to a console.

View 3 Replies View Related

Ubuntu :: Init.d Startup Script ?

Oct 24, 2010

I have a startup bash script to give the user options at startup (launch firefox etc), however it causes ubuntu to hang on the loading screen with red things at startup. I dropped into command line and removed it, so that is definitely the problem. The script works...does anyone know if having a startup script in init.d can open a terminal to interact with the user, and why this script causes ubuntu to be unable to startup?

View 4 Replies View Related

Ubuntu :: OS Became Unresponsive - No Init Found

Apr 27, 2011

I've been using ubuntu for around 4 months now and have never had a problem until recently. My OS became unresponsive all of a sudden and all I could do was force shutdown my laptop by holding the power button. When I turned it back on, I was given the
"No init found. Try passing init= bootarg" error.
I have looked around online and most solutions point towards a live cd, which I don't have.

View 2 Replies View Related

Ubuntu :: No Init Found, Cannot Fsck?

May 21, 2011

I have a Dell Mini 12 running what I think is Ubuntu 10.10 Netbook Remix. It won't boot all of a sudden, saying 'No init found'. I've been through [URL].. which is VERY close to my problem but I cannot get Disk Utility to work when running off my Live USB. Asking it to check the hard drive results in it telling me the filesystem is 'not clean'.

View 2 Replies View Related

Ubuntu :: /etc/init.d/oracle-xe Is Missing?

Jul 24, 2011

I installed oracle xe second time on ubuntu, this time it did not created following script

/etc/init.d/oracle-xe

what I am missing?

View 2 Replies View Related

Ubuntu :: Can't Execute A Symlink In /etc/init.d?

Aug 22, 2011

So, I made a bash script that I need to be executed on booting, I created it in /etc/sbin/mount_folder.sh

Code:
sudo chmod +x mount_folder.sh
sudo ln -s mount_folder.sh /etc/init.d/mount_folder.sh
Then I try to:

[Code].....

Also, if I create the symbolic link in the same folder I can execute it normally

View 5 Replies View Related

Ubuntu :: Init From Text Mode In 9.10?

Aug 10, 2010

I am willing to boot up in a text mode, and then start X windows when I want to.I found the procedure Ubuntu used is different from other distribution. Would some one give me some hint?

View 5 Replies View Related

Ubuntu Servers :: Disabling GUI From Init Scripts?

Jan 29, 2010

I have a headless Ubuntu computer which is primarily use as a server but which has Ubuntu desktop edition installed. I use X forwarding through SSH occasionally to use GUI programs so I am not looking to remove them. However, I would like to disable any GUI elements that would be started automatically when the computer is booted. Is the graphical login screen the only thing that would be run? or is nautilus, gnome-session etc. started as well? How would I go about removing the necessary entries from the init scripts?

View 2 Replies View Related

Ubuntu Networking :: /etc/init.d/ssh - Setting Options ?

Feb 23, 2010

I have a problem with ssh, in that it's extremely slow when using putty to connect from Windows. A bit of googling suggested that I should use -u0 as a startup option since there's no DNS entry for this machine.

So, at the risk of sounding stupid, how do I put this options in to the /etc/init.d/ssh file? I tried adding it in the the "set" part but got an error, tried adding another "set" line and got an error and tried adding it to the first command there, but also got an error! Where does it go?

View 4 Replies View Related

Ubuntu Servers :: Where Is Samba In Init.d Directory

May 19, 2010

I just installed ubuntu 10.04 on a pc... the server edition. i went to restart samba and it is not in the init.d directory. is there a different folder for server plateforms? cause im use to my 9.10 desktop edition.


also one more question, when i "ls" the /ect/ directory of course i cant see the whole thing because my monitor only shows the bottom of the file, is there a way to list it like the "more" commands, or possibly scroll up?

View 9 Replies View Related

Ubuntu :: Apply Dependency In Init.d Scripts?

May 29, 2010

Is there any way to apply dependency (order) to the execution of init.d scripts ?
I wrote a script and put it in init.d folder and then executed the relative update-rc.d command, but the problem is that the command fails executing on boot time, but it executes with no problem manually. I found that it requires another service (mysql) which I guess it's not ready in time which the scripts starts.

View 1 Replies View Related

Ubuntu :: /init:line7: Can't Open /dev/sr0 :No Medium

Jun 18, 2010

I have made a bootable pen drive (2gb) and have a 30gb partition on my hard drive for unbuntu Im trying to try the OS by USB at the start into The BIOS If ya gets what i mean It successfully loads The Options menu where you pick a choice like run from usb So i run from usb and and it Loads Ubuntu just the purple background and the beans underneath it loading forever in the Logs this comes up

/init:line7:cant open /dev/sr0 :No medium

It will keep going like that anyone know whats wrong? Im using Windows 7 Build 7100* with a computer i built a year ago Intel e8400,6gb Ram, Asus P5Q SE Pro,and 100gb left on hard drive (30 Excluding cause i partitioned it =P) how do i remove the Floppy drive out of BIOS? i have it at the boot up priority at the last 1st is my hard drive then USB then CD Drive

View 3 Replies View Related

Ubuntu :: Missing /etc/init.d/ssh After Compiling Openssh?

Jul 1, 2010

I had to compile openssh so I could have a version with the HPN-SSH patch applied. The compile seems to have gone fine, but oddly enough I have now have no ssh script in my /etc/init.d directory. So I have no easy way of automatically starting openssh-server.Here are the configure options I used when compiling openssh:

Code:
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam

View 1 Replies View Related

Ubuntu :: Back To Desktop Environment From Init 1?

Oct 24, 2010

I have been using Debian desktop environment for years. There, I can sudo init 1; do maintenance; exit to desktop environment again. But when I `resume' from Ubuntu-10.10's maintenance mode, I can just Ctrl-Alt-F1 to login and there seems not an interesting process running.

View 4 Replies View Related

Ubuntu Servers :: How To Start Virtualbox Using Init.d

Dec 16, 2010

recently installed phpVirtualBox and VirtualBox on my 10.04 LTS ubuntu server it's getting annoying having to type

Code:
/usr/bin/vboxwebsrv -b --logfile /dev/null >/dev/null
every time i reboot the server

tried for hours to make an init.d script that will run it but failed..basically I just want it to automatically run the above command on every boot.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved