« パーティションについて | トップページ | ファイルシステムの作成 »

パーティションの作成

■Linux大学⇒Linux University
Linuxの勉強をしよう!!

■LPICWeb予想問題⇒ITベンダー資格試験予想問題ドットコム
LPICの合格をめざそう!!

■LPIC予想問題⇒Web予想問題(LPIC版)
LPICレベル1の合格をめざそう!!

■管理人サイト⇒Linux初心者の基礎知識
Linuxを基礎から学ぼう!!

■Linux初心者の方対象⇒はじめてのLinux基礎講座

パーティションの作成には、fdiskコマンドを使用します。

# fdisk /dev/sda1
Command (m for help): n ←新しい領域を作成する
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4):1
First cylinder (1-767) :1
Last cylinder or +size or +sizeM or +sizeK: +128M

Command (m for help): l ←設定可能なパーティション・タイプを表示する

0  Empty           16  Hidden FAT16    61  SpeedStor      
1  FAT12           17  Hidden HPFS/NTF 63  GNU HURD or Sys
2  XENIX root      18  AST Windows swa 64  Novell Netware 
3  XENIX usr       24  NEC DOS         65  Novell Netware 
4  FAT16 <32M      3c  PartitionMagic  70  DiskSecure Mult
5  Extended        40  Venix 80286     75  PC/IX          

14  Hidden FAT16 <3 5c  Priam Edisk

Command (m for help): t ←パーティションのコードを変更する
Partition number (1-4):1
Hex code (type L to list codes) : 82 ←SWAP領域に設定

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4):2
First cylinder (67-767) :67
Last cylinder or +size or +sizeM or +sizeK: 767

Command (m for help): t
Partition number (1-4):2
Hex code (type L to list codes) : 83 ←Linux領域に設定

Command (m for help): p
 
  Disk /dev/hda: 128 heads, 63 sectors, 767 cylinders
Units = cylinders of 8064 * 512 bytes
 
   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1        66    266080+  82  Linux swap
/dev/sda2            67       767   2826432   83  Linux

Command (m for help): w ←情報を書き込んで終了する

|

« パーティションについて | トップページ | ファイルシステムの作成 »

Linuxコマンド」カテゴリの記事

コメント

コメントを書く



(ウェブ上には掲載しません)




トラックバック

この記事のトラックバックURL:
http://app.f.cocolog-nifty.com/t/trackback/1005158/30268445

この記事へのトラックバック一覧です: パーティションの作成:

« パーティションについて | トップページ | ファイルシステムの作成 »