Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Forum italiano (Italian) Risorse italiane (documentazione e tools)
  • Search

[Howto] Hald/Ivman in modalità async [INCOMPLETO]

Forum riservato alla documentazione in italiano.

Moderator: ago

Post Reply
  • Print view
Advanced search
11 posts • Page 1 of 1
Author
Message
PioniereElfico
n00b
n00b
User avatar
Posts: 58
Joined: Wed Nov 03, 2004 5:07 pm
Location: Brescia

[Howto] Hald/Ivman in modalità async [INCOMPLETO]

  • Quote

Post by PioniereElfico » Wed Jan 25, 2006 1:21 pm

Come risaputo da questo report https://bugs.gentoo.org/show_bug.cgi?id=99039 con i nuovi kernel viene messo in automatico il mount in modalità sync sulle periferiche usb (per ora riscontrato solo sulle pennine e lettori mp3) con file system fat*.

Sostanzialmente con async si mantengono i dati scritti in un buffer e si aggiorna la tabella FAT solo alla fine dell'operazione , mentre con sync si aggiorna ad ogni blocco scritto. Sync accorcia decisamente la vita delle memorie USB... l'unico vantaggio è che non ci sarebbe il rischio di creare dati corrotti in caso di cattivo unmount della memoria.

Per ovviare questo problema è sufficiente specificare:

Code: Select all

mount -t vfat /dev/sda1 /media/usbdisk -o async
Se si usano programmi di automount come ivman o hald bisogna configurare le policy di mount.

Per Hald

Come mi ha suggerito Onip è importante creare una directory per i file di policy user-defined.

Code: Select all

mkdir /usr/share/hal/fdi/policy/95userpolicy/
dopodiche si crea un file con le policy per usb

Code: Select all

nano -w /usr/share/hal/fdi/policy/95userpolicy/usb.fdi
dove si specifica la policy:

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <match key="@block.storage_device:storage.hotpluggable" bool="true">
      <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
    </match>
    <match key="@block.storage_device:storage.removable" bool="true">
      <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
    </match>
  </device>
</deviceinfo> 
Per Ivman

***Se qualcuno ha ivman può gentilmente postare la soluzione o un link***
Last edited by PioniereElfico on Thu Jan 26, 2006 7:29 pm, edited 3 times in total.
Gentoo è gentoo...

-PioniereElfico-
Members of the "LUG Crema"
lru 371348 - icq 67561979
Top
Cazzantonio
Bodhisattva
Bodhisattva
User avatar
Posts: 4514
Joined: Sat Mar 20, 2004 8:57 pm
Location: Somewere around the world

  • Quote

Post by Cazzantonio » Thu Jan 26, 2006 11:49 am

cosa cambia di preciso tra la modalità sync e async?
Ho dato una lettura veloce al bug report ma forse se lo spieghi nel thread è meglio :wink:

P.S.
la dir non dovrebbe essere

Code: Select all

/usr/share/hal/fdi/95userpolicy/
invece di

Code: Select all

/usr/share/hal/fdi/policy/95userpolicy/
?
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Top
Onip
Advocate
Advocate
User avatar
Posts: 2912
Joined: Thu Sep 02, 2004 10:34 am
Location: Parma (Italy)

  • Quote

Post by Onip » Thu Jan 26, 2006 1:18 pm

Code: Select all

/usr/share/hal/fdi/95userpolicy/
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Top
CarloJekko
Veteran
Veteran
User avatar
Posts: 1315
Joined: Thu Mar 31, 2005 9:00 am
Location: Baia Domizia :-)
Contact:
Contact CarloJekko
Website

  • Quote

Post by CarloJekko » Thu Jan 26, 2006 2:19 pm

Sostanzialmente con async si mantengono i dati scritti in un buffer e si aggiorna la tabella FAT solo alla fine dell'operazione , mentre con sync si aggiorna ad ogni blocco scritto. Sync accorcia decisamente la vita delle memorie USB... l'unico vantaggio è che non ci sarebbe il rischio di creare dati corrotti in caso di cattivo unmount della memoria
C.
Top
bandreabis
Advocate
Advocate
User avatar
Posts: 2497
Joined: Fri Feb 18, 2005 4:21 pm
Location: イタリアのロディで

  • Quote

Post by bandreabis » Sat Feb 10, 2007 12:44 pm

A me succede anche per filesystem ext3.
Il numero di post non fa di me un esperto! Anzi!
Top
sometimes
n00b
n00b
Posts: 52
Joined: Sat Jun 25, 2005 9:12 am

  • Quote

Post by sometimes » Sat Feb 10, 2007 1:05 pm

come faccio per sapere con quale modalità è montata la mia penna usb?
Top
bandreabis
Advocate
Advocate
User avatar
Posts: 2497
Joined: Fri Feb 18, 2005 4:21 pm
Location: イタリアのロディで

  • Quote

Post by bandreabis » Sat Feb 10, 2007 2:58 pm

sometimes wrote:come faccio per sapere con quale modalità è montata la mia penna usb?

Code: Select all

mount
Il numero di post non fa di me un esperto! Anzi!
Top
sometimes
n00b
n00b
Posts: 52
Joined: Sat Jun 25, 2005 9:12 am

  • Quote

Post by sometimes » Sat Feb 10, 2007 3:23 pm

bandreabis wrote:
sometimes wrote:come faccio per sapere con quale modalità è montata la mia penna usb?

Code: Select all

mount
/dev/sdb1 on /media/USB type vfat (rw,noexec,nosuid,nodev,shortname=winnt,uid=1001)

non dice niente al rigurado di async o sync...
scusate la mia niubbosità.
Top
bandreabis
Advocate
Advocate
User avatar
Posts: 2497
Joined: Fri Feb 18, 2005 4:21 pm
Location: イタリアのロディで

  • Quote

Post by bandreabis » Sat Feb 10, 2007 3:33 pm

sometimes wrote:
bandreabis wrote:
sometimes wrote:come faccio per sapere con quale modalità è montata la mia penna usb?

Code: Select all

mount
/dev/sdb1 on /media/USB type vfat (rw,noexec,nosuid,nodev,shortname=winnt,uid=1001)

non dice niente al rigurado di async o sync...
scusate la mia niubbosità.
Allora è async.
Il numero di post non fa di me un esperto! Anzi!
Top
cloc3
Advocate
Advocate
User avatar
Posts: 4840
Joined: Tue Jan 13, 2004 10:09 am
Location: http://www.gentoo-users.org/user/cloc3/
Contact:
Contact cloc3
Website

  • Quote

Post by cloc3 » Sun Feb 11, 2007 1:05 pm

bandreabis wrote:
sometimes wrote: /dev/sdb1 on /media/USB type vfat (rw,noexec,nosuid,nodev,shortname=winnt,uid=1001)

non dice niente al rigurado di async o sync...
scusate la mia niubbosità.
Allora è async.
:?:
se ho capito quanto è scritto nella guida sopra, il default è attualmente sync.
vu vu vu
gentù
mi piaci tu
Top
bandreabis
Advocate
Advocate
User avatar
Posts: 2497
Joined: Fri Feb 18, 2005 4:21 pm
Location: イタリアのロディで

  • Quote

Post by bandreabis » Sun Feb 11, 2007 1:19 pm

cloc3 wrote: :?:
se ho capito quanto è scritto nella guida sopra, il default è attualmente sync.
Sì. Ho dovuto scrivere una regola per hal per avere l'async.
Il numero di post non fa di me un esperto! Anzi!
Top
Post Reply
  • Print view

11 posts • Page 1 of 1

Return to “Risorse italiane (documentazione e tools)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy