Ubuntu :: Mount Command No Longer Runs At Boot From /etc/init.d/rc.local

Jul 6, 2010

I run XBMC media center software which is built on a minimal Ubuntu install. I was running a version built on Karmic and I had the following line in my /etc/init.d/rc.local and it always ran without a hitch:

Code:

mount -t cifs -o file_mode=0777,dir_mode=0777 //192.168.1.20/disk7/xbmc_thumbs/Thumbnails /home/kevin/.xbmc/userdata/Thumbnails

Recently, I upgraded to a version built on Lucid and now that fails to create the mount on boot up. Here is the entire contents of the file:

Code:

#! /bin/sh
### BEGIN INIT INFO
# Provides: rc.local
# Required-Start: $remote_fs $syslog $all

[code]....

View 1 Replies


ADVERTISEMENT

General :: Can't Get Mount To Work In /etc/init.d/rc.local Or Fstab

Jul 10, 2010

I'm running XBMC media center which is built on Ubuntu and I'm trying to mount a network share, but I can't seem to automate it. If I manually run:

Code:

mount -t cifs -o file_mode=0777,dir_mode=0777 //192.168.1.20/disk7/xbmc_thumbs/Thumbnails /home/kevin/.xbmc/userdata/Thumbnails

The mount is created and everything works fine. But obviously the mount eill be lost on the next boot. A few months back, when I was running a previous version of XBMC and first instructed on how to do this, I was told to put that command in /etc/init.d/rc.local so the mount would automatically be created at boot. I did and it worked. The other day I upgraded to a new XBMC build (which is built on the newer Lucid Ubuntu) and while the same command creates the mount, putting it in /etc/init.d/rc.local does not create it on boot. Someone suggested the fstab was the better place to create the mount. So I inserted the following in /etc/fstab:

Code:

//192.168.1.20/disk7/XBMC_thumbs/Thumbnails /home/kevin/.xbmc/userdata/Thumbnails cifs file_mode=0777,dir_mode=0777 0 0

That doesn't work either. What am I doing wrong and how can I get this mount auto-created on boot?

View 4 Replies View Related

Ubuntu Servers :: Wrote A Start Up Script In /etc/rcS.d/ That Runs:/etc/init.d/squid3?

Jan 19, 2010

I installed squid on my machine, and for a while it was starting up automatically when the computer would turn on, and I would only have to reconfigure on ip-up for the new dns, etc.Now for some reason, I notice that squid isn't even started.To fix this, I wrote a start up script in /etc/rcS.d/ that runs:/etc/init.d/squid3 startAnd I notice it still isn't starting.So I write "/etc/init.d/squid3 start" and put it in my ip-up.d/ script.Everything in the script is being executed, but the squid server.I've tried reinstalling squid... what am I missing? where does the computer start these services?

View 4 Replies View Related

Ubuntu :: Compiz No Longer Runs?

Jul 5, 2010

I have been running Lucid since it was in beta, and have never had any problems with Compiz. Now, all of a sudden it will not launch. If I try to run it from a terminal I get the following:

Code:
compiz (core) - Fatal: Software rendering detected.
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0

Launching fallback window manager I am running an Intel 82915G/GV/910GL built in graphics controller, and when I run the compiz-check script everything checks out fine.

View 4 Replies View Related

OpenSUSE Install :: EXT4 And Power Outage - No Longer Mount At Boot-up

Sep 24, 2010

Due to a power outage, my EXT4 file systems (which contain /usr and /opt) no longer mount at boot-up. They are, however, seen by disk utility in Knoppix, so I assume the data is still there and that it's just matter of making a connection to it.

View 6 Replies View Related

Red Hat / Fedora :: Updated 10 App No Longer Runs :Failed To Create XIM Input Context

May 14, 2009

I ran "yum update" and updated my new installation. Afterwards: my main application stopped running. It iis an xwindow app. I am trying to run it from a terminal on the gnome desktop. How can I back out my updates and which packages should I try to remove?

