From Fedora Project Wiki
(Created page with ''''HOWTO: SheevaPlug Fedora SD Card''' ---- This howto will cover installing Fedora (12) on a SheevaPlug running on a SD Ram card. '''Prep the SD Card''' ---- Add the SD Car...')
 
No edit summary
Line 9: Line 9:
----
----
Add the SD Card to your linux box you are building this on and run:
Add the SD Card to your linux box you are building this on and run:
<code>
[root@wigeon ~]# dmesg | tail
scsi 8:0:0:0: Direct-Access    HP      v100w            4096 PQ: 0 ANSI: 0 CCS
sd 8:0:0:0: Attached scsi generic sg2 type 0
sd 8:0:0:0: [sdb] 7831552 512-byte hardware sectors: (4.00 GB/3.73 GiB)
sd 8:0:0:0: [sdb] Write Protect is off
sd 8:0:0:0: [sdb] Mode Sense: 43 00 00 00
sd 8:0:0:0: [sdb] Assuming drive cache: write through
sd 8:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 8:0:0:0: [sdb] Attached SCSI removable disk
[root@wigeon ~]#


<code>
dmesg | tail
</code>
</code>


The output here shows me that it has been mounted as /dev/sdc.
Next run fdisk to create the partition table. I created one large partition skipping swap, no
 
need to swap on to an SD card.  
We need to partition the SD card.  
 
<code>
fdisk /dev/sdc
</code>


Delete any existing partitions


<code>
<code>
d
[root@wigeon ~]# fdisk /dev/sdb
1
The number of cylinders for this disk is set to 1125.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
  (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
  e  extended
  p  primary partition (1-4)
p
Partition number (1-4):
Value out of range.
Partition number (1-4): 1
First cylinder (1-1125, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1125, default 1125):
Using default value 1125
Command (m for help): a
Partition number (1-4): 1
Command (m for help): t
Selected partition 1
        be  Solaris boot    ff  BBT
Hex code (type L to list codes): 83
Command (m for help): p
Disk /dev/sdb: 4009 MB, 4009754624 bytes
145 heads, 48 sectors/track, 1125 cylinders
Units = cylinders of 6960 * 512 = 3563520 bytes
Disk identifier: 0xc3072e18
  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          1        1125    3914976  83  Linux
Command (m for help):  w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
</code>
</code>


Create the new partition.
Create the filesystem:


<code>
<code>
c
[root@wigeon ~]# mkfs.ext2 /dev/sdb1
 
mke2fs 1.41.4 (27-Jan-2009)
a
Filesystem label=
 
OS type: Linux
p
Block size=4096 (log=2)
 
Fragment size=4096 (log=2)
w
244800 inodes, 978744 blocks
 
48937 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1002438656
30 block groups
32768 blocks per group, 32768 fragments per group
8160 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
</code>
</code>

Revision as of 20:19, 10 March 2010

HOWTO: SheevaPlug Fedora SD Card


This howto will cover installing Fedora (12) on a SheevaPlug running on a SD Ram card.


Prep the SD Card


Add the SD Card to your linux box you are building this on and run:

[root@wigeon ~]# dmesg | tail
scsi 8:0:0:0: Direct-Access     HP       v100w            4096 PQ: 0 ANSI: 0 CCS
sd 8:0:0:0: Attached scsi generic sg2 type 0
sd 8:0:0:0: [sdb] 7831552 512-byte hardware sectors: (4.00 GB/3.73 GiB)
sd 8:0:0:0: [sdb] Write Protect is off
sd 8:0:0:0: [sdb] Mode Sense: 43 00 00 00
sd 8:0:0:0: [sdb] Assuming drive cache: write through
sd 8:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 8:0:0:0: [sdb] Attached SCSI removable disk
[root@wigeon ~]#

Next run fdisk to create the partition table. I created one large partition skipping swap, no need to swap on to an SD card.


[root@wigeon ~]# fdisk /dev/sdb
The number of cylinders for this disk is set to 1125.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
  (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
  e   extended
  p   primary partition (1-4)
p
Partition number (1-4):
Value out of range.
Partition number (1-4): 1
First cylinder (1-1125, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1125, default 1125):
Using default value 1125
Command (m for help): a
Partition number (1-4): 1
Command (m for help): t 
Selected partition 1
        be  Solaris boot    ff  BBT
Hex code (type L to list codes): 83
Command (m for help): p
Disk /dev/sdb: 4009 MB, 4009754624 bytes
145 heads, 48 sectors/track, 1125 cylinders
Units = cylinders of 6960 * 512 = 3563520 bytes
Disk identifier: 0xc3072e18
 Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        1125     3914976   83  Linux
Command (m for help):  w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.

Create the filesystem:

[root@wigeon ~]# mkfs.ext2 /dev/sdb1
mke2fs 1.41.4 (27-Jan-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
244800 inodes, 978744 blocks
48937 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1002438656
30 block groups
32768 blocks per group, 32768 fragments per group
8160 inodes per group
Superblock backups stored on blocks:
       32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.