need your help (LINUX)

ndsids

知名会员
注册
2004-05-16
消息
3,262
荣誉分数
287
声望点数
193
how to copy files to floppy? how to mkdir on the floppy?
I'm having a hard time copying a file to the floppy
I can mount it no problem - when when I try to copy it states permission denied.....something about read only??
 
I assume you use redhat. next time when you ask technic questions, indicate your OS, version, and any background that relates to your problem.

if the disk is formatted previously under windows, you need to do this:
$>mount -t vfat /dev/fd0 /mnt/floppy

if the disk is unformated you can do this:
$> mkfs -t vfat /dev/fd0 1440 && mount -t vfat /dev/fd0 /mnt/floppy
 
to format a floppy disk:
$mkfs -t ext3 /dev/fdo 1440
make sure you have "floppy" directory , if not ,create it:
$mkdir floppy

then map the floppy devices to the file system:
$mount /dev/fd0 /mnt/floppy

make sure you set the appropriate permission to your /mnt/floppy directory (and its parent directory,using 'chmod ' command)

copy sth into the floppy:
$cp files1 /mnt/floppy

when look into the floppy :
$ls /mnt/floppy
 
Assume you have all above done as root.
 
thank you very much for everyone..
 
后退
顶部