Controller screen Buffer depth 1
void PSLr: :resize (int size): 661
QPixmap: Invalid pixmap parameters
auxillary display font size: 8

[code]....

View 1 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

Ubuntu Servers :: Mount A USB Drive In Rc.local With /sbin/mount And UUID Instead Of Fstab?

Feb 6, 2010

I run a headless Ubuntu 8.04 server, which acts as a web, email and file server. I am sticking with 8.04 as it is a LTS release and will upgrade to the next LTS when it is released.

I have two external USB drives, that I need to mount at boot. I have been using /etc/fstab up until now, with the following entries:

Code:

However, as I gather from doing searches is quite common, occasionally I get an error during boot (causing the system to drop to a recovery shell) because the USB drives take time to wake up and the system hasn't found them by the time it reads /etc/fstab.

From doing searches, it seems there is nothing you can do to fstab to fix this, so you need to mount them using an rc.local script instead, using:

Code:

The problem is, as I have two USB drives, their /dev/sdxx location changes between boots. I thus want to use UUID codes as I do in fstab, however I haven't found anything about this.

Does anyone know how I can use the mount command and UUID to mount a drive in rc.local and what options I have to use the mount the drive with the same options that I am using in my fstab entry? Obvisouly, I can't refer back to fstab using the mount command, because then I will still get the boot error issue if they are listed in fstab. And there is no space internally for the USB drives as there is already two internal drives.

View 3 Replies View Related

Ubuntu :: Cron Command: Runs From CLI, But Not Auto?

Mar 10, 2010

