my rc.sysinit script has: if [ "$FACTORY_RESET" = "1" ]; then echo 'Reseting to factory config' mount -o sync,remount,rw /boot [ -r /boot/default.cf.2 ] && mv /boot/default.cf.2 /boot/default.cf.3 [ -r /boot/default.cf.1 ] && mv /boot/default.cf.1 /boot/default.cf.2 [ -r /boot/default.cf.0 ] && mv /boot/default.cf.0 /boot/default.cf.1 [ -r /boot/default.cf ] && mv /boot/default.cf /boot/default.cf.0 mount -o sync,remount,ro /boot fi
And I need to change last one to rw or comment it out until I write some other part of the installation, otherwise the whole system is ro and I can't alter or install anything. I guess that when my system boots put everything into rw, create the system and then move everythiong into ro, so I am locked out. If I remove the SD card and put into another system, how can I access the script and change it?
While playing with my Linux box, I edited rc.sysinit in /etc/rc.d/ folder. But now when I boot into run level 3 or 5, I get complain that system cannot run /etc/rc.d/rc.sysinit. I boot into run level 1, and checked its permissions, which is rw-r--r-- . It should be rwxr-xr-x. I tried to use chmod to change its permissions, but it responded that "Read Only file system" Now how can I change its persmissions when in run level 1. In run level 3 and 5, machine does not boot. My box has Fedora Core 2 with kernel 2.6.20.
I have a minimal installation of Ubuntu, with lxde-core and some other apps I really use. Sometimes when I start the system, it hangs and nothing else happens. I hit Esc and then I see:Code:init: Failed to spawn rc-sysinit main porcess: Unable to open console: Input/Output error.I get stuck there, and the only thing I can do is to hold the power button, shutdown, boot again, and pray it will boot fine. Sometimes it does, sometimes it doesn't.
my computer will not boot up and this error message is post on the screen. the permission for this file on my computer reads "-rw-rw-r--", and i know that the correct permission for this file should be "-rwx-xr-x." is there a way where i can re-change the permission?
My .jar file needs and uses some files in the same directory it's in (everything, including the jar was unzipped into said directory). It runs perfectly when I do java -jar file.jar in the command line, but there's trouble when I double-click the file when running from the file system manager. I've tried a custom command under properties ie java -jar, but the problem is that the .jar file doesn't seem to be able to use any of the files in the same directory. When running, the jar can't find any of the files that it needs.
I'm trying to use a software on OpenSuSE 11.3 (64) and am getting an error message similar to the one in the title. I did a bit of background reading on libjpeg.so.62 that the program was asking for. I noticed that I had a file called libjpeg.so.8 in my /usr/lib/ folder. I found a libjpeg.so.62 file online, downloaded it and copied to to my /usr/lib folder, but its not making any difference.
Why do I keep getting .gvfs (gnome virtual file system) file appearing as corrupt in /~/usr directory, I can get rid of it by unmounting, but it re-appears later on. It is causing problems as it interrupts my backups (which are automated) with an error message,ListError .gtk-bookmarks/.gvfs [Errno 13] Permission denied: '/home/jimt/.gvfs'
Asked this on Jul 21, and didn't get any satisfactory answers. Thought i'd ask again before i switch to Ubuntu or go back to Fedora: Has anyone gone to software.opensuse.org: Download openSUSE 11.3 and actually chosen "Installation Medium" as "4.7G DVD", "Direct Link", "32 bit PC", hit the "Download DVD" button and gotten the file "openSUSE-11.3-DVD-i586.iso" which is not 49.0MB?
I mean, the steps above are not rocket science, and not much chance of making mistakes, so i'm not sure how i can get a download popup which specifies that the file is 49.0MB file, if it's not actually that size?
So I use the following to rip audio from one .mp4 file and then generate one .mp3 file.
Code: caleb@linux-vmp1:~> ffmpeg -i a -ab 128000 -ar 44100 01.mp3
Obviously, this takes a file named a and makes a file named 01 that is an mp3. It works great and I have used it many times. The problem is, I would like to rip the audio from several files all at once. I am sure there is a way to do it but I haven't stumbled upon the way to do it.
On both my 32-bit laptop (openSUSE 11.3) and my 64-bit desktop (openSUSE 11.2) I have been unable to find out how to prevent seeing all the "hidden files" when opening files in many applications, including (for example) GIMP, Xournal, OpenOffice, gedit.In the Control Centre "File management" options "Show hidden and backup files" is NOT checked in "File Management Preferences.
I upgrade the system from 11.1 to 11.2 seems everything work fine, no error no warning, after a reboot the consol show : mount error while loading shared libraries: libvolume_id.so.1: Cannot open shared object file: No such file or directory. when I try to repair the system the repair tool cannot find the root partion,
I work for a company that makes portable devices running Linux and I was recently asked to make the underlying file system read-only for "security" purposes. Since the distribution is based on LinuxFromScratch, I know that very little writing happens at run time. So, even if the device runs on a usb flash device, I doubt that putting the root file system RO will be that beneficial. I am actually more concerned about a process actually breaking because it cannot open a file in RW mode than a process going rogue and filling the root file system with log files, etc. I'd really like to ear what kind of advantages disadvantages there really is with read-only file-systems.
Can't log into my XFCE desktop like I normaly do. all the sudden I get notified that my xsession lasted less then 10 secondsLooking at the error I can see this:
Unable to access file /home/username/.iceauthority: No such file or directory
Using failsafe I can start a terminal. From terminal I tried to start X
Code: sudo startx Result: Running on desplay:0
So I tried to run this;
Code: sudo startxfce4 And I get up a graphical desktop.
So this is not a critical situation as I easily can use this method to log on, but as there has been something causing this I would like to be able to resolve this nonetheless. Btw it is not the old chmod trick in play here, cause my .iceauthority file is gone alltogheter.
I need to get the modified date on a file in linux to use in a script.I tried using 'ls -l' on the file, but this caused problems when the date turned from a single digit into a double. The reason for the problem was because I was parsing the result string on spaces.How can I get the date of the last time a file was modified so I can use it in a script? For example, if a file was modified on 1/11/2010, I need the 11.
I am using xubuntu and there are a few types of files on website that instead of downloading and saving and then opening with emacs, I would rather when the radio button choice comes up say open with emacs. I am using xubuntu with xfce, and there is no line for a command to be entered as some ubuntu editions have. In the choice of changing the opening program from mousepad to something else, it says search and allows to navigate to find a program, but I cant find emacs anywhere not in etc/ or elsewhere. So where is its executable to direct the program chooser to?
I have a Linux (Kubuntu) system with a large (~20Gb) file which I would like to mess with. Specifically, I want to copy the entire contents of another large file (~12Gb) to the middle of this file, and keep the bits of the file which are not overwritten.This is what I want to happen, with the text between the pipes representing file contents:Before:
I had a situation in which the the path of the file to be copied is written in other file and I had to copy it using shell script..I can use cp $(cat /home/robert/location.txt) /media/sda1 on normal linux shell...But I am using buildroot script where $(cat /home/robert/location.txt) evaluate to nothing..is just blank..