Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Updating ls's list of disk contents
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Sivar
Apprentice
Apprentice


Joined: 25 May 2002
Posts: 266
Location: USA

PostPosted: Wed Jun 26, 2002 12:55 am    Post subject: Updating ls's list of disk contents Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16090
Location: Colorado

PostPosted: Wed Jun 26, 2002 1:34 am    Post subject: Reply with quote

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.
_________________
lolgov. 'cause where we're going, you don't have civil liberties.

In Loving Memory
1787 - 2008
Back to top
View user's profile Send private message
sulu
Guru
Guru


Joined: 21 May 2002
Posts: 399
Location: Dornbirn/Austria

PostPosted: Wed Jun 26, 2002 6:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Tarball
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2002
Posts: 142
Location: Cheshire, UK

PostPosted: Wed Jun 26, 2002 11:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum