Calender
Sun Mon Tue Wed Thu Fri Sat
      1
2345678
9101112131415
16171819202122
23242526272829
3031     
<< December 2018 >>
広告
SEARCH

SELECTED ENTRIES
RECENT COMMENTS
RECENT TRACKBACK
CATEGORIES
ARCHIVES
LINKS
PROFILE
OTHERS
SKYPE
PC: skype.jojo.jp
chat
iPad: iphone.jojo.jp
chat call
THANKS



本日:
昨日:
多言語
広告
 ▼▲ 作業日報 ▼△
    What's under the hood?
<< rsync-sshでパスワードなし認証(ポート指定) | main | 動画のサムネイル化 PHPスクリプト >>
LinuxでFAT32フォーマット
 320Gbyteの外付けUSB-HDDのFAT32でのフォーマットを頼まれたのですが、Windows2000では「windowsはフォーマットを完了できませんでした」というエラー、VistaではFAT32の形式が選択できません
 ということでLinuxでFAT32でフォーマットする方法
-----------領域の割当-----------------
root@eva:/home/htdocs/test# fdisk -l
Disk /dev/sdd: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 1 38913 312568641 7 HPFS/NTFS <-このディスク
(・・NTFSを開放してFAT32(LAB)に割り当てます・・)
root@eva:/home/htdocs/test# fdisk /dev/sdd

Command (m for help): d
Partition number (1-4): 1

(・・割当・・)

Command (m for help): p

Disk /dev/sdd1: 320.0 GB, 320070288384 bytes
255 heads, 63 sectors/track, 38912 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1p1 1 38912 312560608+ c W95 FAT32 (LBA)

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

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: 無効な引数です.
The kernel still uses the old table.
The new table will be used at the next reboot.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.

-----------フォーマット-----------------

root@eva:/home/htdocs/test# mkdosfs -F 32 /dev/sdd1 (dosfstools)パッケージ
root@eva:/home/htdocs/test# mformat -F /dev/sdd1
root@eva:/home/htdocs/test# mkfs.vfat -v -c -F 32 /dev/sdd1
mkfs.vfat 2.11 (12 Mar 2005)
/dev/sdd1 has 255 heads and 63 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 625137282 sectors;
Searching for bad blocks 117344... 244576... 371040... 497632... 622560...
748640... 875232... 1001168... 1127376... 1252448... 1378656... 1504736...
(・・約20分ぐらい・・)
1059936... 31186784... 31312640... 31439584... 31566560... 31693536...
31819344... 31946208... 32073184... 32200032...

| Linux | 22:04 | comments(0) | trackbacks(0) |









http://blog.jojo.jp/trackback/1123986