LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   INIT : cannot execute /etc/init.d/rc (http://www.linuxquestions.org/questions/debian-26/init-cannot-execute-etc-init-d-rc-879296/)

blink182 05-07-2011 12:00 AM

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 .

T3RM1NVT0R 05-07-2011 06:25 AM

@ 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.

blink182 05-08-2011 03:34 AM

Quote:

Originally Posted by T3RM1NVT0R (Post 4349122)
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 ......

T3RM1NVT0R 05-08-2011 03:56 AM

@ 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.


All times are GMT -5. The time now is 03:07 PM.