[planet root] /tmp > idscsi
SCSI Devices found: 4
/dev/sda Disk : IC25N040 ATMR04-0
/dev/sdb Disk : SanDisk ImageMate II
/dev/sr0 CD ROM : MATSHITA UJDA720 DVD/CDRW
/dev/sr1 CD ROM : HP DVD Writer 300n
[planet root] /tmp > fdisk /dev/sdb
Command (m for help): p
Disk /dev/sdb: 1031 MB, 1031676416 bytes
32 heads, 62 sectors/track, 1015 cylinders
Units = cylinders of 1984 * 512 = 1015808 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 1015 1006849 b W95 FAT32
Command (m for help): q
[planet root] /tmp > dd if=/dev/zero of=/dev/sdb bs=512 count=2000
2000+0 records in
2000+0 records out
[planet root] /tmp > fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklab
el
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won’t be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/sdb: 1031 MB, 1031676416 bytes
32 heads, 62 sectors/track, 1015 cylinders
Units = cylinders of 1984 * 512 = 1015808 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1015, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1015, default 1015):
Using default value 1015
Command (m for help): p
Disk /dev/sdb: 1031 MB, 1031676416 bytes
32 heads, 62 sectors/track, 1015 cylinders
Units = cylinders of 1984 * 512 = 1015808 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 1015 1006849 83 Linux
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): b
Changed system type of partition 1 to b (W95 FAT32)
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
information.
Syncing disks.
[planet root] /tmp > mkdosfs /dev/sdb1
mkdosfs 2.10 (22 Sep 2003)
[planet root] /tmp > mount -t vfat /dev/sdb1 /cf
[planet root] /tmp > ls /cf
[planet root] /tmp > cp /etc/profile /cf
[planet root] /tmp > ls -l /cf
total 16
-rwxr–r– 1 root root 2451 2004-07-02 17:22 profile*
[planet root] /etc > df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 3890324 3412840 276672 93% /
/dev/hda4 27808660 7380104 18993152 28% /home
/dev/hda1 6144828 4026872 2117956 66% /wxp
/dev/sda1 38446560 28631032 7862556 79% /u
/dev/sdb1 1006576 16 1006560 1% /cf
[planet root] /tmp >
============================================================
Do you get any difference? If so, what?
Jack
—
Once, they feared you. Then they matched you. Now they are laughing
at you. Soon they will ignore you. You have lost.