PDA

View Full Version : Montare periferiche usb con knoppix


figulus
09-05-2004, 12:49
Ho un HD esterno e una pendrive su usb2 entrambi con una sola partizione fat32. Anche se li collego prima del boot non riesco a montarli. Il led dell'HD si accende mentre quello della pendrive no. L'output di

#mount -tvfat /dev/sda1 (o /dev/hdb1 per l'HD) /mnt/directory

è: mount : sda1 non un dispositivo a blocchi valido. L'hd del notebook ha 4 partizioni primarie: xp, dati, swap, root.

e-Tip
09-05-2004, 13:03
prova a scrivere sda invece di sda1...
anche se comunque dal dmesg pare non piacergli troppo la pendrive

figulus
09-05-2004, 15:01
ho provato anche con sda.

Da segnalare che sul notebook c'è un lettore di carte flash integrato, e credo che sia quello sda, infatti gli stessi messaggi in dmesg appaiono anche se avvio senza perfieriche usb attaccate....

hIRoShIMa
09-05-2004, 16:32
Hai caricato i seguenti moduli?

usb-storage
ehci-hdc
sbp2


byz

e-Tip
09-05-2004, 19:37
scrivi (da root) tail -f /var/log/syslog
poi, tenendo sott'occhio la shell, inserisci la chiave. Dovresti leggere messaggi che ti dicono se il kernel riconosce la chiavetta.
Postali qua che magari riusciamo ad aiutarti di piu

figulus
09-05-2004, 22:13
Allora,
usb-storage, uhci, ehci, ohci sono compilati come moduli. Se provo a dare #modprobe usb-storage non da output, mentre con
#modprobe ehci-hdc e con
#modprobe sbp2
mi dice can't locate module...

il tail -f non cambia staccando e riattaccando le periferiche usb.

Questo è il mio /etc/modules

# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a `#', and everything on the line after them are ignored.
rtc
apm power_off=1
yenta_socket
ds
usb-uhci
mousedev
hid
usb-storage
serial
msdos
ntfs
nls_iso8859-1
nls_cp437
tg3
i810_audio
agpgart
af_packet
autofs4
radeon
ext3


mentre questo è il mio /etc/modules.conf

### This file is automatically generated by update-modules"
#
# Please do not edit this file directly. If you want to change or add
# anything please take a look at the files in /etc/modutils and read
# the manpage for update-modules.
#
### update-modules: start processing /etc/modutils/0keep
# DO NOT MODIFY THIS FILE!
# This file is not marked as conffile to make sure if you upgrade modutils
# it will be restored in case some modifications have been made.
#
# The keep command is necessary to prevent insmod and friends from ignoring
# the builtin defaults of a path-statement is encountered. Until all other
# packages use the new `add path'-statement this keep-statement is essential
# to keep your system working
keep

### update-modules: end processing /etc/modutils/0keep

### update-modules: start processing /etc/modutils/actions
# Special actions that are needed for some modules

# The BTTV module does not load the tuner module automatically,
# so do that in here
post-install bttv insmod tuner
post-remove bttv rmmod tuner


### update-modules: end processing /etc/modutils/actions

### update-modules: start processing /etc/modutils/aliases
# Aliases to tell insmod/modprobe which modules to use

# Uncomment the network protocols you don't want loaded:
# alias net-pf-1 off # Unix
# alias net-pf-2 off # IPv4
# alias net-pf-3 off # Amateur Radio AX.25
# alias net-pf-4 off # IPX
# alias net-pf-5 off # DDP / appletalk
# alias net-pf-6 off # Amateur Radio NET/ROM
# alias net-pf-9 off # X.25
# alias net-pf-10 off # IPv6
# alias net-pf-11 off # ROSE / Amateur Radio X.25 PLP
alias net-pf-17 af_packet # Packet socket (tcpdump)
# alias net-pf-19 off # Acorn Econet

alias via82cxxx via82cxxx_audio
alias char-major-10-175 agpgart
alias char-major-10-200 tun
alias char-major-81 bttv
alias char-major-108 ppp_generic
alias /dev/ppp ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate

# Crypto modules (see http://www.kerneli.org/)
alias loop-xfer-gen-0 loop_gen
alias loop-xfer-3 loop_fish2
alias loop-xfer-gen-10 loop_gen
alias cipher-2 des
alias cipher-3 fish2
alias cipher-4 blowfish
alias cipher-6 idea
alias cipher-7 serp6f
alias cipher-8 mars6
alias cipher-11 rc62
alias cipher-15 dfc2
alias cipher-16 rijndael
alias cipher-17 rc5

# Name inconsistency in 2.4 Kernel series
alias ide_cs ide-cs
alias usbcore off
alias autofs autofs4

# If both mousedev and usbmouse are insmodded, neither of them works right.
# Adding solution proposed by Kai Lehmann:
alias usbmouse mousedev
# Same for USB keyboards, which should be used in hid generic mode instead
alias usbkbd hid

### update-modules: end processing /etc/modutils/aliases

### update-modules: start processing /etc/modutils/apm
alias char-major-10-134 apm
alias /dev/apm_bios /dev/misc/apm_bios
alias /dev/misc/apm_bios apm
options apm power_off=1

### update-modules: end processing /etc/modutils/apm

### update-modules: start processing /etc/modutils/autofs
probe autofs autofs4 autofs

### update-modules: end processing /etc/modutils/autofs

### update-modules: start processing /etc/modutils/ftape-util
#
# load ftape/zftape automatically
#

# valid for all versions with zftape

alias char-major-27 zftape

# Bleeding edge ftape driver from ftape-module

options ftape ft_fdc_driver=ftape-internal,none,none,none
options ftape-internal ft_fdc_base=0x3f0 ft_fdc_irq=6 ft_fdc_dma=2
pre-install ftape-internal /usr/bin/swapout 15

# ftape driver from 2.2 kernel (Comment previous three lines and uncomment the next one)

# options ftape ft_fdc_rate_limit=1000 ft_fdc_threshold=16 ft_fdc_base=0x360 ft_fdc_irq=9 ft_fdc_dma=3

# You may need to fine tune the parameters. See the ftape documentation for more details

### update-modules: end processing /etc/modutils/ftape-util

### update-modules: start processing /etc/modutils/ipx.aliases
alias net-pf-4 ipx

### update-modules: end processing /etc/modutils/ipx.aliases

### update-modules: start processing /etc/modutils/irda
alias tty-ldisc-11 irtty
# The following is for new kernel.
alias char-major-161 ircomm-tty

# The following is for old kernel.
alias char-major-60 ircomm_tty

# To be able to attach some dongles
alias irda-dongle-0 tekram
alias irda-dongle-1 esi
alias irda-dongle-2 actisys
alias irda-dongle-3 actisys
alias irda-dongle-4 girbil
alias irda-dongle-5 litelink
alias irda-dongle-6 airport
alias irda-dongle-7 old_belkin

# FIR device drivers.
# options smc-ircc ircc_irq= ircc_dma=
# alias irda0 smc-ircc
# options toshoboe max_baud=
# alias irda0 toshoboe
# options w83977af_ir io= io2= irq= qos_mtt_bits=
# alias irda0 w83977af_ir

# To use the NSC driver on a Thinkpad laptop: uncomment the following:
# options nsc-ircc dongle_id=0x09
# alias irda0 nsc-ircc

### update-modules: end processing /etc/modutils/irda

### update-modules: start processing /etc/modutils/linux-wlan-ng
# Aliases to tell insmod/modprobe which module to use when bringing up the
# wlan0 interface.

# Uncomment the line corresponding to the type of prism2 device you have.
alias wlan0 prism2_pci
#alias wlan0 prism2_usb
#alias wlan0 prism2_cs
#alias wlan0 prism2_plx


### update-modules: end processing /etc/modutils/linux-wlan-ng

### update-modules: start processing /etc/modutils/lvm-common
# The Logical Volume Manager uses these block and char numbers
alias block-major-58 lvm-mod
alias char-major-109 lvm-mod

### update-modules: end processing /etc/modutils/lvm-common

### update-modules: start processing /etc/modutils/mt-st
# Reset the st driver on module insertion...
post-install st /etc/init.d/mt-st modload > /dev/null 2> /dev/null

### update-modules: end processing /etc/modutils/mt-st

### update-modules: start processing /etc/modutils/paths
# This file contains a list of paths that modprobe should scan,
# beside the ones that are compiled into the modutils tools
# themselves.


### update-modules: end processing /etc/modutils/paths

