LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Cannot write to Floppy, even as root (https://www.linuxquestions.org/questions/linux-hardware-18/cannot-write-to-floppy-even-as-root-207767/)

Bob Moore 07-21-2004 04:42 AM

Cannot write to Floppy, even as root
 
Hi, I seem unable to write to my floppy drive anymore, even as root. When I logged in as root and tried to access the properties of the floppy drive I got the following:-
Owner: can view content
group: forbidden
others: forbidden

When I tried to change this I got the following error message:- 'Changing the attributes of files is not supported with protocol devices'

I used to be able to write to the floppy, so what happened? Can anyone help me?

I have enclosed below a copy of /etc/fstab

I am running Suse Linux 9.1 and Linux Kernal 2.6.5-7.95




/dev/hdb7 / reiserfs acl,user_xattr 1 1
/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb1 /windows/D ntfs rw,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb2 /windows/E ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda5 /windows/F ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb5 /windows/G ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb6 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrecorder /media/cdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvd /media/dvd subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,rw,users,nodev,nosuid,sync 0 0

jailbait 07-21-2004 10:03 AM

"When I tried to change this I got the following error message:- 'Changing the attributes of files is not supported with protocol devices'"

Check the permissions on /media/floppy. They should be 755:
ls -l /media/floppy

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Bob Moore 07-21-2004 11:20 AM

This is what I got when I ran that command.... How do you chmod the permissions?


bob@dhcppc0:~> ls -l /media/floppy
total 65
-rwxr-xr-x 1 bob users 28160 2003-12-19 15:54 Sales Invoice1.xlt
-rwxr-xr-x 1 bob users 22016 2003-12-19 09:38 V.A.T..doc
-rwxr-xr-x 1 bob users 15872 2003-12-19 16:48 vat.xlt
bob@dhcppc0:~>

minm 07-21-2004 12:10 PM

mabye you have that copy write lock thing on (physically on your floppy)

jailbait 07-21-2004 02:43 PM

"How do you chmod the permissions?"

Your /media/floppy is set up so that users can access read-only. Use this chmod to give everyone read/write/execute:

chmod 777 /media/floppy

If your floppy is formatted as a FAT16 or Fat32 file system then than is all you need to do because the files on the floppy simply assume the permmissions of the mount point. If the floppy is formatted as a Linux file system then you also need to change all of the permissions of the individual files. To do that mount the floppy and issue:

chmod 777 /media/floppy/* -R

--------------------
Steve Stites

Bob Moore 07-22-2004 03:51 AM

Hi Steve, I think it's worked. :-)

Thanks for that, all I have to wait for now is the time delay. I presume there is no way to speed that up?

jailbait 07-22-2004 09:45 AM

"all I have to wait for now is the time delay. I presume there is no way to speed that up?"

The time delay is caused by the way that Linux caches disk writes. You can force it to write by using the umount command, unless you are using automount.

If you are using automount you can remove it for the floppy by changing the floppy entry in /etc/fstab. Without automount you have to issue mount and umount commands for the floppy. I prefer to not use automount. I find it more convenient to issue mounts and umounts than to argue with automount about the status of the floppy.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Bob Moore 07-22-2004 10:22 AM

Hi Steve, thanks for that.... I will remove the automount. :-)
Bob


All times are GMT -5. The time now is 05:23 PM.