[CentOS] Copying a file to a usb stick

m.roth at 5-cent.us m.roth at 5-cent.us
Mon Nov 5 21:35:20 UTC 2012


Please don't top post.

Twanny Azzopardi wrote:
> On Monday 05 November 2012 22:20, m.roth at 5-cent.us wrote:
>> Twanny Azzopardi wrote:
>> >
>> > I formatted a 64MB usb stick with this command 'mkfs.ext2 -b 1024
>> > /dev/XXX1' ,
>> > to copy a file of 9230653440, but when it reached 7921295360, it gave
>> > input/output error and the file is not copied.
>> >
>> > How should this be done?
>>
>> What's the o/p of df?
>>
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/mapper/VolGroup00-LogVol00
>                      281769440  38265676 228959688  15% /
> /dev/hda1               101086     18743     77124  20% /boot
> tmpfs                   501104         0    501104   0% /dev/shm
> /var/ftp/iso/CentOS-5.8-i386-bin-DVD-1of2.iso
>                        3831642   3831642         0 100% /var/ftp/centos
> /var/ftp/iso/FreePBX-1.814.210.58-i386-Full-1343753603.iso
>                         728838    728838         0 100% /var/ftp/FreePBX
> /dev/sde1             33016917   7770601  23568730  25% /mnt
>

When you did that, a) is the flash drive mounted, and b) is it /dev/sde1?

Actually, now I'm *really* confused: did you mean that the drive was 64G,
or 64M?

Finally, please realize that the metadata for a filesystem will result in
the filesystem being smaller than the raw drive. For example, here at
work, I have a 250G drive, with a 1G /boot, a 2G swap, and the rest /...
and formatted, / is 229G.

     mark




More information about the CentOS mailing list