View previous topic :: View next topic |
Author |
Message |
Sivar Apprentice
Joined: 25 May 2002 Posts: 266 Location: USA
|
Posted: Wed Jun 26, 2002 12:55 am Post subject: Updating ls's list of disk contents |
|
|
When I mount a floppy and later add a file, an 'ls' just lists whatever it had previously listed as if it werecached, which it probably is. The only way to relist contents is to mount and unmount the floppy, which is a huge PITA for such a simple task.
How would I do this efficiently? _________________ The greatest deeds are still undone, the greatest songs are still unsung... |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Jun 26, 2002 1:34 am Post subject: |
|
|
If my memory serves (and it may not) I'm pretty sure you need to unmount the
floppy when you change it, then remount it. Solaris had a utility to make it easier,
but not sure if it is available elsewhere. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
sulu Guru
Joined: 21 May 2002 Posts: 399 Location: Dornbirn/Austria
|
Posted: Wed Jun 26, 2002 6:32 am Post subject: |
|
|
Hmmmm
Maybe sync is your friend. It writes cached files on the appropriate devices. But if you use the floppy often have a look on mtools. |
|
Back to top |
|
|
Tarball Tux's lil' helper
Joined: 19 Jun 2002 Posts: 142 Location: Cheshire, UK
|
Posted: Wed Jun 26, 2002 11:08 am Post subject: |
|
|
IIRC, you can add 'sync' as an option in fstab for your floppy so that all writes to the floppy are done immediately.
I have found it can help if you take a disk out without unmounting it first (but it's probably not a good idea to rely on this behaviour!!!) |
|
Back to top |
|
|
|