{"id":96,"date":"2004-07-21T14:37:57","date_gmt":"2004-07-21T19:37:57","guid":{"rendered":"http:\/\/192.168.33.66\/wp\/?p=96"},"modified":"2004-07-21T14:37:57","modified_gmt":"2004-07-21T19:37:57","slug":"usb-flash-drive-linux","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=96","title":{"rendered":"usb flash drive linux"},"content":{"rendered":"<p>[planet root] \/tmp > idscsi       <br \/>\nSCSI Devices found:  4<br \/>\n\/dev\/sda   Disk   : IC25N040  ATMR04-0         <br \/>\n\/dev\/sdb   Disk   : SanDisk   ImageMate II     <br \/>\n\/dev\/sr0   CD ROM : MATSHITA  UJDA720 DVD\/CDRW <br \/>\n\/dev\/sr1   CD ROM : HP        DVD Writer 300n  <br \/>\n[planet root] \/tmp > fdisk \/dev\/sdb<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/sdb: 1031 MB, 1031676416 bytes<br \/>\n32 heads, 62 sectors\/track, 1015 cylinders<br \/>\nUnits = cylinders of 1984 * 512 = 1015808 bytes<\/p>\n<p>   Device Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/sdb1               1        1015     1006849    b  W95 FAT32<\/p>\n<p>Command (m for help): q<\/p>\n<p><!--more--><\/p>\n<p>[planet root] \/tmp > dd if=\/dev\/zero of=\/dev\/sdb bs=512 count=2000<br \/>\n2000+0 records in<br \/>\n2000+0 records out<br \/>\n[planet root] \/tmp > fdisk \/dev\/sdb<br \/>\nDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklab<br \/>\nel<br \/>\nBuilding a new DOS disklabel. Changes will remain in memory only,<br \/>\nuntil you decide to write them. After that, of course, the previous<br \/>\ncontent won&#8217;t be recoverable.<\/p>\n<p>Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/sdb: 1031 MB, 1031676416 bytes<br \/>\n32 heads, 62 sectors\/track, 1015 cylinders<br \/>\nUnits = cylinders of 1984 * 512 = 1015808 bytes<\/p>\n<p>   Device Boot      Start         End      Blocks   Id  System<\/p>\n<p>Command (m for help): n<br \/>\nCommand action<br \/>\n   e   extended<br \/>\n   p   primary partition (1-4)<br \/>\np<br \/>\nPartition number (1-4): 1<br \/>\nFirst cylinder (1-1015, default 1): <br \/>\nUsing default value 1<br \/>\nLast cylinder or +size or +sizeM or +sizeK (1-1015, default 1015): <br \/>\nUsing default value 1015<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/sdb: 1031 MB, 1031676416 bytes<br \/>\n32 heads, 62 sectors\/track, 1015 cylinders<br \/>\nUnits = cylinders of 1984 * 512 = 1015808 bytes<\/p>\n<p>   Device Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/sdb1               1        1015     1006849   83  Linux<\/p>\n<p>Command (m for help): t<br \/>\nSelected partition 1<br \/>\nHex code (type L to list codes): b<br \/>\nChanged system type of partition 1 to b (W95 FAT32)<\/p>\n<p>Command (m for help): w<br \/>\nThe partition table has been altered!<\/p>\n<p>Calling ioctl() to re-read partition table.<\/p>\n<p>WARNING: If you have created or modified any DOS 6.x<br \/>\npartitions, please see the fdisk manual page for additional<br \/>\ninformation.<br \/>\nSyncing disks.<br \/>\n[planet root] \/tmp > mkdosfs \/dev\/sdb1<br \/>\nmkdosfs 2.10 (22 Sep 2003)<br \/>\n[planet root] \/tmp > mount -t vfat \/dev\/sdb1 \/cf<br \/>\n[planet root] \/tmp > ls \/cf<br \/>\n[planet root] \/tmp > cp \/etc\/profile \/cf<br \/>\n[planet root] \/tmp > ls -l \/cf<br \/>\ntotal 16<br \/>\n-rwxr&#8211;r&#8211;  1 root root 2451 2004-07-02 17:22 profile*<br \/>\n[planet root] \/etc > df<br \/>\nFilesystem           1K-blocks      Used Available Use% Mounted on<br \/>\n\/dev\/hda2              3890324   3412840    276672  93% \/<br \/>\n\/dev\/hda4             27808660   7380104  18993152  28% \/home<br \/>\n\/dev\/hda1              6144828   4026872   2117956  66% \/wxp<br \/>\n\/dev\/sda1             38446560  28631032   7862556  79% \/u<br \/>\n\/dev\/sdb1              1006576        16   1006560   1% \/cf<br \/>\n[planet root] \/tmp ><\/p>\n<p>============================================================<\/p>\n<p>Do you get any  difference? If so, what?<\/p>\n<p>Jack<br \/>\n&#8212; <br \/>\nOnce, they feared you. Then they matched you. Now they are laughing<br \/>\nat you. Soon they will ignore you. You have lost.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[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 &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=96\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96"}],"version-history":[{"count":0,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}