Difference between revisions of "Talk:Armel Debian for the Kurobox Pro - Manual install"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m (Print the partition map to see that it is what we want)
m (Partitioning)
Line 4: Line 4:
 
   
 
   
 
  $ fdisk /dev/'''sda'''  
 
  $ fdisk /dev/'''sda'''  
 
+
 
  Command (m for help): '''n'''
 
  Command (m for help): '''n'''
 
  Command action
 
  Command action

Revision as of 02:46, 23 June 2008

Contents

Partitioning

You could pretty much follow this guide keystroke for keystroke to do it. It is suggested that you read the man pages for fdisk & read up on it, as well.

$ fdisk /dev/sda 

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-30401, default 1): <enter> Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-30401, default 30401): +100MB

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (124-30401, default 124): <enter> Using default value 124
Last cylinder or +size or +sizeM or +sizeK (124-30401, default 30401): +10GB


Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
e
Partition number (1-4): 4
First cylinder (1341-30401, default 1341): <enter> Using default value 1341
Last cylinder or +size or +sizeM or +sizeK (1341-30401, default 30401): <enter> Using default value 30401

Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
l
First cylinder (1341-30401, default 1341): Using default value 1341
Last cylinder or +size or +sizeM or +sizeK (1341-30401, default 30401): +512MB

Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
l
First cylinder (1404-30401, default 1404): <enter> Using default value 1404
Last cylinder or +size or +sizeM or +sizeK (1404-30401, default 30401):  <enter> Using default value 30401

Change sda5 to Swap

The default type of partition is Ext3 (83), so we only need to change the type on partition 5, to Swap (82).

Command (m for help): t
Partition number (1-7): 5
Hex code (type L to list codes): 82
Changed system type of partition 5 to 82 (Linux swap)

Print the partition map to see that it is what we want

Command (m for help): p

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start         End      Blocks  Id System
/dev/sda1               1         123      987966  83 Linux
/dev/sda2             124        1340     9775552+ 83 Linux
/dev/sda4            1341       30401   233432482+  5 Extended
/dev/sda5            1341        1403      506016  82 Linux swap
/dev/sda6            1404       30401   223150851  83 Linux

Write the partitions to the hard drive

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table
$