Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Jak podłączyć i korzystać z PenDrive'a pod linuksem?
Było juz:
http://dug.net.pl/forum/viewtopic.php?t=837&highlight=pendrive
Offline
Pakiet usbmount, ręczne montowanie pendrivea jest moim zdaniem niewygodne i w wielu przypadkach niepraktyczne.
http://forum.dug.net.pl/viewtopic.php?t=2081#16902
Offline
to jeszcze dożuce to http://www.dug.net.pl/faq/index.php?kat=5&id=58
Offline
Odświeże temat - mam problema z penem, a właściwie z odtwarzaczem mp3. Usbmount zainstalowany, odpowiednie wpisy w pliku konfiguracyjnym też są.
Wykonałem to polecenie:
tail -f /var/log/kern.log
podłączyłem pena i wywaliło to:
Apr 30 19:52:39 dom kernel: bus usb: remove device 3-1
Apr 30 19:52:39 dom kernel: PM: Removing info for usb:3-1
Apr 30 19:52:39 dom kernel: usb 3-1: hotplug
Apr 30 19:52:39 dom kernel: usb-storage: *** thread awakened.
Apr 30 19:52:39 dom kernel: usb-storage: — exiting
Apr 30 19:52:39 dom kernel: hub 3-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
Apr 30 19:52:39 dom kernel: hub 1-0:1.0: state 5 ports 6 chg 0000 evt 0008
Apr 30 19:52:39 dom kernel: ehci_hcd 0000:00:10.3: GetStatus port 3 status 001002 POWER sig=se0 CSC
Apr 30 19:52:39 dom kernel: hub 1-0:1.0: port 3, status 0100, change 0001, 12 Mb/s
Apr 30 19:52:39 dom kernel: hub 1-0:1.0: debounce: port 3: total 100ms stable 100ms status 0x100
Apr 30 19:52:54 dom kernel: hub 1-0:1.0: state 5 ports 6 chg 0000 evt 0008
Apr 30 19:52:54 dom kernel: ehci_hcd 0000:00:10.3: GetStatus port 3 status 001803 POWER sig=j CSC CONNECT
Apr 30 19:52:54 dom kernel: hub 1-0:1.0: port 3, status 0501, change 0001, 480 Mb/s
Apr 30 19:52:54 dom kernel: hub 1-0:1.0: debounce: port 3: total 100ms stable 100ms status 0x501
Apr 30 19:52:54 dom kernel: ehci_hcd 0000:00:10.3: port 3 full speed --> companion
Apr 30 19:52:54 dom kernel: ehci_hcd 0000:00:10.3: GetStatus port 3 status 003801 POWER OWNER sig=j CONNECT
Apr 30 19:52:54 dom kernel: hub 1-0:1.0: port_wait_reset: err = -107
Apr 30 19:52:54 dom kernel: hub 3-0:1.0: state 5 ports 2 chg 0000 evt 0002
Apr 30 19:52:54 dom kernel: uhci_hcd 0000:00:10.1: port 1 portsc 0093,00
Apr 30 19:52:54 dom kernel: hub 3-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
Apr 30 19:52:55 dom kernel: hub 3-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
Apr 30 19:52:55 dom kernel: usb 3-1: new full speed USB device using uhci_hcd and address 10
Apr 30 19:52:55 dom kernel: usb 3-1: ep0 maxpacket = 8
Apr 30 19:52:55 dom kernel: usb 3-1: default language 0x0409
Apr 30 19:52:55 dom kernel: usb 3-1: new device strings: Mfr=0, Product=1, SerialNumber=2
Apr 30 19:52:55 dom kernel: usb 3-1: Product: USB 2.0(FS) FLASH DISK
Apr 30 19:52:55 dom kernel: usb 3-1: SerialNumber: USB 2.0(FS) FLASH DISK
Apr 30 19:52:55 dom kernel: DEV: registering device: ID = '3-1'
Apr 30 19:52:55 dom kernel: usb 3-1: hotplug
Apr 30 19:52:55 dom kernel: PM: Adding info for usb:3-1
Apr 30 19:52:55 dom kernel: bus usb: add device 3-1
Apr 30 19:52:55 dom kernel: bound device '3-1' to driver 'usb'
Apr 30 19:52:55 dom kernel: usb 3-1: adding 3-1:1.0 (config #1, interface 0)
Apr 30 19:52:55 dom kernel: DEV: registering device: ID = '3-1:1.0'
Apr 30 19:52:55 dom kernel: usb 3-1:1.0: hotplug
Apr 30 19:52:55 dom kernel: PM: Adding info for usb:3-1:1.0
Apr 30 19:52:55 dom kernel: bus usb: add device 3-1:1.0
Apr 30 19:52:55 dom kernel: usb: Matched Device 3-1:1.0 with Driver usb-storage
Apr 30 19:52:55 dom kernel: usb-storage 3-1:1.0: usb_probe_interface
Apr 30 19:52:55 dom kernel: usb-storage 3-1:1.0: usb_probe_interface - got id
Apr 30 19:52:55 dom kernel: usb-storage: USB Mass Storage device detected
Apr 30 19:52:55 dom kernel: usb-storage: — associate_dev
Apr 30 19:52:55 dom kernel: usb-storage: Vendor: 0x10d6, Product: 0x1100, Revision: 0x0100
Apr 30 19:52:55 dom kernel: usb-storage: Interface Subclass: 0x05, Protocol: 0x50
Apr 30 19:52:55 dom kernel: usb-storage: Transport: Bulk
Apr 30 19:52:55 dom kernel: usb-storage: Protocol: 8070i
Apr 30 19:52:55 dom kernel: usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1
Apr 30 19:52:55 dom kernel: usb-storage: GetMaxLUN command result is 1, data is 0
Apr 30 19:52:55 dom kernel: scsi6 : SCSI emulation for USB Mass Storage devices
Apr 30 19:52:55 dom kernel: DEV: registering device: ID = 'host6'
Apr 30 19:52:55 dom kernel: PM: Adding info for No Bus:host6
Apr 30 19:52:55 dom kernel: CLASS: registering class device: ID = 'host6'
Apr 30 19:52:55 dom kernel: class_hotplug - name = host6
Apr 30 19:52:55 dom kernel: usb-storage: *** thread sleeping.
Apr 30 19:52:55 dom kernel: bound device '3-1:1.0' to driver 'usb-storage'
Apr 30 19:52:55 dom kernel: usb: Bound Device 3-1:1.0 to Driver usb-storage
Apr 30 19:52:55 dom kernel: hub 3-0:1.0: state 5 ports 2 chg 0000 evt 0002
Apr 30 19:52:55 dom kernel: usb-storage: device found at 10
Apr 30 19:52:55 dom kernel: usb-storage: waiting for device to settle before scanning
Apr 30 19:53:00 dom kernel: DEV: registering device: ID = 'target6:0:0'
Apr 30 19:53:00 dom kernel: PM: Adding info for No Bus:target6:0:0
Apr 30 19:53:00 dom kernel: usb-storage: queuecommand called
Apr 30 19:53:00 dom kernel: usb-storage: *** thread awakened.
Apr 30 19:53:00 dom kernel: usb-storage: Command INQUIRY (6 bytes)
Apr 30 19:53:00 dom kernel: usb-storage: 12 00 00 00 24 00
Apr 30 19:53:00 dom kernel: usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 12
Apr 30 19:53:00 dom kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
Apr 30 19:53:00 dom kernel: usb-storage: Status code 0; transferred 31/31
Apr 30 19:53:00 dom kernel: usb-storage: — transfer complete
Apr 30 19:53:00 dom kernel: usb-storage: Bulk command transfer result=0
Apr 30 19:53:00 dom kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes
Apr 30 19:53:00 dom kernel: usb-storage: Status code 0; transferred 36/36
Apr 30 19:53:00 dom kernel: usb-storage: — transfer complete
Apr 30 19:53:00 dom kernel: usb-storage: Bulk data transfer result 0x0
Apr 30 19:53:00 dom kernel: usb-storage: Attempting to get CSW...
Apr 30 19:53:00 dom kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
Apr 30 19:53:00 dom kernel: usb-storage: Status code 0; transferred 13/13
Apr 30 19:53:00 dom kernel: usb-storage: — transfer complete
Apr 30 19:53:00 dom kernel: usb-storage: Bulk status result = 0
Apr 30 19:53:00 dom kernel: usb-storage: Bulk Status S 0x53425355 T 0x1 R 0 Stat 0x0
Apr 30 19:53:00 dom kernel: usb-storage: scsi cmd done, result=0x0
Apr 30 19:53:00 dom kernel: usb-storage: *** thread sleeping.
Apr 30 19:53:00 dom kernel: Vendor: Model: Rev:
Apr 30 19:53:00 dom kernel: Type: Direct-Access ANSI SCSI revision: 00
Apr 30 19:53:00 dom kernel: DEV: registering device: ID = '6:0:0:0'
Apr 30 19:53:00 dom kernel: PM: Adding info for scsi:6:0:0:0
Apr 30 19:53:00 dom kernel: bus scsi: add device 6:0:0:0
Apr 30 19:53:00 dom kernel: CLASS: registering class device: ID = '6:0:0:0'
Apr 30 19:53:00 dom kernel: class_hotplug - name = 6:0:0:0
Apr 30 19:53:00 dom kernel: usb-storage: queuecommand called
Apr 30 19:53:00 dom kernel: usb-storage: *** thread awakened.
Apr 30 19:53:00 dom kernel: usb-storage: Bad LUN (0:1)
Apr 30 19:53:00 dom kernel: usb-storage: scsi cmd done, result=0x40000
Apr 30 19:53:00 dom kernel: usb-storage: *** thread sleeping.
Apr 30 19:53:00 dom kernel: DEV: registering device: ID = 'target6:0:1'
Apr 30 19:53:00 dom kernel: PM: Adding info for No Bus:target6:0:1
Apr 30 19:53:00 dom kernel: usb-storage: queuecommand called
Apr 30 19:53:00 dom kernel: usb-storage: *** thread awakened.
Apr 30 19:53:00 dom kernel: usb-storage: Bad target number (1:0)
Apr 30 19:53:00 dom kernel: usb-storage: scsi cmd done, result=0x40000
Apr 30 19:53:00 dom kernel: usb-storage: *** thread sleeping.
Apr 30 19:53:00 dom kernel: PM: Removing info for No Bus:target6:0:1
Apr 30 19:53:00 dom kernel: DEV: registering device: ID = 'target6:0:2'
Apr 30 19:53:00 dom kernel: PM: Adding info for No Bus:target6:0:2
Apr 30 19:53:00 dom kernel: usb-storage: queuecommand called
Apr 30 19:53:00 dom kernel: usb-storage: *** thread awakened.
Apr 30 19:53:00 dom kernel: usb-storage: Bad target number (2:0)
Apr 30 19:53:00 dom kernel: usb-storage: scsi cmd done, result=0x40000
Apr 30 19:53:00 dom kernel: usb-storage: *** thread sleeping.
Apr 30 19:53:00 dom kernel: PM: Removing info for No Bus:target6:0:2
Apr 30 19:53:00 dom kernel: DEV: registering device: ID = 'target6:0:3'
Apr 30 19:53:00 dom kernel: PM: Adding info for No Bus:target6:0:3
Apr 30 19:53:00 dom kernel: usb-storage: queuecommand called
Apr 30 19:53:00 dom kernel: usb-storage: *** thread awakened.
Apr 30 19:53:00 dom kernel: usb-storage: Bad target number (3:0)
Apr 30 19:53:00 dom kernel: usb-storage: scsi cmd done, result=0x40000
Apr 30 19:53:00 dom kernel: usb-storage: *** thread sleeping.
Apr 30 19:53:00 dom kernel: PM: Removing info for No Bus:target6:0:3
Apr 30 19:53:00 dom kernel: DEV: registering device: ID = 'target6:0:4'
Apr 30 19:53:00 dom kernel: PM: Adding info for No Bus:target6:0:4
Apr 30 19:53:00 dom kernel: usb-storage: queuecommand called
Apr 30 19:53:00 dom kernel: usb-storage: *** thread awakened.
Apr 30 19:53:00 dom kernel: usb-storage: Bad target number (4:0)
Apr 30 19:53:00 dom kernel: usb-storage: scsi cmd done, result=0x40000
Apr 30 19:53:00 dom kernel: usb-storage: *** thread sleeping.
Apr 30 19:53:00 dom kernel: PM: Removing info for No Bus:target6:0:4
Apr 30 19:53:00 dom kernel: DEV: registering device: ID = 'target6:0:5'
Apr 30 19:53:00 dom kernel: PM: Adding info for No Bus:target6:0:5
Apr 30 19:53:00 dom kernel: usb-storage: queuecommand called
Apr 30 19:53:00 dom kernel: usb-storage: *** thread awakened.
Apr 30 19:53:00 dom kernel: usb-storage: Bad target number (5:0)
Apr 30 19:53:00 dom kernel: usb-storage: scsi cmd done, result=0x40000
Apr 30 19:53:00 dom kernel: usb-storage: *** thread sleeping.
Apr 30 19:53:00 dom kernel: PM: Removing info for No Bus:target6:0:5
Apr 30 19:53:00 dom kernel: DEV: registering device: ID = 'target6:0:6'
Apr 30 19:53:00 dom kernel: PM: Adding info for No Bus:target6:0:6
Apr 30 19:53:00 dom kernel: usb-storage: queuecommand called
Apr 30 19:53:00 dom kernel: usb-storage: *** thread awakened.
Apr 30 19:53:00 dom kernel: usb-storage: Bad target number (6:0)
Apr 30 19:53:00 dom kernel: usb-storage: scsi cmd done, result=0x40000
Apr 30 19:53:00 dom kernel: usb-storage: *** thread sleeping.
Apr 30 19:53:00 dom kernel: PM: Removing info for No Bus:target6:0:6
Apr 30 19:53:00 dom kernel: DEV: registering device: ID = 'target6:0:7'
Apr 30 19:53:00 dom kernel: PM: Adding info for No Bus:target6:0:7
Apr 30 19:53:00 dom kernel: usb-storage: queuecommand called
Apr 30 19:53:00 dom kernel: usb-storage: *** thread awakened.
Apr 30 19:53:00 dom kernel: usb-storage: Bad target number (7:0)
Apr 30 19:53:00 dom kernel: usb-storage: scsi cmd done, result=0x40000
Apr 30 19:53:00 dom kernel: usb-storage: *** thread sleeping.
Apr 30 19:53:00 dom kernel: PM: Removing info for No Bus:target6:0:7
Apr 30 19:53:00 dom kernel: usb-storage: device scan complete[/quote]
i jestem w kropce. Najlepsze, że na tych samych ustawieniach na kompie w robocie wszystko pięknie działa.
[color=green]Sorry - nieaktualne, już działa :)[/color]
Debian jest lepszy niż wszystkie klony
Linux register users: #359018
[img]http://www.freebsd.org/gifs/powerlogo.gif[/img]
[url=https://goo.gl/photos/5XGKFkvaMimLwM2s9]Beskid Niski[/url]
Offline
to jeszcze dożuce to http://www.dug.net.pl/faq/index.php?kat=5&id=58[/quote]
mount /dev/sda1 ??
nie zupełnie się z tym zgodze...
u mnie aparat cyfrowy jest jako /dev/sda1
natomiast odtwarzacz mp3 jako /dev/sda !!
nie wiem od czego to zależy :P
[url]http://sourceland.xt.pl[/url]
Offline
Jeszcze jedno pytanie - dlaczego transfery do pendraka mam na poziomie 32 KB/s. Toż szybciej mi ściąga z netu niż wgrywa na flasha
Offline
kazdy pendrive ma parametry zapis odczyt no i jeszcze jakei wejści usb nowsze czy starsze
Offline
USB 2.0
w instrukcji pisze że zapis 2 MB/s
ale takie marne transfery są na windzie też, no chyba że pendrak badziewny, a parametry z sufitu
Offline
Jeszcze jedno pytanie - dlaczego transfery do pendraka mam na poziomie 32 KB/s. Toż szybciej mi ściąga z netu niż wgrywa na flasha[/quote]
Moim zdaniem, albo USB walneło, albo urządzenie. Port LPT wyciaga chyba ponad 400 KB/s a COM 40 KB/s. Wiec te 32 na USB to jakies nieporozumienie :)
Pozdrawiam
Wszedzie dobrze, ale w 127.0.0.1 najlepiej...
Offline
W sumie znalazłem rozwiązanie problemu słabych transferów. Pendrak nie był uwalony. Wygląda na to że technologia usbmount nie jest jeszcze do końca dopracowana. Po kolei:
pondrak montowany przez usbmount -> zapis tylko z roota i transfery rzędu 32 KB/s
pendrak montowany klasycznie -> zapis z usera i roota, transfer 8,7 MB/s
Offline
Time (s) | Query |
---|---|
0.00011 | SET CHARSET latin2 |
0.00020 | SET NAMES latin2 |
0.00757 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.227.140.251' WHERE u.id=1 |
0.00328 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.227.140.251', 1738335224) |
0.00084 | SELECT * FROM punbb_online WHERE logged<1738334924 |
0.00176 | SELECT topic_id FROM punbb_posts WHERE id=27350 |
0.00006 | SELECT id FROM punbb_posts WHERE topic_id=2321 ORDER BY posted |
0.00062 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=2321 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00251 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=2321 ORDER BY p.id LIMIT 0,25 |
0.00378 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=2321 |
Total query time: 0.02078 s |