### update-modules: start processing /etc/modutils/ppp
alias /dev/ppp ppp_generic
alias char-major-108 ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate

### update-modules: end processing /etc/modutils/ppp

### update-modules: start processing /etc/modutils/raidtools2
alias md-personality-1 linear
alias md-personality-2 raid0
alias md-personality-3 raid1
alias md-personality-4 raid5

### update-modules: end processing /etc/modutils/raidtools2

### update-modules: start processing /etc/modutils/setserial
#
# This is what I wanted to do, but logger is in /usr/bin, which isn't loaded
# when the module is first loaded into the kernel at boot time!
#
#post-install serial /etc/init.d/setserial start | logger -p daemon.info -t "setserial-module reload"
#pre-remove serial /etc/init.d/setserial stop | logger -p daemon.info -t "setserial-module uload"
#
alias /dev/tts serial
alias /dev/tts/0 serial
alias /dev/tts/1 serial
alias /dev/tts/2 serial
alias /dev/tts/3 serial
post-install serial /etc/init.d/setserial modload > /dev/null 2> /dev/null
pre-remove serial /etc/init.d/setserial modsave > /dev/null 2> /dev/null

### update-modules: end processing /etc/modutils/setserial

### update-modules: start processing /etc/modutils/arch/i386
alias parport_lowlevel parport_pc
alias char-major-10-144 nvram
alias binfmt-0064 binfmt_aout
alias char-major-10-135 rtc
# no warnings to stderr on KNOPPIX
insmod_opt=-q

### update-modules: end processing /etc/modutils/arch/i386

Non è strano che siano presenti usb-storage e uhci-hdc ma non ohci e ehci?:muro:

figulus
09-05-2004, 22:17
Ah, e questo è il risultato di tail -f /var/log/syslog

May 9 22:41:50 box kernel: cs: IO port probe 0x0a00-0x0aff: clean.
May 9 22:41:50 box cardmgr[409]: starting, version is 3.2.5
May 9 22:41:50 box usb.agent[135]: kernel driver usb-storage already loaded
May 9 22:41:50 box /usr/sbin/cron[454]: (CRON) INFO (pidfile fd = 3)
May 9 22:41:50 box /usr/sbin/cron[455]: (CRON) STARTUP (fork ok)
May 9 22:41:51 box /usr/sbin/cron[455]: (CRON) INFO (Running @reboot jobs)
May 9 22:41:55 box kernel: [drm] Loading R200 Microcode
May 9 22:41:55 box kernel: PCI: Found IRQ 10 for device 01:00.0
May 9 22:41:55 box kernel: PCI: Sharing IRQ 10 with 00:1d.0
May 9 22:50:01 box /USR/SBIN/CRON[601]: (root) CMD ([ -d /etc/shaper ] && /etc/init.d/shaper timecheck)

figulus
10-05-2004, 22:50
Allora, non so + cosa pensare. Oggi riavvio, mi loggo come root e do

#tail -f /var/log/syslog

stacco e attacco l'hd esterno ma niente.
Poi riprovo a dare

#modprobe sbp2
#modprobe ehci-hdc

e finalmente sta volta li carica. Riprovo col tail -f e.... WOWWW sta volta riconosce l'hd come dev/sdb1. Riesco a montarlo. Corro a metterlo in /etc/fstab e aggiungo sbp2 e ehci-hdc a /etc/modules. Mi loggo da utente, monto l'hd e lo apro con konqueror. A questo punto X si blocca.

Riavvio il computer, mi loggo, provo a montarlo.... niente, stavolta non lo vede, neanche con tail -f. Riprovo a caricare sbp2 e funziona. Riprovo a caricare ehci.hdc e mi dice "can't locate module". Ma intanto con

#modprobe -l | grep ehci

me lo vede... che cazzo sta succedendo?:muro:

PS Se do modprobe * mi da sempre "can't locate module blabla" dove blabla è uno solo e sempre diverso!:eek:

AIUTATEMIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII, o mi sparo!:cry:

Grimlock
11-05-2004, 16:21
Con le periferiche connesse all'USB, da terminale digita
"fdisk -l" e vedi cosa compare.

Dovrebbero venire elencate anche le partizioni delle tue periferiche rimovibili.

In seguito basta montarle con "sdXY" corretti.

es. mount /dev/sdb1 /mnt/pendrive

Il tutto come root.

Saluti,
Grimlock