LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
LinkBack Search this Thread
Old 09-02-2013, 09:34 AM   #1
5883
Member
 
Registered: Aug 2004
Posts: 144

Rep: Reputation: 0
screwed my /etc/init.d/rc.local


boot from ssd,
i edited /etc/init.d/rc.local,
put a check there, if it's good then reboot for my stress test,
if not good, then just stop at linux prompt

now my check logic is wrong, it keeps on rebooting.


plug in SD card (without ssd, the board can boot from SD),
still boot from ssd.


What to do ?
 
Old 09-02-2013, 09:44 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,435
Blog Entries: 11

Rep: Reputation: 181Reputation: 181
What distro? Any chance to boot from live CD or install CD? If you have grub you could user some line like that
Code:
linux all_your_normal_options init=/bin/bash
Dunno your mobo but most computer have a build in boot device chooser. F8 or F10 on startup. Or check the bios settings for boot order.
 
Old 09-02-2013, 09:46 AM   #3
5883
Member
 
Registered: Aug 2004
Posts: 144

Original Poster
Rep: Reputation: 0
this is an embedded system, no CDROM,

Quote:
Originally Posted by zhjim View Post
What distro? Any chance to boot from live CD or install CD? If you have grub you could user some line like that
Code:
linux all_your_normal_options init=/bin/bash
Dunno your mobo but most computer have a build in boot device chooser. F8 or F10 on startup. Or check the bios settings for boot order.
 
Old 09-02-2013, 09:47 AM   #4
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware
Posts: 138

Rep: Reputation: Disabled
Can you connect the ssd into a different box? If so, mount and edit from there.
 
Old 09-02-2013, 11:56 AM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,355

Rep: Reputation: 205Reputation: 205Reputation: 205
+1 for SSD in another box to edit it. Otherwise it needs a way to boot from usb. Is there a grub prompt?
 
1 members found this post helpful.
Old 09-02-2013, 12:00 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,880
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
If you have a bootloader that lets you edit the kernel command line try booting into runlevel 1 (or the single target if you use systemd), that should prevent rc.local from being executed, so that you can fix it.
 
1 members found this post helpful.
  


Reply


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
/etc/init.d/local won't start zymos Gentoo 3 10-01-2010 04:51 AM
What local init script does your distro use? tim914 Linux - Software 7 06-07-2007 12:35 PM
Help with file: etc/init.d/boot.local ostrowlaw Suse/Novell 2 03-10-2007 08:18 AM
I screwed up my /etc/rc.d/rc.local...How do I fix it? tjt Linux - Newbie 4 07-27-2004 09:46 PM
init level 5 for remote X but not local gw1500se Mandriva 0 05-31-2004 02:54 PM


All times are GMT -5. The time now is 01:50 PM.

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