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!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2012-05-15 08:18:31

  krzys - Użytkownik

krzys
Użytkownik
Zarejestrowany: 2008-09-19

usbmount - montowanie hdd na usb

Witam,

pytanie pewnie w stylu dyletanta, ale jak po dłuższym czasie bezczynności zdalnie za pomocą konsoli zamontować hdd na usb, gdy oczywiście restart maszynki nie wchodzi w grę? Pakiet usbmount oczywiście zainstalowany, dysk bezpośrednio po podłączeniu widać. Po dłuższym czasie bezczynności przestaje być widoczny.

Kod:

aptitude search usbmount
p   usbmount                                                           - automatically mount and unmount USB mass storage devices

lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Ostatnio edytowany przez krzys (2012-05-15 08:19:36)

Offline

 

#2  2012-05-15 08:24:00

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: usbmount - montowanie hdd na usb

[quote=krzys]Po dłuższym czasie bezczynności przestaje być widoczny.[/quote]
Polecenie [tt]fdisk -l[/tt] również go nie widzi?


[img]http://svn.debianart.org/themes/generic/spinner/spinner48px-moreblue.png[/img]

Offline

 

#3  2012-05-15 08:29:15

  krzys - Użytkownik

krzys
Użytkownik
Zarejestrowany: 2008-09-19

Re: usbmount - montowanie hdd na usb

niestety - tylko dysk podstawowy, aczkolwiek kontrolka na dysku usb się pali, czyli zasilanie ma

Ostatnio edytowany przez krzys (2012-05-15 08:30:45)

Offline

 

#4  2012-05-15 09:06:39

  torrentow - Członek Sejmowej Komisji Śledczej

torrentow
Członek Sejmowej Komisji Śledczej
Skąd: z GNU
Zarejestrowany: 2009-11-23

Re: usbmount - montowanie hdd na usb

Witam,
Co pluje polecenie dmesg?
Pozdrawiam,
Towarzysz Torrentow


Każdy sam sobie szkodzi :)
[img]http://img715.imageshack.us/img715/7104/apt.png[/img]

Offline

 

#5  2012-05-15 09:26:31

  krzys - Użytkownik

krzys
Użytkownik
Zarejestrowany: 2008-09-19

Re: usbmount - montowanie hdd na usb

trochę go pociąłem, ale to co najważniejsze chyba jest (sporo tego było)

Kod:

...

[   53.319114] usb 1-2: New USB device found, idVendor=1058, idProduct=0704
[   53.319119] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   53.319123] usb 1-2: Product: External HDD
[   53.319126] usb 1-2: Manufacturer: Western Digital
[   53.333506] Initializing USB Mass Storage driver...
[   53.333683] usb-storage 1-2:1.0: Quirks match for vid 1058 pid 0704: 8000
[   53.333742] scsi4 : usb-storage 1-2:1.0
[   53.333978] usbcore: registered new interface driver usb-storage
[   53.333983] USB Mass Storage support registered.
[   53.790399] scsi5 : ioc0: LSI53C1030 B2, FwRev=01032300h, Ports=1, MaxQ=255, IRQ=21
[   54.341078] scsi 4:0:0:0: Direct-Access     WD       1600BEV External 1.05 PQ: 0 ANSI: 4
[   54.342199] sd 4:0:0:0: Attached scsi generic sg2 type 0
[   54.352076] sd 4:0:0:0: [sdb] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[   54.365054] sd 4:0:0:0: [sdb] Write Protect is off
[   54.365060] sd 4:0:0:0: [sdb] Mode Sense: 21 00 00 00
[   54.365063] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[   54.389045] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[   54.399079]  sdb: sdb1
[   54.425383] mptspi 0000:00:06.1: PCI INT B -> GSI 22 (level, low) -> IRQ 22
[   54.425532] mptbase: ioc1: Initiating bringup
[   54.433053] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[   54.433108] sd 4:0:0:0: [sdb] Attached SCSI disk
[   54.912015] ioc1: LSI53C1030 B2: Capabilities={Initiator,Target}
[   55.402403] scsi6 : ioc1: LSI53C1030 B2, FwRev=01032300h, Ports=1, MaxQ=255, IRQ=22
[   56.100687] PM: Starting manual resume from disk
[   56.100694] PM: Hibernation image partition 8:5 present
[   56.100697] PM: Looking for hibernation image.
[   56.100943] PM: Image not found (code -22)
[   56.100946] PM: Hibernation image not present or could not be loaded.
[   56.140089] EXT3-fs: barriers not enabled
[   56.149552] kjournald starting.  Commit interval 5 seconds
[   56.149589] EXT3-fs (sda1): mounted filesystem with ordered data mode
[   56.542569] scsi 5:0:3:0: Sequential-Access HP       C7438A           V312 PQ: 0 ANSI: 3
[   56.542590] scsi target5:0:3: Beginning Domain Validation
[   56.558292] scsi target5:0:3: Domain Validation skipping write tests
[   56.558298] scsi target5:0:3: Ending Domain Validation
[   56.558366] scsi target5:0:3: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 32)
[   57.926408] udev[271]: starting version 164
[   58.351826] ACPI: acpi_idle registered with cpuidle
[   58.389152] input: PC Speaker as /devices/platform/pcspkr/input/input0
[   58.499779] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
[   58.499793] ACPI: Power Button [PWRF]
[   58.571525] parport_pc 00:07: reported by Plug and Play ACPI
[   58.571593] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[   58.637784] piix4_smbus 0000:00:0f.0: SMBus Host Controller at 0x700, revision 0
[   59.313054] scsi 5:0:3:0: Attached scsi generic sg3 type 1
[   59.351783] st: Version 20100829, fixed bufsize 32768, s/g segs 256
[   59.353358] st 5:0:3:0: Attached scsi tape st0
[   59.353366] st 5:0:3:0: st0: try direct i/o: yes (alignment 512 B)
[   59.579554] osst :I: Tape driver with OnStream support version 0.99.4
[   59.579557] osst :I: $Id: osst.c,v 1.73 2005/01/01 21:13:34 wriede Exp $
[   60.611993] Adding 2650688k swap on /dev/sda5.  Priority:-1 extents:1 across:2650688k
[  149.680559] EXT3-fs (sda1): using internal journal
[  149.782161] loop: module loaded
[  150.394153] EXT3-fs: barriers not enabled
[  150.399252] kjournald starting.  Commit interval 5 seconds
[  150.423852] EXT3-fs (sda6): using internal journal
[  150.423863] EXT3-fs (sda6): mounted filesystem with ordered data mode
[  151.851310] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  151.857736] fuse init (API version 7.15)

....

[35647.724150] usb 1-2: USB disconnect, address 2
[35647.726233] sd 4:0:0:0: [sdb] Unhandled error code
[35647.726244] sd 4:0:0:0: [sdb]  Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[35647.726253] sd 4:0:0:0: [sdb] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00
[35647.726270] end_request: I/O error, dev sdb, sector 0
[35647.726281] Buffer I/O error on device sdb, logical block 0
[35835.080034] hub 1-0:1.0: unable to enumerate USB device on port 2
[35881.800029] hub 1-0:1.0: unable to enumerate USB device on port 2
[35975.240044] usb 1-2: new full speed USB device using ohci_hcd and address 5
[35975.304031] hub 1-0:1.0: unable to enumerate USB device on port 2
[35998.816018] usb 1-2: new full speed USB device using ohci_hcd and address 6
[35998.896027] hub 1-0:1.0: unable to enumerate USB device on port 2
[36045.568028] hub 1-0:1.0: unable to enumerate USB device on port 2
[36069.096024] usb 1-2: new full speed USB device using ohci_hcd and address 8
[36069.640026] usb 1-2: device not accepting address 8, error -62
[36069.696031] hub 1-0:1.0: unable to enumerate USB device on port 2
[36347.688022] usb 1-2: new full speed USB device using ohci_hcd and address 10
[36348.232033] usb 1-2: device not accepting address 10, error -62
[36348.288039] hub 1-0:1.0: unable to enumerate USB device on port 2
[36371.380020] usb 1-2: new full speed USB device using ohci_hcd and address 12
[36371.924031] usb 1-2: device not accepting address 12, error -62
[36371.980033] hub 1-0:1.0: unable to enumerate USB device on port 2
[36418.240023] usb 1-2: new full speed USB device using ohci_hcd and address 14
[36418.320030] hub 1-0:1.0: unable to enumerate USB device on port 2
[36534.692028] hub 1-0:1.0: unable to enumerate USB device on port 2
[36581.400032] hub 1-0:1.0: unable to enumerate USB device on port 2
[36651.272020] usb 1-2: new full speed USB device using ohci_hcd and address 17
[36651.352043] hub 1-0:1.0: unable to enumerate USB device on port 2
[36721.480025] usb 1-2: new full speed USB device using ohci_hcd and address 18
[36721.560033] hub 1-0:1.0: unable to enumerate USB device on port 2
[36768.264047] usb 1-2: new full speed USB device using ohci_hcd and address 19
[36768.808022] usb 1-2: device not accepting address 19, error -62
[36768.864026] hub 1-0:1.0: unable to enumerate USB device on port 2
[36791.944022] usb 1-2: new full speed USB device using ohci_hcd and address 21
[36792.108003] usb 1-2: New USB device found, idVendor=13fd, idProduct=160e
[36792.108024] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[36792.215015] usb 1-2: USB disconnect, address 21
[36908.408023] usb 1-2: new full speed USB device using ohci_hcd and address 22
[36908.488034] hub 1-0:1.0: unable to enumerate USB device on port 2
[36932.036026] usb 1-2: new full speed USB device using ohci_hcd and address 23
[36932.100031] hub 1-0:1.0: unable to enumerate USB device on port 2
[37001.912021] usb 1-2: new full speed USB device using ohci_hcd and address 24
[37002.075995] usb 1-2: New USB device found, idVendor=13fd, idProduct=160e
[37002.076000] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[37002.264063] usb 1-2: USB disconnect, address 24
[37281.128034] usb 1-2: new full speed USB device using ohci_hcd and address 25
[37281.292018] usb 1-2: New USB device found, idVendor=13fd, idProduct=160e
[37281.292024] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[37281.512065] usb 1-2: USB disconnect, address 25
[37467.652022] usb 1-2: new full speed USB device using ohci_hcd and address 26
[37467.716031] hub 1-0:1.0: unable to enumerate USB device on port 2
[37514.376019] usb 1-2: new full speed USB device using ohci_hcd and address 27
[37514.456043] hub 1-0:1.0: unable to enumerate USB device on port 2
[37561.388022] usb 1-2: new full speed USB device using ohci_hcd and address 28
[37561.932026] usb 1-2: device not accepting address 28, error -62
[37561.988028] hub 1-0:1.0: unable to enumerate USB device on port 2
[37654.540021] usb 1-2: new full speed USB device using ohci_hcd and address 30
[37654.620067] hub 1-0:1.0: unable to enumerate USB device on port 2
[37678.172026] usb 1-2: new full speed USB device using ohci_hcd and address 31
[37678.236065] hub 1-0:1.0: unable to enumerate USB device on port 2
[37724.840025] hub 1-0:1.0: unable to enumerate USB device on port 2
[37841.360036] usb 1-2: new full speed USB device using ohci_hcd and address 33
[37841.440034] hub 1-0:1.0: unable to enumerate USB device on port 2
[37911.376025] hub 1-0:1.0: unable to enumerate USB device on port 2
[38074.160039] hub 1-0:1.0: unable to enumerate USB device on port 2
[38330.124031] usb 1-2: new full speed USB device using ohci_hcd and address 36
[38330.668023] usb 1-2: device not accepting address 36, error -62
[38330.724031] hub 1-0:1.0: unable to enumerate USB device on port 2
[38446.376028] hub 1-0:1.0: unable to enumerate USB device on port 2
[38469.948021] usb 1-2: new full speed USB device using ohci_hcd and address 39
[38470.012073] hub 1-0:1.0: unable to enumerate USB device on port 2
[38632.592027] hub 1-0:1.0: unable to enumerate USB device on port 2
[38725.748028] hub 1-0:1.0: unable to enumerate USB device on port 2
[38911.872029] hub 1-0:1.0: unable to enumerate USB device on port 2
[39120.864037] usb 1-2: new full speed USB device using ohci_hcd and address 43
[39120.924058] hub 1-0:1.0: unable to enumerate USB device on port 2
[39167.848030] usb 1-2: new full speed USB device using ohci_hcd and address 44
[39167.912028] hub 1-0:1.0: unable to enumerate USB device on port 2
[39191.388021] usb 1-2: new full speed USB device using ohci_hcd and address 45
[39191.468029] hub 1-0:1.0: unable to enumerate USB device on port 2
[39308.044020] usb 1-2: new full speed USB device using ohci_hcd and address 46
[39308.124055] hub 1-0:1.0: unable to enumerate USB device on port 2
[39401.332025] usb 1-2: new full speed USB device using ohci_hcd and address 47
[39401.876026] usb 1-2: device not accepting address 47, error -62
[39401.932024] hub 1-0:1.0: unable to enumerate USB device on port 2
[39425.032020] usb 1-2: new full speed USB device using ohci_hcd and address 49
[39425.096041] hub 1-0:1.0: unable to enumerate USB device on port 2
[39448.544028] hub 1-0:1.0: unable to enumerate USB device on port 2
[39472.056021] usb 1-2: new full speed USB device using ohci_hcd and address 51
[39472.120055] hub 1-0:1.0: unable to enumerate USB device on port 2
[39588.668038] usb 1-2: new full speed USB device using ohci_hcd and address 52
[39588.732030] hub 1-0:1.0: unable to enumerate USB device on port 2
[39612.232024] usb 1-2: new full speed USB device using ohci_hcd and address 53
[39612.296048] hub 1-0:1.0: unable to enumerate USB device on port 2
[39659.076199] usb 1-2: new full speed USB device using ohci_hcd and address 54
[39659.240008] usb 1-2: New USB device found, idVendor=13fd, idProduct=160e
[39659.240026] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[39659.473387] usb 1-2: USB disconnect, address 54
[39822.300026] hub 1-0:1.0: unable to enumerate USB device on port 2
[39892.760029] usb 1-2: new full speed USB device using ohci_hcd and address 56
[39892.824035] hub 1-0:1.0: unable to enumerate USB device on port 2
[39916.296051] usb 1-2: new full speed USB device using ohci_hcd and address 57
[39916.376032] hub 1-0:1.0: unable to enumerate USB device on port 2
[39939.900027] usb 1-2: new full speed USB device using ohci_hcd and address 58
[39939.980031] hub 1-0:1.0: unable to enumerate USB device on port 2

Offline

 

#6  2012-05-15 09:39:37

  torrentow - Członek Sejmowej Komisji Śledczej

torrentow
Członek Sejmowej Komisji Śledczej
Skąd: z GNU
Zarejestrowany: 2009-11-23

Re: usbmount - montowanie hdd na usb

Witam,
Dysk jest sprawny na 100%?
Pozdrawiam,
Towarzysz Torrentow


Każdy sam sobie szkodzi :)
[img]http://img715.imageshack.us/img715/7104/apt.png[/img]

Offline

 

#7  2012-05-15 09:50:35

  krzys - Użytkownik

krzys
Użytkownik
Zarejestrowany: 2008-09-19

Re: usbmount - montowanie hdd na usb

no tak, bo jak pisałem wyżej, jeśli go ręcznie wypnę i wepnę powtórnie to zaskoczy, zdalnie z konsoli wystarczy restart serwera i również zaskoczy, no ale to tak trochę po sztubacku.

Zamierzałem na nim od czasu do czasu zdalnie lub z crona wykonać rsync w nocy, no ale jak maszynka go nie będzie widzieć to pupka zbita

Offline

 

#8  2012-05-15 09:55:39

  torrentow - Członek Sejmowej Komisji Śledczej

torrentow
Członek Sejmowej Komisji Śledczej
Skąd: z GNU
Zarejestrowany: 2009-11-23

Re: usbmount - montowanie hdd na usb

Witam,
Mi to wygląda na brak zasilania jeżeli masz dysk 2,5 cala tzn. muszą być wpięte 2 wtyczki USB. Zapodaj

Kod:

dpkg -l | grep udev

Pozdrawiam,
Towarzysz Torrentow


Każdy sam sobie szkodzi :)
[img]http://img715.imageshack.us/img715/7104/apt.png[/img]

Offline

 

#9  2012-05-15 09:59:54

  krzys - Użytkownik

krzys
Użytkownik
Zarejestrowany: 2008-09-19

Re: usbmount - montowanie hdd na usb

Kod:

dpkg -l|grep udev
ii  libgudev-1.0-0                       164-3                             GObject-based wrapper library for libudev
ii  libudev0                             164-3                             libudev shared library
ii  system-config-printer-udev           1.2.3-3                           Utilities to detect and configure printers automatically
ii  udev                                 164-3                             /dev/ and hotplug management daemon

ps. ale tutaj możesz mieć rację z tym "zasilaniem", może być za długi kabel usb, w tej chwili dysk wisi na około 1m przewodzie, oryginalnie do niego był krótszy - około 30cm, ... zapnę go na krótszym

po zmianie przewodu

Kod:

lsusb
Bus 001 Device 092: ID 1058:0704 Western Digital Technologies, Inc. Passport External HDD
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

i czekam ...

edit: problem wydaje się rozwiązany, za długi przewód do tego dysku.

@torrentow - WIELKIE DZIĘKI. Pozdrawiam.

Ostatnio edytowany przez krzys (2012-05-15 13:31:57)

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)

[ Generated in 0.009 seconds, 11 queries executed ]

Informacje debugowania

Time (s) Query
0.00011 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00106 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='3.15.228.171' WHERE u.id=1
0.00079 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.15.228.171', 1732562991)
0.00050 SELECT * FROM punbb_online WHERE logged<1732562691
0.00080 SELECT topic_id FROM punbb_posts WHERE id=201844
0.00089 SELECT id FROM punbb_posts WHERE topic_id=21252 ORDER BY posted
0.00070 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=21252 AND t.moved_to IS NULL
0.00007 SELECT search_for, replace_with FROM punbb_censoring
0.00149 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=21252 ORDER BY p.id LIMIT 0,25
0.00087 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=21252
Total query time: 0.00732 s