Титла: Slackware usb drive Публикувано от: crusaderman в Apr 23, 2007, 11:26 Преди да задам въпроса, искам да уточня че съм Начинаещ потребител. Първо за какво иде реч:
Имам usb клавиатура и мишка, но на клавиатурата имам 2 usb порта Клавиатурата ми е Плеомакс-ПКБ-7000Х на Самсунг. На компютъра имам само 2 usb port-a, където ми са свързани клавиатурата и мишката. Искам да използвам usb storage(512 мб) и го вкл. в единия usb порт на клавиатурата. Използвам стандартно ядро на Slackware(не съм правил прекомпилация на ядрото идващо с инсталационния диск). Ядрото е версия 2.4.33.3. Въпроса ми е: незнам как "моунтна" това устройство. Титла: Slackware usb drive Публикувано от: plamen_t в Apr 23, 2007, 12:20 Първо е добре да видиш дали ти разпознава въобще флашката. За тази цел сложи флашката и после в някоя конзола напиши dmesg. Най-отдолу трябва да пише, че е засякло флашката и там някакви други работи за USB-то.
Ако го е засякло правилно най-вероятно ще се монтира със следната команда
Ако ти казва, че няма устойство sda1 може да пробваш със sda или sda2. Титла: Slackware usb drive Публикувано от: crusaderman в Apr 23, 2007, 12:48 Това ми излиза след като изпълня dmesg:
Linux version 2.4.33.3 (root@tree) (gcc version 3.4.6) #6 Fri Sep 1 04:15:45 CDT 2006 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 000000000fff0000 (usable) BIOS-e820: 000000000fff0000 - 000000000fff8000 (ACPI data) BIOS-e820: 000000000fff8000 - 0000000010000000 (ACPI NVS) BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved) BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved) BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved) 0MB HIGHMEM available. 255MB LOWMEM available. On node 0 totalpages: 65520 zone(0): 4096 pages. zone(1): 61424 pages. zone(2): 0 pages. Kernel command line: auto BOOT_IMAGE=Linux ro root=302 Initializing CPU#0 Detected 1160.370 MHz processor. Console: colour dummy device 80x25 Calibrating delay loop... 2313.42 BogoMIPS Memory: 255772k/262080k available (1867k kernel code, 5920k reserved, 562k data, 120k init, 0k highmem) Dentry cache hash table entries: 32768 (order: 6, 262144 bytes) Inode cache hash table entries: 16384 (order: 5, 131072 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 16384 (order: 4, 65536 bytes) Page-cache hash table entries: 65536 (order: 6, 262144 bytes) CPU: CLK_CTL MSR was 6003d22f. Reprogramming to 2003d22f CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) CPU: L2 Cache: 256K (64 bytes/line) CPU: After generic, caps: 0383fbff c1c3fbff 00000000 00000000 CPU: Common caps: 0383fbff c1c3fbff 00000000 00000000 CPU: AMD Athlon Processor stepping 01 Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK. POSIX conformance testing by UNIFIX mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au) mtrr: detected mtrr type: Intel PCI: PCI BIOS revision 2.10 entry at 0xfdb31, last bus=1 PCI: Using configuration type 1 PCI: Probing PCI hardware PCI: Probing PCI hardware (bus 00) PCI: Via IRQ fixup PCI: Using IRQ router default [1106/3147] at 00:11.0 PCI: Hardcoded IRQ 14 for device 00:11.1 Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd VFS: Disk quotas vdquot_6.5.1 Journalled Block Device driver loaded vesafb: framebuffer at 0xd0000000, mapped to 0xd080d000, size 1536k vesafb: mode is 1024x768x8, linelength=1024, pages=3 vesafb: protected mode interface info at c000:f6d0 vesafb: scrolling: redraw Console: switching to colour frame buffer device 128x48 fb0: VESA VGA frame buffer device Detected PS/2 Mouse Port. pty: 512 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A ttyS01 at 0x02f8 (irq = 3) is a 16550A Real Time Clock Driver v1.10f Floppy drive(s): fd0 is 1.44M keyboard: Timeout - AT keyboard not present?(ed) keyboard: Timeout - AT keyboard not present?(f4) FDC 0 is a post-1991 82077 RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize loop: loaded (max 8 devices) Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: IDE controller at PCI slot 00:11.1 PCI: Hardcoded IRQ 14 for device 00:11.1 VP_IDE: chipset revision 6 VP_IDE: not 100% native mode: will probe irqs later ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: VIA vt8233a (rev 00) IDE UDMA133 controller on pci00:11.1 ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:DMA, hdd:pio hda: Maxtor 2R015H1, ATA DISK drive hdc: Optiarc DVD RW AD-5170A, ATAPI CD/DVD-ROM drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ide1 at 0x170-0x177,0x376 on irq 15 hda: attached ide-disk driver. hda: host protected area => 1 hda: 29297520 sectors (15000 MB) w/2048KiB Cache, CHS=9964/255/63, UDMA(33) hdc: attached ide-cdrom driver. hdc: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.12 Partition check: hda: hda1 hda2 SCSI subsystem driver Revision: 1.00 kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 md: linear personality registered as nr 1 md: raid0 personality registered as nr 2 md: raid1 personality registered as nr 3 md: raid5 personality registered as nr 4 raid5: measuring checksumming speed 8regs : 1664.000 MB/sec 32regs : 1122.800 MB/sec pIII_sse : 1184.400 MB/sec pII_mmx : 2716.800 MB/sec p5_mmx : 3466.800 MB/sec raid5: using function: pIII_sse (1184.400 MB/sec) md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. LVM version 1.0.8(17/11/2003) Initializing Cryptographic API NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 2048 buckets, 16Kbytes TCP: Hash tables configured (established 16384 bind 32768) Linux IP multicast router 0.06 plus PIM-SM NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. VFS: Mounted root (ext2 filesystem) readonly. Freeing unused kernel memory: 120k freed Linux agpgart interface v0.99 © Jeff Hartmann agpgart: Maximum main memory to use for agp memory: 203M agpgart: Detected Via Apollo Pro KM266 / KL266 chipset agpgart: AGP aperture is 64M @ 0xe0000000 scsi0 : SCSI host adapter emulation for IDE ATAPI devices Linux Kernel Card Services 3.1.22 options: [pci] [cardbus] [pm] isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found Intel ISA PCIC probe: not found. Databook TCIC-2 PCMCIA probe: not found. ds: no socket drivers loaded! PCI: Setting latency timer of device 00:11.5 to 64 usb.c: registered new driver usbdevfs usb.c: registered new driver hub uhci.c: USB Universal Host Controller Interface driver v1.1 uhci.c: USB UHCI at I/O 0xe000, IRQ 12 usb.c: new USB bus registered, assigned bus number 1 hub.c: USB hub found hub.c: 2 ports detected uhci.c: USB UHCI at I/O 0xe400, IRQ 12 usb.c: new USB bus registered, assigned bus number 2 hub.c: USB hub found hub.c: 2 ports detected 8139too Fast Ethernet driver 0.9.26 eth0: RealTek RTL8139 at 0xd0a57f00, 00:80:1e:12:f1:c1, IRQ 12 eth0: Identified 8139 chip type 'RTL-8100B/8139D' Linux video capture interface: v1.00 i2c-core.o: i2c core module version 2.6.1 (20010830) i2c-algo-bit.o: i2c bit algorithm module hub.c: new USB device 00:11.2-1, assigned address 2 hub.c: USB hub found hub.c: 4 ports detected bttv: driver version 0.7.108 loaded bttv: using 4 buffers with 2080k (8320k total) for capture bttv: Bt8xx card found (0). bttv0: Bt878 (rev 17) at 00:0a.0, irq: 10, latency: 32, mmio: 0xdddfe000 bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected] i2c-core.o: adapter bt848 #0 registered as adapter 0. bttv: readee error bttv0: using tuner=-1 bttv0: i2c: checking for MSP34xx @ 0x80... not found bttv0: i2c: checking for TDA9875 @ 0xb0... not found bttv0: i2c: checking for TDA7432 @ 0x8a... not found bttv0: registered device video0 bttv0: registered device vbi0 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 shpchp: shpc_init : shpc_cap_offset == 0 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.5 hub.c: new USB device 00:11.2-2, assigned address 3 usb.c: USB device 3 (vend/prod 0x9da/0xa) is not claimed by any active driver. pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: shpc_init : shpc_cap_offset == 0 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.5 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: shpc_init : shpc_cap_offset == 0 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 hub.c: new USB device 00:11.2-1.1, assigned address 4 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 usb.c: USB device 4 (vend/prod 0xb38/0x3) is not claimed by any active driver. pciehp: PCI Express Hot Plug Controller Driver version: 0.5 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: shpc_init : shpc_cap_offset == 0 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.5 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: shpc_init : shpc_cap_offset == 0 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.5 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: shpc_init : shpc_cap_offset == 0 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.5 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: shpc_init : shpc_cap_offset == 0 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 usb.c: registered new driver usbmouse pci_hotplug: PCI Hot Plug PCI Core version: 0.5 input0: USB-compliant keyboard on usb1:4.1 pciehp: PCI Express Hot Plug Controller Driver version: 0.5 input1: A4Tech PS/2+USB Mouse on usb1:3.0 usbmouse.c: v1.6:USB HID Boot Protocol mouse driver usb.c: registered new driver usbkbd usb.c: registered new driver hiddev input2: USB-compliant keyboard on usb1:4.0 usbkbd.c: :USB HID Boot Protocol keyboard driver usb.c: registered new driver hid hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz> hid-core.c: USB HID support drivers mice: PS/2 mouse device common for all mice pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: shpc_init : shpc_cap_offset == 0 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.5 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: shpc_init : shpc_cap_offset == 0 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.5 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: shpc_init : shpc_cap_offset == 0 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.5 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: shpc_init : shpc_cap_offset == 0 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.5 scsi singledevice 0 0 0 0 scsi singledevice 0 0 1 0 scsi singledevice 0 0 2 0 scsi singledevice 0 0 3 0 scsi singledevice 0 0 4 0 scsi singledevice 0 0 5 0 scsi singledevice 0 0 6 0 scsi singledevice 0 0 7 0 keyboard: Timeout - AT keyboard not present?(f3) keyboard: Timeout - AT keyboard not present?(f4) hub.c: new USB device 00:11.2-1.2, assigned address 5 usb.c: USB device 5 (vend/prod 0xea0/0x2168) is not claimed by any active driver. Initializing USB Mass Storage driver... usb.c: registered new driver usb-storage scsi1 : SCSI emulation for USB Mass Storage devices Vendor: STF Model: Flash Drive 2.0 Rev: 2.00 Type: Direct-Access ANSI SCSI revision: 02 Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0 sda: Unit Not Ready, sense: Current 00:00: sns = 70 6 ASC=28 ASCQ= 0 Raw sense data:0x70 0x00 0x06 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x28 0x00 0x00 0x00 0x00 0x00 SCSI device sda: 1024000 512-byte hdwr sectors (524 MB) sda: Write Protect is off sda: sda1 WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 5 USB Mass Storage support registered. usb.c: USB disconnect on device 00:11.2-1.2 address 5 hub.c: new USB device 00:11.2-1.2, assigned address 6 WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 6 usb.c: USB disconnect on device 00:11.2-1.2 address 6 hub.c: new USB device 00:11.2-1.2, assigned address 7 WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 7 usb.c: USB disconnect on device 00:11.2-1.2 address 7 NET4: Linux IPX 0.47 for NET4.0 IPX Portions Copyright © 1995 Caldera, Inc. IPX Portions Copyright © 2000, 2001 Conectiva, Inc. NET4: AppleTalk 0.18a for Linux NET4.0 hub.c: new USB device 00:11.2-1.2, assigned address 8 WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 8 usb.c: USB disconnect on device 00:11.2-1.2 address 8 usb-uhci.c: $Revision: 1.275 $ time 02:01:41 Sep 1 2006 usb-uhci.c: High bandwidth mode enabled usb-uhci.c: v1.275:USB Universal Host Controller Interface driver hub.c: new USB device 00:11.2-1.2, assigned address 9 WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 9 BlueZ Core ver 2.4 Copyright © 2000,2001 Qualcomm Inc Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> BlueZ HCI USB driver ver 2.7 Copyright © 2000,2001 Qualcomm Inc Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> usb.c: registered new driver hci_usb sda: Unit Not Ready, sense: Current 00:00: sns = 70 6 ASC=28 ASCQ= 0 Raw sense data:0x70 0x00 0x06 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x28 0x00 0x00 0x00 0x00 0x00 SCSI device sda: 1024000 512-byte hdwr sectors (524 MB) sda: Write Protect is off sda: sda1 FAT: bogus logical sector size 20487 VFS: Can't find a valid FAT filesystem on dev 08:00. UMSDOS: msdos_read_super failed, mount aborted. FAT: bogus logical sector size 20487 VFS: Can't find a valid FAT filesystem on dev 08:00. Като го разгледах, открих, че го разпознава като sda(или гледам грешния ред).След това изпълних командата: mount -t usbdevfs /dev/sda /mnt/hd Дотук всичко е ок, но като изпълних ls /mnt/hd: ./ ../ 001/ 002/ devices drivers Титла: Slackware usb drive Публикувано от: crusaderman в Apr 23, 2007, 13:18 Най-после го подкарах. Написах mount -t vfat /dev/sda /mnt/hd и стана след толкова четене, но поне го научих как става номера.
Благодаря на plamen_t за помощта! Титла: Slackware usb drive Публикувано от: pr0fessor в Apr 23, 2007, 21:52 1. fdisk -l
вади наличните усройства:
ако няма sd** (в случая при мен sda1) трябва да направиш /etc/rc.d/rc.hotplug /etc/rc.d/rc.scanluns ако искаш автоматично да се пускат пишеш ведниж: chmod 777 /etc/rc.d/rc.hotplug chmod 777 /etc/rc.d/rc.scanluns за да ги спреш да не се стартират при пускане на компа: chmod 666 /etc/rc.d/rc.hotplug chmod 666 /etc/rc.d/rc.scanluns да се зарежда при стартиране (или ръчно ги зарейдаш като ти трябва usb... ако имаш /dev/sda1... друго /dev/sd** лесно: mount /dev/sda1 /mnt/hd или mount //dev/sda1 /mnt/floppy (едва ли позваш флопито постоянно) и си готов и за да си нямаш главоболия работи си root (поне докато си с юсб-то и преди да извадиш юсб-то: umount /dev/sda1 каквато го покаквото си го моунт-нал (забележи че не е само sda ми sda1 - mount-ва се дял а не устройство) п.с. аз има също един въпрос за усб-тата във слака: имам един комп к6@266 и има усб на дъното... сложих usb 2.0 външна платка обаче първо страшно се бави на детектването на вградените усб-та а в биоса няма disable и на тва отгоре кара външната платка на усб 1.1 (предполагам зарад вградените дето са 1.0 или 1.1) как да подкарам 2.0 платката на 2.0 слака е 11 със оригиналното 2.4.33.3 ядро (веднъж сложих тва дето е 2.6.17 дето върви експериментално на инсталационния диск и повече не смятам да го правя...) |