linux networking cookbook中文版,Linux Networking Cookbook

Installing Pyramid Linux on a Compact Flash Card

Problem

There you are with your new single-board computer, and it looks very nice, but you’re wondering how to get an operating system on it.

Solution

The two most common methods are via a Compact Flash (CF) writer, or bootstrapping the operating system from a PXE boot server. This recipe tells how to install Pyramid Linux using the first method. You need:

A Compact Flash writer

The Pyramid Linux dd image

The most common CF writers cost around $20 and connect to a USB port. This is the easiest kind to use. Linux automatically recognizes and mounts the device when you plug it in.

A second option is an IDE CF writer. You’ll know if you have one of these because they take up an IDE slot on your system and a front drive bay. A system with one of these needs to be booted with the CF card in the reader, or it won’t see it.

First, download the latest dd image:

$ wget http://metrix.net/support/dist/pyramid-1.0b1.img.gz

Next, find the /dev name of your CF card with the fdisk -l command. A USB CF writer looks like this:

# fdisk -l

Device Boot      Start       End     Blocks   Id  System

/dev/sdb1               1       977     62512    83  Linux

An IDE CF writer looks like this:

Device Boot      Start       End     Blocks   Id  System

/dev/hdc1   *           1       977     62512    83  Linux

Copy the image to your CF card with these commands, using your own correct image and /dev names. Do not use any partition numbers:

# gunzip -c pyramid-1.0b1.img.gz | dd of=/dev/sdb bs=16k

3908+0 records in

3908+0 records out

And that’s all there is to it. Now it’s ready to go in your routerboard.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值