Solved

Configure server to boot from kernal on sdcard

Posted on 2014-01-09
4
313 Views
Last Modified: 2016-11-23
Hello All,

I would like to take one of my dell servers and setup centos or debian on it, have it boot the kernal and boot code from a sdcard and just have the filesystem on the drives. this way i can load what i need on it, and then tar up the filesystem and use that to duplicate it on other machines. by just untarring the FS to another drive on same type of server and just have that boot from sd card also.

i cant see how to do this with normal centos or debian, all i see is support for ARM processors.

can someone point me in the proper direction?

thanks
Dave
0
Comment
Question by:WCGS_Operations
  • 2
4 Comments
 
LVL 88

Assisted Solution

by:rindi
rindi earned 333 total points
ID: 39770728
Installing most current Linux OS's to an SD card or USB stick is no different from installing it to a standard HD or RAID array. During the installation procedure just make sure you select the correct disk (in this case the SD card), and when you get to the point where you can choose where you want grub to be installed, again make sure you select the correct destination. To make things easier you could remove all other HD's from the server during the installation.

Also make sure your server can, and is setup to boot first from the SD card.
0
 

Author Comment

by:WCGS_Operations
ID: 39770859
Rindi,

thanks for your response, however i might have not explained my question properly. i only want the boot code and kernal on the sd card, and but the entire file system on the hard drive. i dont want the entire install on the sd card.

thanks
Dave
0
 
LVL 88

Assisted Solution

by:rindi
rindi earned 333 total points
ID: 39770986
During the installation you can make your /boot partition be on the SD card (along with the Grub boot-loader). The kernel is located in /boot for most distro's. / and any others can be on the standard disks. You can do this selection at the partitioning option during the installation procedure.
0
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 167 total points
ID: 39772576
Unless you have a monolithic kernel, you will have a sizable part of the Linux OS in /lib/modules/$(uname -r). You could move this entire directory tree onto the SD card and create a symbolic link in /lib/modules. I think that should work - but keep a backup kernel in your Grub menu just in case
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Great sound, comfort and fit, excellent build quality, versatility, compatibility. These are just some of the many reasons for choosing a headset from Sennheiser.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to moveā€¦
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question