|
BrokeBody
|
 |
« poslato: 05 Јануар 2006, 16:19:14 » |
|
Secka mi gad gledam originalne DVD filmove... stefan@stefan:~$ sudo hdparm /dev/hdc Password:
/dev/hdc: IO_support = 0 (default 16-bit) unmaskirq = 0 (off) using_dma = 1 (on) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) HDIO_GETGEO failed: Invalid argument stefan@stefan:~$ OK, DMA je vec enabled, ali da bi mi ova podesavanja bila prihvacena pri bootovanju morao sam da editujem /etc/hdparm.conf skriptu. Evo moje /etc/hdparm.conf skripte, pa mi recite gde sam pogresio, posto mi originalni DVD filmovi i dalje seckaju? Pogledajte poslednjih 5 redova. To sam ja unosio. /etc/hdparm.conf skripta ## This is the default configuration for hdparm for Debian. It is a ## rather simple script, so please follow the following guidelines :) ## Any line that begins with a comment is ignored - add as many as you ## like. Note that an in-line comment is not supported. If a line ## consists of whitespace only (tabs, spaces, carriage return), it will be ## ignored, so you can space control fields as you like. ANYTHING ELSE ## IS PARSED!! This means that lines with stray characters or lines that ## use non # comment characters will be interpreted by the initscript. ## This has probably minor, but potentially serious, side effects for your ## hard drives, so please follow the guidelines. Patches to improve ## flexibilty welcome. Please read /usr/share/doc/hdparm/README.Debian for ## notes about known issues, especially if you have an MD array. ## ## Note that if the init script causes boot problems, you can pass 'nohdparm' ## on the kernel command line, and the script will not be run. ## ## Uncommenting the options below will cause them to be added to the DEFAULT ## string which is prepended to options listed in the blocks below. ## ## If an option is listed twice, the second instance replaces the first. ## ## /sbin/hdparm is not run unless a block of the form: ## DEV { ## option ## option ## ... ## } ## exists. This blocks will cause /sbin/hdparm OPTIONS DEV to be run. ## Where OPTIONS is the concatenation of all options previously defined ## outside of a block and all options defined with in the block.
# -q be quiet quiet # -a sector count for filesystem read-ahead #read_ahead_sect = 12 # -A disable/enable the IDE drive's read-lookahead feature #lookahead = on # -b bus state #bus = on # -B apm setting #apm = 255 # -c enable (E)IDE 32-bit I/O support - can be any of 0,1,3 #io32_support = 1 # -d disable/enable the "using_dma" flag for this drive #dma = off # -D enable/disable the on-drive defect management #defect_mana = off # -E cdrom speed #cd_speed = 16 # -k disable/enable the "keep_settings_over_reset" flag for this drive #keep_settings_over_reset = off # -K disable/enable the drive's "keep_features_over_reset" flag #keep_features_over_reset = on # -m sector count for multiple sector I/O #mult_sect_io = 32 # -P maximum sector count for the drive's internal prefetch mechanism #prefetch_sect = 12 # -r read-only flag for device #read_only = off # -S standby (spindown) timeout for the drive #spindown_time = 24 # -u interrupt-unmask flag for the drive #interrupt_unmask = on # -W Disable/enable the IDE drive's write-caching feature #write_cache = off # -X IDE transfer mode for newer (E)IDE/ATA2 drives #transfer_mode = 34 # -y force to immediately enter the standby mode #standby # -Y force to immediately enter the sleep mode #sleep # -Z Disable the power-saving function of certain Seagate drives #disable_seagate # -M Set the acoustic management properties of a drive #acoustic_management # -p Set the chipset PIO mode # chipset_pio_mode
# Root file systems. Please see README.Debian for details # ROOTFS = /dev/hda
## New note - you can use straight hdparm commands in this config file ## as well - the set up is ugly, but it keeps backwards compatibility ## Additionally, it should be noted that any blocks that begin with ## the keyword 'command_line' are not run until after the root filesystem ## is mounted. This is done to avoid running blocks twice. If you need ## to run hdparm to set parameters for your root disk, please use the ## standard format.
#Samples follow: #First three are good for devfs systems, fourth one for systems that do #not use devfs. The fifth example uses straight hdparm command line #syntax. Any of the blocks that use command line syntax must begin with #the keyword 'command_line', and no attempt is made to validate syntax. #It is provided for those more comfortable with hdparm syntax.
#/dev/discs/disc0/disc { # mult_sect_io = 16 # write_cache = off # spindown_time = 240 #}
#/dev/discs/disc1/disc { # mult_sect_io = 32 # spindown_time = 36 # write_cache = off #}
#/dev/cdroms/cdrom0 { # dma = on # interrupt_unmask = on # io32_support = 0 #}
#/dev/hda { # mult_sect_io = 16 # write_cache = off # dma = on #}
#command_line { # hdparm -q -m16 -q -W0 -q -d1 /dev/hda #} /dev/cdrom { dma = on }
#/dev/hdc { # dma = on #} }
Ne znam vise sta da radim? :cry:
|
|
|
|
« Poslednja izmena: 27 Септембар 2006, 17:25:58 od BrokeBody »
|
Prijavi uredniku
Sačuvana
|
|
|
|
|
DVSoftware
|
 |
« Odgovor #1 poslato: 05 Јануар 2006, 18:39:03 » |
|
kod mene je stanje ovakvo # hdparm /dev/hdc
/dev/hdc: IO_support = 1 (32-bit) unmaskirq = 1 (on) using_dma = 1 (on) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) HDIO_GETGEO failed: Invalid argument
pokushaj stavi ista podeshavanja
|
|
|
|
|
BrokeBody
|
 |
« Odgovor #2 poslato: 05 Јануар 2006, 19:32:10 » |
|
kod mene je stanje ovakvo # hdparm /dev/hdc
/dev/hdc: IO_support = 1 (32-bit) unmaskirq = 1 (on) using_dma = 1 (on) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) HDIO_GETGEO failed: Invalid argument
pokushaj stavi ista podeshavanja Kako da stavim ista? Kako da promenim IO_support na 32-bit i unmaskirq na "on"?
|
|
|
|
|
LYb
|
 |
« Odgovor #3 poslato: 06 Јануар 2006, 04:56:02 » |
|
man hdparm pa ces videti i sam kako. Da ne budem dezurni namcor, pogledaj http://gentoo-wiki.com/HOWTO_Use_hdparm_to_improve_IDE_device_performanceTo je medju prvim linkovima koje dobijes kada na google-u trazis "hdparm gentoo" - ne, ovo nije pokusaj forsiranja gentoo-a, nego stoji cinjenica da gentoo ima neverovatan community i da na taj nacin mozes da nadjes gomilu odgovora nevezanih za distribuciju koju koristis.
|
|
|
|
|
|
BrokeBody
|
 |
« Odgovor #4 poslato: 06 Јануар 2006, 05:39:01 » |
|
stefan@stefan:~$ hdparm /dev/hdc
/dev/hdc: IO_support = 1 (32-bit) unmaskirq = 0 (off) using_dma = 1 (on) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) HDIO_GETGEO failed: Invalid argument stefan@stefan:~$ I dalje secka. :cry:
|
|
|
|
|
LYb
|
 |
« Odgovor #5 poslato: 06 Јануар 2006, 18:00:47 » |
|
Probaj sa ukljucenim unmaskirq. Opcija -u1.
Nego, sad bas gledam originalni post i onu skriptu... pa tamo sve definises i sve ti je objasnjeno u najsitnija crevca (uzgred, nisu mi jasni "tih 5 poslednjih redova" koje si sam ubacio, nemaju smisla, a i iskometarisani su)... ubaci ovo:
/dev/hdc { dma = on interrupt_unmask = on io32_support = 1 mult_sect_io = 32 }
u ono gore mozed sa ubacis i transfer_mode = <broj>, s tim da je <broj>:
64 65 66 67 68 69 70 za UDMA 0 1 2 3 4 5 6, tim redom (npr za UDMA4 je 68, za UDMA2 je 66 i tako dalje)
E, kad to sve uradis, javi nam sta ti kaze hdparm -iI /dev/hdc
|
|
|
|
|
|
BrokeBody
|
 |
« Odgovor #6 poslato: 07 Јануар 2006, 18:25:53 » |
|
Dodao sam ono sto si mi rekao (poslednjih 7 redova). ## This is the default configuration for hdparm for Debian. It is a ## rather simple script, so please follow the following guidelines :) ## Any line that begins with a comment is ignored - add as many as you ## like. Note that an in-line comment is not supported. If a line ## consists of whitespace only (tabs, spaces, carriage return), it will be ## ignored, so you can space control fields as you like. ANYTHING ELSE ## IS PARSED!! This means that lines with stray characters or lines that ## use non # comment characters will be interpreted by the initscript. ## This has probably minor, but potentially serious, side effects for your ## hard drives, so please follow the guidelines. Patches to improve ## flexibilty welcome. Please read /usr/share/doc/hdparm/README.Debian for ## notes about known issues, especially if you have an MD array. ## ## Note that if the init script causes boot problems, you can pass 'nohdparm' ## on the kernel command line, and the script will not be run. ## ## Uncommenting the options below will cause them to be added to the DEFAULT ## string which is prepended to options listed in the blocks below. ## ## If an option is listed twice, the second instance replaces the first. ## ## /sbin/hdparm is not run unless a block of the form: ## DEV { ## option ## option ## ... ## } ## exists. This blocks will cause /sbin/hdparm OPTIONS DEV to be run. ## Where OPTIONS is the concatenation of all options previously defined ## outside of a block and all options defined with in the block.
# -q be quiet quiet # -a sector count for filesystem read-ahead #read_ahead_sect = 12 # -A disable/enable the IDE drive's read-lookahead feature #lookahead = on # -b bus state #bus = on # -B apm setting #apm = 255 # -c enable (E)IDE 32-bit I/O support - can be any of 0,1,3 #io32_support = 1 # -d disable/enable the "using_dma" flag for this drive #dma = off # -D enable/disable the on-drive defect management #defect_mana = off # -E cdrom speed #cd_speed = 16 # -k disable/enable the "keep_settings_over_reset" flag for this drive #keep_settings_over_reset = off # -K disable/enable the drive's "keep_features_over_reset" flag #keep_features_over_reset = on # -m sector count for multiple sector I/O #mult_sect_io = 32 # -P maximum sector count for the drive's internal prefetch mechanism #prefetch_sect = 12 # -r read-only flag for device #read_only = off # -S standby (spindown) timeout for the drive #spindown_time = 24 # -u interrupt-unmask flag for the drive #interrupt_unmask = on # -W Disable/enable the IDE drive's write-caching feature #write_cache = off # -X IDE transfer mode for newer (E)IDE/ATA2 drives #transfer_mode = 34 # -y force to immediately enter the standby mode #standby # -Y force to immediately enter the sleep mode #sleep # -Z Disable the power-saving function of certain Seagate drives #disable_seagate # -M Set the acoustic management properties of a drive #acoustic_management # -p Set the chipset PIO mode # chipset_pio_mode
# Root file systems. Please see README.Debian for details # ROOTFS = /dev/hda
## New note - you can use straight hdparm commands in this config file ## as well - the set up is ugly, but it keeps backwards compatibility ## Additionally, it should be noted that any blocks that begin with ## the keyword 'command_line' are not run until after the root filesystem ## is mounted. This is done to avoid running blocks twice. If you need ## to run hdparm to set parameters for your root disk, please use the ## standard format.
#Samples follow: #First three are good for devfs systems, fourth one for systems that do #not use devfs. The fifth example uses straight hdparm command line #syntax. Any of the blocks that use command line syntax must begin with #the keyword 'command_line', and no attempt is made to validate syntax. #It is provided for those more comfortable with hdparm syntax.
#/dev/discs/disc0/disc { # mult_sect_io = 16 # write_cache = off # spindown_time = 240 #}
#/dev/discs/disc1/disc { # mult_sect_io = 32 # spindown_time = 36 # write_cache = off #}
#/dev/cdroms/cdrom0 { # dma = on # interrupt_unmask = on # io32_support = 0 #}
#/dev/hda { # mult_sect_io = 16 # write_cache = off # dma = on #}
#command_line { # hdparm -q -m16 -q -W0 -q -d1 /dev/hda #} /dev/cdrom { dma = on }
#/dev/hdc { # dma = on #} }
dev/hdc { dma = on interrupt_unmask = on io32_support = 1 mult_sect_io = 32 }
Pa sam kucao u konzoli: stefan@stefan:~$ sudo hdparm -u1 /dev/hdc
/dev/hdc: setting unmaskirq to 1 (on) unmaskirq = 1 (on) stefan@stefan:~$ sudo hdparm /dev/hdc
/dev/hdc: IO_support = 0 (default 16-bit) unmaskirq = 1 (on) using_dma = 1 (on) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) HDIO_GETGEO failed: Invalid argument stefan@stefan:~$ I dalje secka. :cry: A da mozda nije problem u tome kako su mi kablovi prikaceni u kucistu? Neko mi rece da bi i zbog toga moglo da bude?
|
|
|
|
|
DVSoftware
|
 |
« Odgovor #7 poslato: 07 Јануар 2006, 23:46:38 » |
|
to je verovatno rekao windows struchnjak... nego sada ti je IO_support = 0 (default 16-bit)
|
|
|
|
|
BrokeBody
|
 |
