Need assistance with USB questions


Forum: Other Help Topics
Topic: Need assistance with USB questions
started by: ronin712

Posted by ronin712 on Aug. 23 2004,03:35
I've successfully got DSL running from a USB drive using the bootusb.img distributed in the same directory as the DSL iso.  However, I could use a little help with a few things (if these are documented somewhere, by all means point me there):

1. First, a non-USB question:  Is "sudo su" the "right" way to become root (instead of "su")?  Can you get or set root's password?  Do you ever need to?

2. What's the best/easiest way to include utilities not included with the base distribution if they aren't bundled as a myDSL extension?  In particular, I'd like to include netcat.

3. How do I get access to the USB drive I'm running DSL from?  When I try to mount sda1, it says it's already mounted.

4. My USB drive is set up as two drives when I plug it into a Windows machine.  How do I mount the second drive?  I've tried to mount /dev/sda2 and /dev/sdb1 to try to get to the second drive but neither work.

5.  My USB mouse works fine if I use a USB to PS/2 converter and plug it into the PS/2 port.  However, if i plug the mouse into a USB port I get the following error when X starts.  BTW, I can boot into Knoppix and the mouse works fine in the USB port.

----- BEGIN -----
grep: /etc/sysconfig/mouse: No such file or directory
Using Xvesa default 1024x768x32 -mouse  mouse
xauth:  creating new authority file /home/dsl/.Xauthority
xauth:  creating new authority file /home/dsl/.Xauthority


giving up.
xinit:  No such file or directory (errno 2):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.
----- END -----

Here is the output from dmesg.  As you can see it does detect the mouse (near the end):
----- BEGIN DMESG -----
d/rw xa/form2 cdda tray
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 472k freed
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
NCR53c406a: no available ports found
aec671x_detect:
scsi: <fdomain> Detection failed (no card)
GDT: Storage RAID Controller Driver. Version: 2.05
GDT: Found 0 PCI Storage RAID Controllers
megaraid: v1.18f (Release Date: Tue Dec 10 09:54:39 EST 2002)
megaraid: no BIOS enabled.
DC390: 0 adapters found
Failed initialization of WD-7000 SCSI card!
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
usb-uhci.c: $Revision: 1.275 $ time 18:09:24 Sep 19 2003
usb-uhci.c: High bandwidth mode enabled
PCI: Setting latency timer of device 00:1d.0 to 64
usb-uhci.c: USB UHCI at I/O 0xff80, IRQ 16
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Setting latency timer of device 00:1d.1 to 64
usb-uhci.c: USB UHCI at I/O 0xff60, IRQ 19
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Setting latency timer of device 00:1d.2 to 64
usb-uhci.c: USB UHCI at I/O 0xff40, IRQ 18
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
uhci.c: USB Universal Host Controller Interface driver v1.1
hub.c: new USB device 00:1d.1-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x45e/0x40) is not claimed by any active driver.
hub.c: new USB device 00:1d.2-2, assigned address 2
scsi2 : SCSI emulation for USB Mass Storage devices
 Vendor: I-Stick2  Model: IntelligentStick  Rev: 2.00
 Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
SCSI device sda: 513024 512-byte hdwr sectors (263 MB)
sda: Write Protect is off
sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
Unable to identify CD-ROM format.
VFS: Can't find ext2 filesystem on dev ide0(3,0).
FAT: bogus logical sector size 64543
VFS: Can't find a valid FAT filesystem on dev 03:00.
ide-scsi: hdc: unsupported command in request queue (0)
end_request: I/O error, dev 16:00 (hdc), sector 64
isofs_read_super: bread failed, dev=16:00, iso_blknum=16, block=32
ide-scsi: hdc: unsupported command in request queue (0)
end_request: I/O error, dev 16:00 (hdc), sector 2
EXT2-fs: unable to read superblock
ide-scsi: hdc: unsupported command in request queue (0)
end_request: I/O error, dev 16:00 (hdc), sector 0
FAT: unable to read boot sector
ide-scsi: hdd: unsupported command in request queue (0)
end_request: I/O error, dev 16:40 (hdd), sector 64
isofs_read_super: bread failed, dev=16:40, iso_blknum=16, block=32
ide-scsi: hdd: unsupported command in request queue (0)
end_request: I/O error, dev 16:40 (hdd), sector 2
EXT2-fs: unable to read superblock
ide-scsi: hdd: unsupported command in request queue (0)
end_request: I/O error, dev 16:40 (hdd), sector 0
FAT: unable to read boot sector
kmod: failed to exec /sbin/modprobe -s -k block-major-33, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-33, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-33, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-33, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-33, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-33, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-34, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-34, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-34, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-34, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-34, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-34, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k block-major-46, errno = 2
Unable to identify CD-ROM format.
VFS: Can't find ext2 filesystem on dev sd(8,1).
kmod: failed to exec /sbin/modprobe -s -k nls_cp437, errno = 2
kmod: failed to exec /sbin/modprobe -s -k nls_iso8859-1, errno = 2
kmod: failed to exec /sbin/modprobe -s -k nls_iso8859-1, errno = 2
kmod: failed to exec /sbin/modprobe -s -k nls_iso8859-1, errno = 2
cloop: Initializing cloop v1.02
cloop: /cdrom/KNOPPIX/KNOPPIX: 1853 blocks, 65536 bytes/block, largest block is 65562 bytes.
cloop: loaded (max 8 devices)
ISO 9660 Extensions: RRIP_1991A
Freeing unused kernel memory: 132k freed
Real Time Clock Driver v1.10e
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Linux Kernel Card Services 3.1.22
 options:  [pci] [cardbus] [pm]
