1. 연결 disk 확인
==========================================================================================
...
2. 파티션 만들기
- 먼저 마운트가 되어있다면unmount를 시킴
| $ sudo fdisk -l |
==========================================================================================
...
Disk /dev/sdb: 1015 MB, 1015808000 bytes
32 heads, 61 sectors/track, 1016 cylinders
Units = cylinders of 1952 * 512 = 999424 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006d04d
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1016 991585+ 7 HPFS/NTFS
==========================================================================================
- 연결 된 disk의 정보를 확인 할 수 있으며, 대부분 /dev/sdb로 인식 할 것이고 시스템에 따라 다르게 표시 될 수 있음.==========================================================================================
2. 파티션 만들기
| $ sudo umount /dev/sdb1 |
| $ sudo fdisk /dev/sdb |
* 상세 명령은 m 입력 시 확인 할 수 있음
==========================================================================================
==========================================================================================
Command (m for help): d // 파티션 삭제
Selected partition 1
Command (m for help): n // 새로운 파티션 생성
Command (m for help): n // 새로운 파티션 생성
Command action
e extended
p primary partition (1-4)
p // p 선택
Partition number (1-4): 1 // 기본 파티션 지정
First cylinder (1-1016, default 1): 1
Last cylinder, +cylinders or +size{K,M,G} (1-1016, default 1016): 500 // 1016 cylinder 중 1~500 사용
Command (m for help): t // 시스템 타입(ID) 변경
Selected partition 1
Hex code (type L to list codes): b // L 입력 시 포멧 종류를 프린트 함, b는 FAT32
Changed system type of partition 1 to b (W95 FAT32)
Hex code (type L to list codes): b // L 입력 시 포멧 종류를 프린트 함, b는 FAT32
Changed system type of partition 1 to b (W95 FAT32)
Command (m for help): n // 나머지 영역의 파티션 생성을 위한
Command action
e extended
p primary partition (1-4)
p // p 선택
Partition number (1-4): 2 // 두번째 파티션 편집
First cylinder (501-1016, default 501): 501
Last cylinder, +cylinders or +size{K,M,G} (501-1016, default 1016): 1016 // 나머지 500~1016 cylinder
Using default value 1016
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): b
Changed system type of partition 2 to b (W95 FAT32)
3. 파티션 포멧
4. 확인
==========================================================================================
...
** 가끔 엉뚱한 짓(usb를 cdrom으로 만든다던지, GRUB 볼륨 설정으로 인한 인식 불가)으로 윈도우에서 파티션을 인식 못하는 경우가 발생한다. 이 때 윈도우 관리 --> 디스트 관리에서도 소용이 없는 경우가 있다.(볼륨 생성 및 삭제 불가)
위 방법을 통하여 Ubuntu에 usb disk를 인식 시킨 후 파티션 설정을 쉽게 할 수 있다.
Command (m for help): w // 종료
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
==========================================================================================3. 파티션 포멧
| $ sudo mkfs.vfat -F 32 -n liveusb /dev/sdb1 $ sudo mkfs.vfat -F 32 -n liveusb /dev/sdb1 |
4. 확인
| $ sudo fdisk -l |
==========================================================================================
...
Disk /dev/sdb: 1015 MB, 1015808000 bytes
32 heads, 61 sectors/track, 1016 cylinders
Units = cylinders of 1952 * 512 = 999424 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006d04d
Device Boot Start End Blocks Id System
/dev/sdb1 1 500 487969+ b W95 FAT32
/dev/sdb2 501 1016 503616 b W95 FAT32
==========================================================================================
==========================================================================================
** 가끔 엉뚱한 짓(usb를 cdrom으로 만든다던지, GRUB 볼륨 설정으로 인한 인식 불가)으로 윈도우에서 파티션을 인식 못하는 경우가 발생한다. 이 때 윈도우 관리 --> 디스트 관리에서도 소용이 없는 경우가 있다.(볼륨 생성 및 삭제 불가)
위 방법을 통하여 Ubuntu에 usb disk를 인식 시킨 후 파티션 설정을 쉽게 할 수 있다.
'dev > Linux' 카테고리의 다른 글
| [ubuntu] 이동식 디스크 파티션 관리 - fdisk (0) | 2011/08/31 |
|---|---|
| [build-tool] SCons (0) | 2011/08/23 |
| [ubuntu] libmotif3 64Bit machine에 설치하기 (0) | 2011/08/21 |
| [ubuntu] iptables 특정 ip 대역만 허용 (0) | 2011/08/20 |
| [ubuntu] vim 설정 (0) | 2011/08/20 |
| [ubuntu] samba user 접근 설정 (0) | 2011/08/18 |
TAG FDISK

