[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem with flash drive



Dear list -

I am trying to copy FreeDOS to a flash drive.  I can't make it work.

This is what I have done -

Command (m for help): p

Disk /dev/sdb: 4051 MB, 4051697664 bytes
125 heads, 62 sectors/track, 1021 cylinders, total 7913472 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00077d8f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048      989184      493568+   c  W95 FAT32 (LBA)
/dev/sdb2          989185     7913471     3462143+  83  Linux

I then delete the DOS partition since it seems to be corrupted and add regenerate the FAT Partition, and write it out.

Make file system:

mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.16 (01 Mar 2013)

Check file system:

fsck.vfat /dev/sdb1
dosfsck 3.0.16, 01 Mar 2013, FAT32, LFN
/dev/sdb1: 0 files, 0/61661 clusters

Copy FreeDOS:

dd if=/home/ethan/Downloads/FreeDOS-1.1-USB-Boot.img of=/dev/sdb1
63488+0 records in
63488+0 records out
32505856 bytes (33 MB) copied, 1.30864 s, 24.8 MB/

Check Mount:

/dev/sdb1 on /media/bkup type vfat (ro,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro)


Check Contents:

rosenberg:/media# ls -la bkup
ls: cannot access bkup/%f IN (-.--s: Input/output error
ls: cannot access bkup/in a bat.ch: Input/output error
ls: cannot access bkup/
  label: Input/output error
ls: cannot access bkup/ng used.in: Input/output error
ls: cannot access bkup/ colon.
: Input/output error
ls: cannot access bkup/ry [size.]

: Input/output error
ls: cannot access bkup/tch prog.ram: Input/output error
ls: cannot access bkup/   Speci.fie: Input/output error
ls: cannot access bkup/ minsize.2 s: Input/output error
ls: cannot access bkup/ while t.he: Input/output error
ls: cannot access bkup/64k of m.emo: Input/output error
ls: cannot access bkup/lays or.set: Input/output error
etc..  etc...

If I gave you the full output from the ls, it would probably be three pages or more.

OS: sid 32 bit

Now what?

Ethan


Reply to: