LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2012, 11:50 AM   #1
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS 6, CentOS 7
Posts: 297

Rep: Reputation: Disabled
Booting Linux from rescue prompt


Can anybody tell me how to boot Debian from the Debian Rescue prompt? It correctly puts me into a / root prompt but I don't know how to boot Linus from there.

Thanks

Edit:
Oops, obviously subject should be Linux not Linus

Last edited by Nick_C; 03-13-2012 at 12:19 PM. Reason: Typr in subject
 
Old 03-13-2012, 12:56 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,687
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Hey there Nick (I assume),

Welcome to the forum.
So, what's the goal here? Why the need to boot into the "rescue" prompt? Maybe there's a better way to the solution...

Please expand this somewhat.

And, yes, it's Linux....too bad the forum software does'nt allow for corrections in the subject

Thor
 
Old 03-14-2012, 02:40 AM   #3
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 331

Rep: Reputation: 59
How about: init 5

Regards,
Stefan
 
Old 03-14-2012, 06:31 AM   #4
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS 6, CentOS 7
Posts: 297

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
Hey there Nick (I assume),

Welcome to the forum.
So, what's the goal here? Why the need to boot into the "rescue" prompt? Maybe there's a better way to the solution...

Please expand this somewhat.

And, yes, it's Linux....too bad the forum software does'nt allow for corrections in the subject

Thor
The reason, short version is that I am trying to setup a multiboot environment where Debian Grub is on the /boot partition and is chainloaded through Win2k8/7 bootloader. See instructions here: https://wiki.archlinux.org/index.php..._7_Boot-Loader

Now I can't quite get this working because after install I boot to a Debian Rescue prompt, get command prompt in my original root partition and try and execute the following:
Quote:
my_windows_part=/dev/sda3
my_boot_part=/dev/sda5
mkdir /media/win
mount $my_windows_part /media/win
dd if=$my_boot_part of=/media/win/linux.bin bs=512 count=1
This fails at the mount line with : unknown filesystem type 'ntfs'. Not surprising because this is running a restricted rescue mode linux rather than my original installed one which would have access to ntfs partitions. Hence the need to actually run the installed version.

Is there not some way of booting from a rescue mode prompt of from a live cd of some type?
 
Old 03-14-2012, 06:34 AM   #5
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS 6, CentOS 7
Posts: 297

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by propofol View Post
How about: init 5

Regards,
Stefan
Stefan, how do I switch to 'init 5'? Entering this at the command prompt returns: /run/initctl: No such file or directory

Nick
 
Old 03-14-2012, 05:36 PM   #6
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 331

Rep: Reputation: 59
Quote:
Originally Posted by Nick_C View Post
Stefan, how do I switch to 'init 5'? Entering this at the command prompt returns: /run/initctl: No such file or directory

Nick
Oops sorry, I just realized you mentioned 'rescue' prompt. I had in mind that you have logged into single user recovery mode (runlevel 1). If I understand you correctly, you are at the point where control has passed from grub and the kernel has mounted a temporary root filesystem in ram with initrd. This has the kernel modules and programs required to mount the root filesystem. Initrd mounts the real root filesystem and passes control to the /sbin/init. My understanding of this is somewhat rudimentary but it seems to me you will have to have to do this manually. Alternatively you will have to modify the initramfs boot scripts.

Regards,
Stefan
 
Old 03-15-2012, 06:19 AM   #7
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS 6, CentOS 7
Posts: 297

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by propofol View Post
Oops sorry, I just realized you mentioned 'rescue' prompt. I had in mind that you have logged into single user recovery mode (runlevel 1). If I understand you correctly, you are at the point where control has passed from grub and the kernel has mounted a temporary root filesystem in ram with initrd. This has the kernel modules and programs required to mount the root filesystem. Initrd mounts the real root filesystem and passes control to the /sbin/init. My understanding of this is somewhat rudimentary but it seems to me you will have to have to do this manually. Alternatively you will have to modify the initramfs boot scripts.

Regards,
Stefan
Not to worry, I have now solved this by booting to a Fedora 17 DVD that I have laying around and I was then able to issue the commands I wanted to from there, all worked fine.

I had just imagined that there must be some way to actually run the installed version of Debian from the Rescue mode command line.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub rescue prompt after booting, CANNOT boot from CD! Ramor Linux - Desktop 1 08-30-2011 03:35 AM
Saving files from a rescue prompt akurtis Linux - General 8 06-28-2006 11:33 AM
Booting Linux From Command Prompt ??? shandy Linux - Software 3 11-04-2005 12:23 PM
Rescue mode? Need a prompt.... jong357 Slackware 3 12-26-2003 02:41 PM
Grab prompt while booting Redhat Linux shehazab Linux - Software 0 10-27-2003 12:44 AM


All times are GMT -5. The time now is 12:26 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration