General :: How To Write To A Rc.sysinit On A Tempfs

Feb 25, 2011

my rc.sysinit script has:
if [ "$FACTORY_RESET" = "1" ]; then
echo 'Reseting to factory config'
mount -o sync,remount,rw /boot
[ -r /boot/ ] && mv /boot/ /boot/
[ -r /boot/ ] && mv /boot/ /boot/
[ -r /boot/ ] && mv /boot/ /boot/
[ -r /boot/ ] && mv /boot/ /boot/
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?

View 3 Replies


General :: Rc.sysinit File In Opensuse?

Aug 19, 2010

I want to edit the file /etc/rc.sysinit.But this file is used in redhat systems. Iam using opensuse 11.1, to find the corresponding file for the same in opensuse.

View 1 Replies View Related

General :: Change Permissions Of Rc.sysinit In Run Level 1?

Apr 6, 2010

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.

View 3 Replies View Related

Fedora :: Reformat Flash Drive Mounts As Tempfs?

Oct 15, 2009

In trying to get rid of GPT I somehow hosed my flash drive - now when plugged in and I run df - I see tempfs /dev/shm - is there anyway I can somehow repartition, reformat my flash drive ?

View 1 Replies View Related

CentOS 5 :: Can't See The Swap As A Separate Partition Although There Is A 16GB Tempfs Mounted As /dev/shm

Aug 10, 2010

I recently installed Cent-Os on a server and changed the default partitioning to have 2 partitions - 1 main area for everything and a swap partition of 8Gb After installation I cant see the swap as a separate partition although there is a 16GB tempfs mounted as /dev/shm Is this right ?

fdisk -l shows :-
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 13 104391 83 Linux
/dev/cciss/c0d0p2 14 17844 143227507+ 8e Linux LVM
(first partition being non-lvm boot)

View 3 Replies View Related

Ubuntu :: Boot Error: Failed To Spawn Rc-sysinit Main Process?

May 28, 2010

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.

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

CentOS 5 :: Cannot Execute The "/etc/rc.d/rc.sysinit"

Jan 28, 2011

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?

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


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 Script To Send General Mail To Users At 9AM Everyday In 4?

Mar 3, 2010

I want to write a shell script, so that at 9AM every morning a general will be sent automatically to my network users E-Mail ID. My users are as follows: akhtaruzzaman@a[URL], ariful.[URL] etc.

Below is my little effort:
# !/bin/bash
userlist=`cut -f 1 -d : /etc/passwd`
mail -s "mailbackup" << END

keep mailbackup in another drive daily for security purpose

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

General :: Different Write Through Put On The Same Disk?

Apr 5, 2011

I am using kernel, and my hard disk is West digital WD10EARS-00Y, 1TB. This disk is just for data, I made 2 partitions on it, each has half. And I have another small disk for system. I am using ext3.

this is my fdisk /dev/sdc
Device Boot Start End Blocks Id System
/dev/sdc1 1 60800 488375968 83 Linux
/dev/sdc2 60801 121601 488384032+ 83 Linux


I ran some dd to test the write throughput on /dev/sdc2. If I run it in /data2, I got around 70MB/s. If I create some directory, say /data2/dir/, and run dd again, I might get 60MB/s. Sometimes I still get 70MB/s, sometimes I get 60MB/s, differs for directories.

I wonder if this is because the allocation policy of file system, ext3, or this is from my hard drive?

View 7 Replies View Related

General :: Can't Write To A File

May 24, 2011

I'm writing a script/plugin for Nagios for testing a WebLogic server.. I redirect some output to a file, and then i read that file to get some data, but i can't seem to write to that file with my script :s... this is the most important code


* EDIT * When i execute this script through a local terminal (PuTTy), it works but when i execute it from Nagios, it doesn't work..

View 5 Replies View Related

General :: What Are Hooks And How To Write Them

Mar 29, 2011

what are hooks and how to write them

View 2 Replies View Related

General :: Write To System Log?

Apr 27, 2011

I'm using Ubuntu 10.0.4. I downloaded an old script for starting/shutting down a service I have, and evidently "initlog" doesn't exist anymore. What is the correct way to write to the boot (system?) log?

View 2 Replies View Related

General :: How To Write A Script

Dec 12, 2010

Can anyone tell me how to write a command that open2 mozila firefoc at 3 p.m. on monday using CentOs 5.

View 16 Replies View Related

General :: How To Write C Libs To Php

Mar 7, 2011

I need to use a lib developed by me in c in my php app but i don't now how. I will use it in Linux.

View 2 Replies View Related

General :: How To Write Grub On Another HD

Feb 5, 2010

I have XP on the boot HD, Ubuntu 8.04 on the other HD, and grub on the MBR of the Windows side. Then the Windows HD went bad and I need to get grub onto the other side so I can change the boot sequence to what was the second HD (the Linux one) and abandon the Windows side. Booting from a live CD is no problem, but I can't figure how to install grub onto the Linux side, which has been partitioned. I know where menu.lst is, and have backups of it as well.

