달력

112024  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

[root@:/]  parted /dev/sdb

GNU Parted 1.8.1

Using /dev/sdb

Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted)  mklabel gpt

Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?

parted: invalid token:  gpt

Yes/No?  yes                                                               

New disk label type?  [msdos]?  gpt                                        

(parted)  mkpart                                                           

Partition name?  []?   파티션 네임으로 중요하지 않습니다. 그냥 엔터                                             

File system type?  [ext2]?  [엔터]                                                

Start?  0                                                                   

End?  2GB or 100%  단일 파티션으로 사용할것이고, 2GB 디스크이기 때문에 시작= 0 ~ 끝 2GB로 합니다.

## 또는 mkpart primary 0 -1로 해도 된다. 이것은 처음부터 끝까지 잡겠다는 것이다.

 

(parted)  quit

Information: Don't forget to update /etc/fstab, if necessary.  

 

gpt 설정이 끝났습니다. 이것은 fdisk /dev/sdb 대신 parted로 mbr이 아닌 gpt를 생성한 것이죠.

[root@:/]  mkfs.ext3 /dev/sdb1

how do you mke2fs 1.39 (29-May-2006)

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

262144 inodes, 524279 blocks

26213 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=536870912

16 block groups

32768 blocks per group, 32768 fragments per group

16384 inodes per group

Superblock backups stored on blocks: 

 32768, 98304, 163840, 229376, 294912

Writing inode tables: done                            

Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 32 mounts or

180 days, whichever comes first.  Use tune2fs -c or -i to override.

[root@:/]  tune2fs -i 0 -o 0 /dev/sdb1      검사 안하겠다는 옵션

tune2fs 1.39 (29-May-2006)

Setting interval between checks to 0 seconds

Invalid mount option set: 0

[root@:/] mount /dev/sdb1 /backup

[root@:/]  fdisk -l

Disk /dev/sda: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1         931     7478226   83  Linux

/dev/sda2             932         996      522112+  82  Linux swap / Solaris

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

 

Disk /dev/sdb: 2147 MB, 2147483648 bytes

255 heads, 63 sectors/track, 261 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sdb1               1         262     2097151+  ee   EFI GPT

Partition 1 has different physical/logical beginnings (non-Linux?):

     phys=(0, 0, 1) logical=(0, 0, 2)

Partition 1 has different physical/logical endings:

     phys=(1023, 254, 63) logical=(261, 21, 16)

 

 

참고 URL : http://hoohard.tistory.com/archive/20110221

Posted by 짜꾸미의골골몽
|