LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-07-2011, 12:00 AM   #1
blink182
LQ Newbie
 
Registered: Oct 2010
Posts: 29

Rep: Reputation: 0
INIT : cannot execute /etc/init.d/rc


Hello there . 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 .
INIT : cannot execute /etc/init.d/rc
Then system stops in the login prompt and I cannot do the login .
I think the problem is due to the incorrect arguments written in the /etc/fstab since everything works fine if I mount the root directory as rw . Here is my fstab :
Code:
# UNCONFIGURED FSTAB FOR BASE SYSTEM
proc    /proc   proc    defaults        0       0
/dev/hdc1       /       ext2    ro      0       0
/dev/hdc2       /etc    ext2    rw      0       0
/dev/hdc3       /home    ext2    rw      0       0
The goal I want to achieve is that the whole system is mounted as read-only besides /home , conf file in /etc such as /etc/network/interfaces and be able to carry out schedule job . I would appreciate your help . Cheers .
 
Old 05-07-2011, 06:25 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,689

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
@ Reply

Hi blink,

Why you would like to have your / file system mounted as ro. By default / is marked to mount as ro in grub.cfg/grub.conf during the boot time but as soon as it hit the /etc/fstab it is mounted with either defaults option or error=remount-ro option.

During the boot time it is used as ro so as to prevent it from getting written if any fault occurs.

Not sure why you would like to have it mounted as ro.
 
Old 05-08-2011, 03:34 AM   #3
blink182
LQ Newbie
 
Registered: Oct 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by T3RM1NVT0R View Post
Hi blink,

Why you would like to have your / file system mounted as ro. By default / is marked to mount as ro in grub.cfg/grub.conf during the boot time but as soon as it hit the /etc/fstab it is mounted with either defaults option or error=remount-ro option.

During the boot time it is used as ro so as to prevent it from getting written if any fault occurs.

Not sure why you would like to have it mounted as ro.
Hi T3RM1NVT0R . Thanks for your reply . Since the system will not be upgraded regularly and the only requirements for read-write are VSFTPD service , changing schedule jobs , updating system time and configuring network interface . Therefore I want to mount the / file system as ro besides /home and /etc to maximize my storage drive's life ......
 
Old 05-08-2011, 03:56 AM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,689

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
@ Reply

You're welcome, well I can understand that you do not do frequent updates on / partition but mounting it as ro doesn't look feasible because it is not only you that do the updates to the system it is the system that also writes to files you can take example of log files under /var in which system keeps logging the events.

I would suggest that you keep the / as defaults in fstab and let it mount as rw partition. If you are are worried about people making changes so I dont think so that regular users can do that. If you are worried about sudoers then you can give sudoers only access that they required not more than that.

I hope this helps.
 
  


Reply

Tags
boot, debianlenny, fstab, init, mount


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the exact diff between init 1,init S and init s challavijay Linux - Newbie 1 08-05-2010 06:51 AM
INIT cannot execute Peter Shepard Ubuntu 4 12-14-2006 12:28 PM
INIT cannot execute ricnoah Red Hat 1 02-19-2006 09:18 PM
init cannot execute /command/svscanboot puter_gk Linux - Networking 1 02-25-2005 11:36 AM
INIT: cannot execute "/etc/rc.d/rc.S justiceisblind Linux - Newbie 12 08-17-2002 10:01 PM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration