[newbie] Writing to floppy disc
Andre Steinhausen
newbie@vlug.org
Sun, 09 May 2004 18:21:10 -0700
try
su -
to become root in a shell
dre
Bryan wrote:
>In a shell I don't know how to get root priveleges
>
>On Sun, 2004-05-09 at 17:00, Andrew Barnes wrote:
>
>
>>=======================
>>When I tried this the response was "cp: cannot stat '/mnt/floppy/test.doc':
>>No medium found". I had a formatted floppy in the drive though.
>>=======================
>>
>>Try mounting the floppy drive before using the copy/cp command:
>>
>>mount /mnt/floppy
>>
>>response is "mount: according to mtab, none is already mounted on
>>
>>
>/mnt/floppy
>
>
>>mount failed"
>>
>>
>
>
>
>>...which is odd - times when I didn't mount the drive first, it would say
>>that the drive isn't mounted.
>>
>>Don't forget to unmount the drive once you are done using:
>>
>>umount /mnt/floppy
>>
>>=======================
>>Could you please let me know how to make the "pipe" symbol on a standard key
>>board?
>>=======================
>>
>>Sure - look to the Enter key, and then move one key up to see a key that has
>>"\" on it. The key with the slash will show either a solid vertical line,
>>but some show two small vertical lines - it's pipe all the same, you just
>>hold the shift key and press the \ key to get pipe.
>>
>>=======================
>>I tried but the response was "cmod: changing permissions of '/mnt/floppy':
>>Invalid argument"
>>=======================
>>
>>My initial thought is that you fell victim to a typo - I don't remember
>>having to set a flag for chmod to recognize characters vs. numbers for
>>setting permissions.
>>
>>-----Original Message-----
>>From: newbie-admin@vlug.org [mailto:newbie-admin@vlug.org] On Behalf Of
>>Bryan
>>Sent: Sunday, May 09, 2004 4:22 PM
>>To: newbie@vlug.org
>>Subject: RE: [newbie] Writing to floppy disc
>>
>>
>>Thanks Andrew,
>>
>>I don't know where I'm going wrong here.
>>
>>On Sat, 2004-05-08 at 19:06, Andrew Barnes wrote:
>>
>>
>>>Numerous bad GUI experiences led me to get more comfortable with the
>>>
>>>
>>command
>>
>>
>>>line - the nice part to this is that it doesn't matter what
>>>version/distro/etc this is done on.
>>>
>>>>From a command shell/terminal window you can run:
>>>
>>>cp [/where/the/file/is] /mnt/floppy
>>>When I tried this the response was "cp: cannot stat
>>>
>>>
>>'/mnt/floppy/test.doc': No medium found"
>>
>>
>>>I had a formatted floppy in the drive though.
>>>
>>>If you want to move the file to the floppy:
>>>
>>>mv [/where/the/file/is] /mnt/floppy
>>>
>>>If you get a response that your account doesn't have privilege(s) to do
>>>
>>>
>>this
>>
>>
>>>(and you know the root password), you can use the sudo command rather than
>>>logging in as root.
>>>
>>>===================================
>>>How to check and deal with permissions from Command Line:
>>>cd /mnt ; ls -l | grep floppy
>>>
>>>
>>>Could you please let me know how to make the "pipe" symbol on a standard
>>>
>>>
>>key board?
>>
>>
>>
>>>That will show the permissions for /mnt/floppy - it should start with d
>>>
>>>
>>(for
>>
>>
>>>directory, because it is), or there's problems. The letters after that
>>>
>>>
>>show
>>
>>
>>>what permissions ([r]ead, [w]rite, e[x]ecute)) there are per user, group
>>>
>>>
>>and
>>
>>
>>>world/other. So it'd look something like: "drwxrwx---".
>>>
>>>To change the permissions, you can use chmod. Here's an example:
>>>
>>>chmod ugo+rwx /mnt/floppy
>>>
>>>I tried but the response was "cmod: changing permissions of '/mnt/floppy':
>>>
>>>
>>Invalid argument"
>>
>>
>>>...of full privileges to /mnt/floppy. Not the best thing to do, giving
>>>
>>>
>>full
>>
>>
>>>permissions to something. So you can choose specifically using:
>>>
>>>chmod u+rwx /mnt/floppy
>>>
>>>This will add read/write/execute privs to User - the other priv's to group
>>>and world/other are left as they were. What if you only wanted to give
>>>
>>>
>>read
>>
>>
>>>and write priv?
>>>
>>>chmod u+rw /mnt/floppy
>>>
>>>You can replace the "+" with a "-" to remove privileges.
>>>
>>>-----Original Message-----
>>>From: newbie-admin@vlug.org [mailto:newbie-admin@vlug.org] On Behalf Of
>>>
>>>
>>John
>>
>>
>>>Bartlett
>>>Sent: Saturday, May 08, 2004 4:22 PM
>>>To: newbie@vlug.org
>>>Subject: Re: [newbie] Writing to floppy disc
>>>
>>>On Sat, 2004-05-08 at 11:20, Bryan wrote:
>>>
>>>
>>>>I am using Mandrake 9.2 and KDE. I can't figure out how to copy or save
>>>>files to /mnt/floppy. I am able to format a floppy disc though.
>>>>
>>>>There is a small padlock symbol on the desktop icon for the floppy drive
>>>>and the screen for setting permissions under Properties is greyed out -
>>>>not accessible. But, I notice the box for writing is blank.
>>>>
>>>>Can anyone telll me how to save or copy to the floppy disc? Change the
>>>>necessary permissions?
>>>>
>>>>
>>>Hi Bryan,
>>>
>>>I delayed responding for a while as I am a newbie too and cannot even
>>>format a floppy using RedHat 9.
>>>
>>>I do know however that if you open KDE or Nautilus from a command screen
>>>as root, you should lose the padlock and be able to copy to the disc. I
>>>don't think there is any way to change to root from within a user KDE
>>>screen.
>>>
>>>I probably got some of that wrong but that should ensure that someone
>>>really knowledgeable will put us both right!
>>>
>>>How often are you tempted to go back to the dark side?
>>>
>>>John
>>>
>>>_______________________________________________
>>>Newbie mailing list
>>>Newbie@vlug.org
>>>http://vlug.org/mailman/listinfo/newbie
>>>
>>>_______________________________________________
>>>Newbie mailing list
>>>Newbie@vlug.org
>>>http://vlug.org/mailman/listinfo/newbie
>>>
>>>
>>_______________________________________________
>>Newbie mailing list
>>Newbie@vlug.org
>>http://vlug.org/mailman/listinfo/newbie
>>
>>_______________________________________________
>>Newbie mailing list
>>Newbie@vlug.org
>>http://vlug.org/mailman/listinfo/newbie
>>
>>
>
>_______________________________________________
>Newbie mailing list
>Newbie@vlug.org
>http://vlug.org/mailman/listinfo/newbie
>
>
>