Oct 16, 2005



debian2:/home/shimirin$ dmesg
usb 5-8: new high speed USB device using address 3
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: FUJITSU Model: MCN3064UB Rev: 0020
Type: Direct-Access ANSI SCSI revision: 02
USB Mass Storage device found at 3
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0

1 既存のパーティションを削除する。
2 新しいパーティションを作成する。
3 新しいパーティションをディスクに書き込む。

shimirin@debian2:~$ su
debian2:/home/shimirin# fdisk /dev/sda
Note: sector size is 2048 (not 512)

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

Command (m for help): p

Disk /dev/sda: 635 MB, 635600896 bytes
20 heads, 61 sectors/track, 254 cylinders
Units = cylinders of 1220 * 2048 = 2498560 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 254 619638 83 Linux

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

Calling ioctl() to re-read partition table.
Syncing disks.


debian2:/home/shimirin# mkfs -t ext2 -b 2048 /dev/sda1
mke2fs 1.37 (21-Mar-2005)
Filesystem label=
OS type: Linux
Block size=2048 (log=1)
Fragment size=2048 (log=1)
77520 inodes, 309818 blocks
15490 blocks (5.00%) reserved for the super user
First data block=0
19 block groups
16384 blocks per group, 16384 fragments per group
4080 inodes per group
Superblock backups stored on blocks:
16384, 49152, 81920, 114688, 147456

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 22 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.


debian2:/home/shimirin# mkdir /mnt/mo
debian2:/home/shimirin# mount /dev/sda1 /mnt/mo


debian2:/home/shimirin# unmount /mnt/mo


TrackBack ping me at
Post a comment

writeback message: Ready to post a comment.

To prevent comment spam, please retype the characters in this image:

Enter the text here: