LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 10-08-2008, 07:21 AM   #1
hwoarang
Member
 
Registered: Aug 2008
Posts: 31

Rep: Reputation: 15
Can Linux be launched from the shell ?


Hi all,

I would like to boot a linux kernel on my hdd and then load a kernel from an USB key. Is there some kind of command that allows to launch a kernel ?

I insist I don't want to use a bootable usb key. I need to load the kernel after booting hdd.

Thanks,
 
Old 10-08-2008, 09:55 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Unfortunately, due to the inherent purpose of a kernel (to manage memory, etc.), you cannot have two kernels concurrently running, unless one of them is in a virtual machine.

Why, out of curiosity, do you need to have two kernels loaded?

If you want to specify which kernel to load, you should be able to start the computer and then use the interactive bootloader prompt and specify which kernel to boot.
 
Old 10-09-2008, 02:56 AM   #3
hwoarang
Member
 
Registered: Aug 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Hi,

I need to do so because my computer is booting on a SD card and I only have 1 SD card slot. Before making a mistake, I would like to make a backup of the SD card. With dd, I was able to make an image of the sd card and I would like to copy it to another one. But as a partition from the SD card is mounted as /, I cannot unmount it to swap the sdcard...

Thanks for your attention.
 
Old 10-09-2008, 03:59 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,043

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
Quote:
Originally Posted by hwoarang View Post
Hi,

I need to do so because my computer is booting on a SD card and I only have 1 SD card slot. Before making a mistake, I would like to make a backup of the SD card. With dd, I was able to make an image of the sd card and I would like to copy it to another one. But as a partition from the SD card is mounted as /, I cannot unmount it to swap the sdcard...

Thanks for your attention.
Then you need an alternate boot method. You definitely can't umount your root file system.

Can't you boot from a livecd, an hd or any other thing?

There was a project that aimed at the possibility to boot a new kernel from userspace (which seemed pointless to me because it only saves you the 5 seconds that the POST test of the BIOS takes if you reset). Before you ask: no, I have no idea of it's name anymore and I have no idea of the state of that project either.

Other than booting from another device I see no easy way around your problem. If you can't do that, just take the drives to a pc with two card hubs and clone it. It will be easier. Alternatively, buy a card reader/writer and attach it to an usb port. I see drives of this kind on some shops nowadays around 6-10€ which accept all kind of sd card formats.

Last edited by i92guboj; 10-09-2008 at 04:00 AM.
 
  


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
LXer: Spread Linux platform launched LXer Syndicated Linux News 0 10-02-2008 05:10 AM
A Podcast For Newcomers To Linux is Launched marland Linux - Newbie 2 12-28-2006 11:53 PM
LXer: Repository of Linux-compatible kit launched LXer Syndicated Linux News 0 07-11-2006 06:03 PM
Kill a process launched by a shell script gsbarry Programming 7 01-06-2004 03:09 PM


All times are GMT -5. The time now is 04:21 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