« Odgovor #8 poslato: 08 Јануар 2006, 00:26:10 » |
|
Ju...! 8O Gle' stvarno...?!? Ponovo 16-bit? :? Cek, cek... stefan@stefan:~$ sudo hdparm -c1 /dev/hdc Password:
/dev/hdc: setting 32-bit IO_support flag to 1 IO_support = 1 (32-bit) stefan@stefan:~$ hdparm /dev/hdc
/dev/hdc: IO_support = 1 (32-bit) unmaskirq = 1 (on) using_dma = 1 (on) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) HDIO_GETGEO failed: Invalid argument stefan@stefan:~$ Evo ga. Ponovo na 32-bit, al' i dalje secka. :cry: Primetio sam nesto... Kad restartujem racunar meni se IO_support vrati na 16-bit. Na Ubuntuovom sajtu mi pise ovo: Enabling DMA
To enable DMA, you need to use the hdparm command and the configuration file hdparm.conf.
These instructions assume that you are trying to enable DMA on hdc, usually the CD-rom drive.
1.
See the what the settings are on /dev/hdc sudo hdparm /dev/hdc
2.
If you get a line like using_dma = 1 (on), DMA is already enabled. Skip to step 4 to see if it has been enabled at boot time. 3.
Enable DMA on /dev/hdc sudo hdparm -d1 /dev/hdc 4.
You have now enabled DMA for the drive. However, in order for the settings to be automatically applied at boot there you need to edit the /etc/hdparm.conf} script. To do this use this command: sudo gedit /etc/hdparm.conf
Add the following to the end of your hdparm.conf
/dev/hdc { dma = on }
Mozda ja nesto nisam lepo uneo u /etc/hdparm.conf skriptu, pa zbog toga i nece da mi prihvati IO_support na 32-bit pri bootovanju? :?:
|
|
|
|
|
BrokeBody
|
 |
« Odgovor #9 poslato: 08 Јануар 2006, 00:33:43 » |
|
Evo jos jednom moje skripte. Necu sada da kopiram celu, samo ono sto sam ja unosio (pretposlednje) po preporuci sa Ubuntuovog sajta i ono sto mi je LYb rekao da unesem (poslednje)... /dev/hdc { dma = on }
dev/hdc { dma = on interrupt_unmask = on io32_support = 1 mult_sect_io = 32 } Help meee...?!? :cry: :cry: :cry:
|
|
|
|
|
BrokeBody
|
 |
« Odgovor #10 poslato: 08 Јануар 2006, 01:02:36 » |
|
Ponovo sam cackao skriptu. U stvari nista novo nisam uradio, izbrisao sam sav tekst koji sam unosio i ponovo ga uneo. Ne znam sto sam to uradio, al' ajd'... Restartujem racunar i gle' cuda, IO_support mi se nije promenio. Sad je ostao na 32-bit, sto znaci (Po onom guide-u sa Ubuntuovog sajta) da sam sada lepo uneo u skriptu ono sto su rekli, odnosno da je prihvacen IO_support = 1 (32-bit) pri bootovanju.
Opet secka! :cry:
|
|
|
|
|
DVSoftware
|
 |
« Odgovor #11 poslato: 08 Јануар 2006, 03:23:05 » |
|
a jesi li siguran da nije do samog diska (oshtetjen?) da li ti svaki film secka? imash li josh neki optichki drive? jesi li siguran da je /dev/hdc?
|
|
|
|
|
BrokeBody
|
 |
« Odgovor #12 poslato: 08 Јануар 2006, 04:09:52 » |
|
jesi li siguran da je /dev/hdc? Pa jel' si procitao ono sto sam iskopirao sa Ubuntuovog sajta? Tamo pise /dev/hdc . Isprobao sam na 3 DVD-a.
|
|
|
|
|
BrokeBody
|
 |
« Odgovor #13 poslato: 08 Јануар 2006, 04:14:25 » |
|
A da probam sa /dev/hdd? Tu je stanje ovakvo... stefan@stefan:~$ hdparm /dev/hdd
/dev/hdd: IO_support = 0 (default 16-bit) unmaskirq = 0 (off) using_dma = 0 (off) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) HDIO_GETGEO failed: Invalid argument stefan@stefan:~$
|
|
|
|
|
BrokeBody
|
 |
« Odgovor #14 poslato: 08 Јануар 2006, 04:16:29 » |
|
Za sta je /dev/hdc? Za sta je /dev/hda? Za sta je /dev/hdd? Koji jos postoje?
|
|
|
|
|