Intel PCIC probe: not found.
Databook TCIC-2 PCMCIA probe: not found.
unloading Kernel Card Services
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
i810_rng hardware driver 0.9.8 loaded
Intel® PRO/100 Network Driver - version 2.3.18-k1
Copyright © 2003 Intel Corporation

e100: selftest OK.
e100: eth0: Intel® PRO/100 Network Connection
 Hardware receive checksums enabled

Linux agpgart interface v0.99 © Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected an Intel® 845G, but could not find the secondary device. Assuming a non-integrated video card.
agpgart: Detected Intel® 845G chipset
agpgart: AGP aperture is 128M @ 0xe8000000
FAT: Did not find valid FSINFO signature.
Found signature1 0x2a9f84aa signature2 0x891adbf9 sector=32745.
VFS: Can't find a valid FAT filesystem on dev 03:02.
FAT: Did not find valid FSINFO signature.
Found signature1 0x2a9f84aa signature2 0x891adbf9 sector=32745.
VFS: Can't find a valid FAT filesystem on dev 03:02.
NTFS driver v1.1.22 [Flags: R/W MODULE]
usb.c: registered new driver hiddev
usb.c: registered new driver hid
usb-uhci.c: interrupt, status 3, frame# 1012
input: USB HID v1.10 Mouse [Microsoft Microsoft 3-Button Mouse with IntelliEye™] on usb2:2.0
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
e100: eth0 NIC Link is Up 100 Mbps Full duplex
e100: eth0 NIC Link is Up 100 Mbps Full duplex
----- END DMESG -----

Any help would be appreciated.  Thanks!

Posted by mikshaw on Aug. 23 2004,14:26
1) "sudo su" is an easy way to become root.  Since DSL was built to be a liveCD, security isn't necessarily as important as it is on a hard-drive system (a simple reboot and problems are fixed).  If you "sudo su" and then type "passwd", you should be able to set a root password.

2) Probably apt-get to install them, and then do a backup.  Personally I haven't gotten my winmodem working in DSL, so I depend almost entirely on extensions.

3) It's already mounted, so you just need to cd to the mountpoint.

4) Ummm... I'm not sure.

5) By default, DSL 0.7.3 uses PS/2 mouse.  I think you'll need to enter a boot option for USB.  Press F2 for a list of options at the "boot:" prompt.

Posted by el_supremo on Aug. 23 2004,21:12
To get the USB mouse working with DSL 0.7.3 try adding the xsetup cheatcode at the boot prompt and then DSL will ask you to set up your monitor and mouse as it boots up.

Best Wishes
Pete

Posted by ronin712 on Aug. 25 2004,00:07
1) Got it.

2) Still trying to figure this one out.  Apt-get/backup might do it, but first I have to figure out how to get apt-get, and how the whole backup thing works (especially since it mounts the USB drive as read-only).  Also, having to install apt-get just to get a small utility installed seems like overkill.

3) Ok, I found the mount for the USB drive I'm running from (/cdrom).  I guess I missed it because I wasn't expecting to find a USB drive in a cdrom mount point, although it made sense once I found it since DSL is based on Knoppix.  The problem now is it's mounted as a cdrom in a read-only mount.  How do I get it to be writable?

4) Still haven't managed to get to the second drive on my USB stick.

5) Tried booting with "dsl xsetup" (why isn't this mentioned in the F2 boot screen?) which did the trick.  Still wondering why I have to do this manually if Knoppix can do it automatically.  Is this a bug in DSL?

Posted by mikshaw on Aug. 25 2004,01:37
2) Apt is a part of DSL...you need to enable it (there's a menu item for it)....and you probably also need the dsl-dpkg extension (as I said, I don't use apt).  Additionally, there are at least a few threads here about installing via apt-get...that will probably help you more than I could.

3&4)  I ....don't ....know ....

5) I *think* this is to make it easier for the greatest percentage of users.  Most people apparently use ps/2 mouses (yeah...it's mouses, dammit) and 1024 resolution, so that's what DSL is set to use by default.  Personally I like this, as prior version took a good second longer to boot because I had to hit a few keys =o)
Still...as always I'm just guessing.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.