Is this something that needs supergrub, or can a simple write to the proper place be done in a terminal window?

If switching the boot sequence is not enough (don't see why it shouldn't be) then I can also switch the jumper configurations on the two hard disks. But I don't think that should be necessary.

View 4 Replies View Related

General :: How To Write Over Current OS

Jun 11, 2010

I have an old Mac OS (Tiger) and the new OS are not backwards compatible with computers as old as mine. In the reading I've found they explain how to partition the hard drive, but this is not what I want. I only want to have the Linux OS.

View 14 Replies View Related

General :: Write An SPI Driver?

Sep 21, 2009

I am keen in understanding the Linux SPI Framework and how to write an SPI Driver.So could anyone kindly show me any good reference for understanding the Linux SPI Framework.

View 2 Replies View Related

General :: How To Write Own Shell

May 26, 2011

how to write own shell in linux?i want to know procedure of shell programming.

View 5 Replies View Related

General :: Best Way To Allow A User To Write To The /var/www Directory?

Mar 3, 2010

On my laptop for testing, I simply chown each subdir of /var/www to my myuser:www-data. But, now that I am setting up a public facing server, I'm wondering if this is the proper way to do so? If not, what is the best way to allow a non-root account to write to /var/www.

View 4 Replies View Related

General :: Can't Write To Raid On Fedora

Mar 17, 2010

I just did a fresh install of Fedora 11 and added Raid 1 following this tutorial: [URL]

Now I see the filesystem when I open 'Computer' in the GUI, and I open it and see 'lost+found', but i can't write to the drive. The option is simply greyed out. And when I view Properties on the drive and go to Permissions, it says 'The permissions of {driveid} could not be determined.'

View 1 Replies View Related

General :: Able To Write On Stdout But Not In A File

Aug 16, 2011

I want to keep a trace of the URL I visit, so I use a command line like this:

tcpdump -ien1 -v -X 'tcp port 80' | sed -nl
's/^.0x[0-9a-f]{4}:.{43}(.)$/1/p' |perl |perl -pe


I also tried redirecting stdout and stderr to /tmp/out, it's still empty. The file has write access. I have no idea what it can be. Is there anything else than stdout and stderr?

View 2 Replies View Related

General :: Write Device Driver For Pen?

Apr 6, 2010

If I were asked to write a linux device driver for a pen, How should I start?

View 4 Replies View Related

General :: Cannot Write To SD Card Anymore

Dec 24, 2008

I am using OpenSuSE 11.0
KDE 3.5.9

I was able to copy 227 images to a brand new 2GB memory card and I am only using 8% of the card and now I can't write to it anymore?

Filesystem Size Used Avail Use% Mounted on
df -h returns this : /dev/sdd1
1.9G 136M 1.8G 8% /media/disk-2

This isn't the first time this has happened either. Just the last couple times I didn't really care enough to pursue it. But now I am trying to load a card for my daughters digital photo frame and I can't because now all of a sudden I can no longer write to the drive? The exact error message I get is: "Could not write to /media/disk/image.jpg" and when I try to create a new folder, I get a disk full error message? How in the heck is this possible when I am only using 136MB of 2GB of capacity?

View 5 Replies View Related

General :: Figure Out How To Write An Awk Script

Jul 5, 2011

I am trying to figure out how to write an awk script(or something better if it exists) to read a text file that contains lines like below.

4517-s-1295546289-10:58:09-2011-01-20.wav | 19990 KiB | 2940.5 KiB/s | binary | 100%
4517-s-1303247233-15:07:13-2011-04-19.wav | 167 KiB | 2918.3 KiB/s | binary | 100%
4517-s-1301431748-14:49:08-2011-03-29.wav | 36220 KiB | 2589.3 KiB/s | binary | 100%
4517-s-1295974735-09:58:55-2011-01-25.wav | 20038 KiB | 2646.0 KiB/s | binary | 100%
4517-s-1295648478-15:21:18-2011-01-21.wav | 45561 KiB | 2154.1 KiB/s | binary | 100%
4517-s-1300384178-11:49:38-2011-03-17.wav | 6752 KiB | 2216.0 KiB/s | binary | 100%

I want to find lines that start with 4517-s and end with 100% and delete them from a directory.

View 14 Replies View Related

General :: Removal Of Write Protection On A USB?

Oct 5, 2010

I have couple of USB modules. They are full of unwanted Windows files.I want to remove everything and format it.The message is it is write protected. The command fdisk -l gives the following:

Disk /dev/sdc: 2008 MB, 2008416256 bytes
57 heads, 56 sectors/track, 1228 cylinders
Units = cylinders of 3192 * 512 = 1634304 bytes


View 5 Replies View Related

General :: VIM Settings To Write More Efficiently

Jan 18, 2010

I really enjoy using VIM to write python, but I recently tried to use it to write some essays for school. Are there any configurations that I could change in order to make writing longer essays easier using VIM? For instance, a way to be able to just jump one line (on the computer screen) down when I press the K key instead of jumping to the next paragraph?

View 5 Replies View Related

Copyrights 2005-15, All rights reserved