I have a script that is basically a series of rsync commands called bkup_all.sh. This script is located in the /root/ dir.From the command line (su'd as root), I can run the script like this:/root/bkup_all.sh > /var/log/bkup/bkup_$(date +%Y%m%d).logThis excecutes perfectly, and all the rsync adn script output is saved in a log file in the intended destination. However, I want this command to run automatically, so again, su'd as root I enter:crontab -ethen enter the following:00 02 * * * /root/bkup_all.sh > /var/log/bkup/bkup_$(date +%Y%m%d).logI want the script to run each night at 2:00am.But, the script does not run. There is no log file generated and I do not see anything in the syslog or system messages to indicate an error.

View 2 Replies View Related

Ubuntu :: Which Command Runs When Change Something In A GUI Menu

May 13, 2011

I explain in with an example:

Imagine you want to know which command is carried out when, after executing gnome-mouse-properties, you go to the Touchpad tab and click on "Enable mouse clicks with touchpad".

Another example:

Imagine you want to know the command that is executed when, after running gnome-appearance-properties, you go to the "Visual Effects" tab and click on None.

I've had a look via gnome-system-log in all the log files of the left with no success. Perhaps the commands that run when one changes things in the GUI menus are logged in some other file. Or perhaps they are not stored in any log. In this case there is probably some terminal command to know it, or some program for this.

I think that know that no xorg.conf is used by default this is something to have into account.

View 3 Replies View Related

Networking :: VPN And Routing - PC No Longer Visible On Local Network

Aug 26, 2010

I am using Network Manager to connect to a VPN server so that I can access some of the computers on the local network there. When I'm connected, I have two problems: All my internet traffic goes through the VPN. My computer is no longer visible on my local network. I waste a lot of time connecting and disconnecting the VPN. Is there any way I can set up a VPN so that I am still on my local network and only requests to 172.x.x.x go through the VPN. I suspect it can be done with iptables, but all the info about iptables goes WAY over my head.

View 8 Replies View Related

General :: AWK Runs In Command Line But Not In Script?

Mar 3, 2011

I am trying to execute an awk script which is called by a shell script. The result is that it always responds with << ^ invalid char ' ' in expression >>

As I do not have command line access, I use a php script as go-around.

On the command line,

Code:
awk --version
gives the following output:
Code:
Command: awk --version
GNU Awk 3.1.3

[Code].....

View 4 Replies View Related

Ubuntu :: Launcher For Quake That Essentially Runs A Shell Scripts That Runs Quakespasm With Certain Options?

Oct 13, 2010

I have a launcher for Quake that essentially runs a shell scripts that runs quakespasm with certain options. Is there a way to add it to AWN?

View 6 Replies View Related

Ubuntu :: Which Command Should Run From The Terminal To Know Which File System (ext3 - Ext4) Runs On

Dec 27, 2010

I'd like to know which command i should run from the terminal to know which file system (ext3, ext4, etc...) my Ubuntu runs on.

View 2 Replies View Related

Server :: Init Uptime Longer Than System Uptime?

Sep 15, 2010

How can init process uptime be longer than the uptime of whole system?

Code:
martin@server:~> ps -p 1 -o pid,cmd,bsdtime,start
PID CMD TIME STARTED
1 init [3] 20:50 Mar 05
martin@server:~> uptime
2:23pm up 559 days 1:42, 10 users, load average: 0.18, 0.28, 0.34
martin@server:~>

View 1 Replies View Related

Ubuntu Servers :: Passing Mount Options To Autofs5 Via Init Script?

May 7, 2010

At work we use autofs4, and we also take advangate of the -DOSNMAE=blah and -DOSREL=blah for our automount maps. We're moving some systems to autofs5 and I can't for the life of me figure out how to pass these options properly. There's no 'localoptions' in the init script anymore as there was for autofs4. I've tried adding the flags to the OPTIONS variable in /etc/default/autofs. That adds them to the global autofs process but then nothing in the automounter mounts.

View 3 Replies View Related

CentOS 5 :: Init Error \ Failed To Mount The Root Filesystem?

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

General :: Working Of Init Command ?

Dec 14, 2009

I would like to know the working of init command.please tell discribe the init script stored in vim /etc/rc.d/init.d/functions. what happen when init changes its run level.

View 2 Replies View Related

Red Hat :: Get Bash: Init: Command Not Found?

Feb 15, 2011

I was reading in one of my redhat books that this command would make linux rered the inittab file but whin I try it I get Bash: init: command not found.

View 3 Replies View Related

Ubuntu :: Fsck Runs With Every Boot

Apr 20, 2011

i have the same issue but with a real install, not a vmware.every reboot fsck says that my main partition was not cleanly unmounted and check is forced.during shutdown the ubuntu does not show messages in a clear way but in random places. however, i am able to see the "/ is busy" message 1 second before reboot/off.my distribution is 10.10 upgraded from 9.10, 10.04

View 2 Replies View Related

Ubuntu :: Can No Longer Mount ESata External HDD

Dec 2, 2010

I have an external eSATA hard drive that has been working fine for months for backing up (I had been rsync'ing to it every night). For my configuration, see [URL]

I can no longer mount the drive with eSATA (doesn't even recognize it). It was mounted on /dev/sdb1. The drive also has a USB ... I tried that and it mounts fine.

So, my data is ok, but I want to resume nightly backups (via eSATA).

Here is some output:

fstab (2 lines below 'cause I swap HDD's between my dock and offsite storage):

Code:
proc /proc proc defaults 0 0
UUID=228d6ffc-c50e-425d-a768-fcb9c22d8383 / ext3 relatime,errors=remount-ro 0 1
UUID=aa75b03b-5037-4b0b-b73b-0c1f017c89dd none swap sw

[Code].....

View 9 Replies View Related

CentOS 5 :: Error Using Init Command To Change Run Levels?

Jun 17, 2010

From runlevel 3 as root, when I attempt to change to runlevel 5 by typing the command "init 5", I get the following error:Id "x" respawning too fast:disabled for 5 minutes

View 4 Replies View Related

Ubuntu :: Hard Drive Runs For 20 Minutes After Boot / Solve This?

May 21, 2010

I have recently completed a fresh install of 10.4 LTS which installed without a hitch. But I have noticed that since I have moved to Lucid on my T43 the hard drive light is constant for at least 20 mins after each boot. Everything seems to run ok albeit during this time apps take a little longer to open as the HD is busy doing some thing...I just don't know what! BTW I am running the Gnome desktop and its a fairly vanilla install.

This didn't happen in the previous Ubuntu version I had installed on here for several months prior.

Does any one have any ideas what this may be or how I could find out what it is that is using the HD for this length of time on boot.

View 8 Replies View Related

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

Slackware :: Auto Mount Is No Longer Working On -current?

Mar 5, 2011

I stuck a flash drive into a usb port this morning, and the device notifier failed to show. I opened Dolphin, and I noticed that nothing that should be mounted was showing up in the left pane. I always have seen my Windows install, as well as another partition that has Slackware. I can navigate to /mnt/vista and its all there. I can also go to /mnt/Slackware and its all there. However, the flash drive does not show.I can manually mount the drive and all is well as root. I can't even tell you when this started. I am using Alien's 4.6 KDE packages with all the deps. I just opened mc and checked everything. HAL is disabled and has been for a long time. All did work after disabling HAL.Its not just the flash drive, it effects anything - music cds, blank media, nothing works automagically. Google hasn't

View 9 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

Programming :: How Can User Runs Bash Script At Boot Of PC?

Dec 28, 2008

I wanna that the pc starts (on/off), the pc arrives to gdm. It waits for an user to log.But but at the boot of this machine, I would like that an user has a script started in the processes (NO X cuz bash script).How can an user runs a script at boot of the PC ? (once only and no one loged)

View 4 Replies View Related

Ubuntu :: Mount FTP Directories To Local Fs - Curlftpfs?

Aug 28, 2010

I'm looking for a way to mount remote ftp directories to local filesystem in order to interact with them as if were local resources. I found several tutorials that recommend curlftpfs, but this project seems no longer maintained (last update on sourceforge goes back to Apr 2007).

So, is curlftpfs still the best choice or is there something newer which I could rely on?

View 5 Replies View Related

CentOS 5 Server :: ISCSI Volumes No Longer Mount After Reboot?

Sep 22, 2011

We have a Centos 5.6 server mounting two iSCSI volumes from an HP P2000 storage array. Multipathd is also running, and this has been working well for the few months we have been using it. The two volumes presented to the server were created in LVM, and worked without problem.We had a requirement to reboot the server, and now the iSCSI volumes will no longer mount. From what I can tell, the iSCSI connection is working ok, as I can see the correct sessions, and if I run 'fdisk -l' I can see the iSCSI block devices, but the O/S isn't seeing the filesystems. Any LVM command does not show the volumes at all, and 'vgchange -a y' only lists the local boot volume, not the iSCSI volumes. My concern is that, the output of 'fdisk -l' says 'Disk /dev/xxx doesn't contain a valid partition table' for all the iSCSI devices. Research shows that performing the vgchange -a y command should automatically mount any VG's that aren't showing, but it doesn't work.

There's a lot of data on these iSCSI volumes, and I'm no LVM expert. I've read that some have had problems where LVM starts before iSCSI and things get a bit messed up, but I don't know if this is the case here (I can't tell), but if there's a way of switching this round that might help, I'm prepared to give it a go.There was absolutely no indication there were any problems with these volumes, so corruption is highly unlikely.

View 3 Replies View Related

Debian Installation :: Live Crashes With Error - 0x8DF6 Init Table Command Not Found

Dec 26, 2014

I'm trying to boot into the Live CD (64bit version) and it dies with an error "nouveau .... 0x8DF6 Init table command not found: 0xA9". Get the same error after I install and try to boot into Debian, it starts booting but errors out later.

Running Intel 4770K on Gigabyte Z97X-UD5H with 8G ram, Nvidia graphics card and several SSDs ...

View 3 Replies View Related







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