Results 1 to 8 of 8
I'm running DSL and I can't seem to get my Flash Drive mounted. First off the computer I'm using is ancient, 10 years old with one usb port. Alright so ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-24-2005 #1Just Joined!
- Join Date
- Jan 2005
- Location
- Maryland
- Posts
- 67
Mount a Flash Drive
I'm running DSL and I can't seem to get my Flash Drive mounted. First off the computer I'm using is ancient, 10 years old with one usb port. Alright so the first thing I did was edit my /etc/fstab and added the line:
and made the directory flashdrive in my /mnt.Code:/dev/sda1 /mnt/flashdrive auto noauto,exec 0 0
Nothing, so I restarted hoping it just might recognize it and majically mount it for me, no such luck. So I went off and looked up what I did to mount it on a knoppix livecd and tried this line:
I get the error "/dev/sda1 is not a valid block device".Code:mount /dev/sda1 /mnt/flashdrive
Could it be because it uses the 2.4 kernel(I think) and not 2.6?
- 07-24-2005 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
There are better ways of doing this in kernel 2.6.x, I think back when I used 2.4 I needed to have my drive installed at boot time and have it detected as a harddisk. Hot swap wasn't great either, if present at all. I think the combination of newer hotswap and udev make this kind of thing much easier now, I had so much trouble back then that I've had to push it from my mind.
Another issue was that a lot of pendrives just wouldn't be detected correctly. Straight after you plug it in do the followingand post back your results so we can analyse them.Code:dmesg fdisk -l
- 07-24-2005 #3Linux User
- Join Date
- Nov 2003
- Location
- Brooklyn, NY
- Posts
- 347
Try loading uhci_hcd module and trying again, had the similar problem and this fixed it for me.
- 07-24-2005 #4Just Joined!
- Join Date
- Jan 2005
- Location
- Maryland
- Posts
- 67
Ok, dmesg prints out a whole bunch of stuff and I can't figure out how to copy it into a text document from Xterminal.
Originally Posted by bigtomrodney
fdisk-l returned "cannot open /dev/hda"
I can't load the uhci_hcd module. I get "modprobe:Can't locate modules uhci_hcd."
- 07-24-2005 #5forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,733
Highlight the information you want to copy/paste, then middle click in the text box where you want the info to be placed. This should work...I can't figure out how to copy it into a text document from Xterminal
- 07-24-2005 #6Just Joined!
- Join Date
- Jan 2005
- Location
- Maryland
- Posts
- 67
Wow I feel like a moron. I spend a good 15-20mins trying to copy and paste it.
dmesg output:
Code:Linux version 2.4.26 (root@Knoppix) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 SMP Sa Apr 17 19:33:42 CEST 2004 BIOS-provided physical RAM map: BIOS-e801: 0000000000000000 - 000000000009f000 (usable) BIOS-e801: 0000000000100000 - 0000000001000000 (usable) 0MB HIGHMEM available. 16MB LOWMEM available. On node 0 totalpages: 4096 zone(0): 4096 pages. zone(1): 0 pages. zone(2): 0 pages. DMI not present. ACPI: Unable to locate RSDP Kernel command line: auto BOOT_IMAGE=Linux ro root=302 hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce noapic ide_setup: hda=scsi ide_setup: hdb=scsi ide_setup: hdc=scsi ide_setup: hdd=scsi ide_setup: hde=scsi ide_setup: hdf=scsi ide_setup: hdg=scsi ide_setup: hdh=scsi No local APIC present or hardware disabled Initializing CPU#0 Detected 132.956 MHz processor. Console: colour dummy device 80x25 Calibrating delay loop... 264.60 BogoMIPS Memory: 13260k/16384k available (1371k kernel code, 2736k reserved, 561k data, 140k init, 0k highmem) Dentry cache hash table entries: 2048 (order: 2, 16384 bytes) Inode cache hash table entries: 1024 (order: 1, 8192 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 4096 (order: 2, 16384 bytes) Intel Pentium with F0 0F bug - workaround enabled. CPU: After generic, caps: 000001bf 00000000 00000000 00000000 CPU: Common caps: 000001bf 00000000 00000000 00000000 Checking 'hlt' instruction... OK. Checking for popad bug... OK. POSIX conformance testing by UNIFIX mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au) mtrr: detected mtrr type: none CPU: After generic, caps: 000001bf 00000000 00000000 00000000 CPU: Common caps: 000001bf 00000000 00000000 00000000 CPU0: Intel Pentium 75 - 200 stepping 0c per-CPU timeslice cutoff: 160.11 usecs. SMP motherboard not detected. Local APIC not detected. Using dummy APIC emulation. Waiting on wait_init_idle (map = 0x0) All processors have done init_idle ACPI: Subsystem revision 20040326 ACPI: Interpreter disabled. PCI: PCI BIOS revision 2.10 entry at 0xfd9ac, last bus=0 PCI: Using configuration type 1 PCI: Probing PCI hardware PCI: ACPI tables contain no PCI IRQ routing entries PCI: Probing PCI hardware (bus 00) Limiting direct PCI/PCI transfers. Activating ISA DMA hang workarounds. isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found 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 vesafb: framebuffer at 0xc000000, mapped to 0xc180d000, size 2048k vesafb: mode is 1024x768x16, linelength=2048, pages=0 vesafb: protected mode interface info at c000:49a4 vesafb: scrolling: redraw vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0 Console: switching to colour frame buffer device 128x48 fb0: VESA VGA frame buffer device pty: 256 Unix98 ptys configured Floppy drive(s): fd0 is 1.44M FDC 0 is a post-1991 82077 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx PIIX3: IDE controller at PCI slot 00:08.1 PIIX3: chipset revision 0 PIIX3: not 100% native mode: will probe irqs later ide0: BM-DMA at 0xfe80-0xfe87, BIOS settings: hda:pio, hdb:pio ide1: BM-DMA at 0xfe88-0xfe8f, BIOS settings: hdc:pio, hdd:pio hda: WDC AC21600H, ATA DISK drive hdd: HITACHI CDR-7930, 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: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error } hda: task_no_data_intr: error=0x04 { DriveStatusError } hda: 3173184 sectors (1625 MB) w/128KiB Cache, CHS=787/64/63 Partition check: hda: hda1 hda2 ide: late registration of driver. 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 Initializing Cryptographic API NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 1024 bind 1024) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. VFS: Mounted root (ext2 filesystem) readonly. Freeing unused kernel memory: 140k freed Real Time Clock Driver v1.10f Adding Swap: 203576k swap-space (priority -1) hdd: attached ide-scsi driver. scsi0 : SCSI host adapter emulation for IDE ATAPI devices Vendor: HITACHI Model: CDR-7930 Rev: 1022 Type: CD-ROM ANSI SCSI revision: 02 Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0 sr0: scsi3-mmc drive: 8x/8x xa/form2 cdda tray Uniform CD-ROM driver Revision: 3.12 Linux Kernel Card Services 3.1.22 options: [pci] [cardbus] [pm] Intel ISA PCIC probe: not found. Databook TCIC-2 PCMCIA probe: not found. usb.c: registered new driver usbdevfs usb.c: registered new driver hub usb-uhci.c: $Revision: 1.275 $ time 19:48:59 Apr 17 2004 usb-uhci.c: High bandwidth mode enabled usb-uhci.c: v1.275:USB Universal Host Controller Interface driver usb.c: deregistering driver usbdevfs usb.c: deregistering driver hub usb.c: registered new driver usbdevfs usb.c: registered new driver hub usb.c: deregistering driver usbdevfs usb.c: deregistering driver hub Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled ttyS01 at 0x02f8 (irq = 3) is a 16550A parport0: PC-style at 0x3bc (0x7bc) [PCSPP,TRISTATE] parport0: irq 7 detected cloop: Initializing cloop v2.01 cloop: loaded (max 8 devices) usb.c: registered new driver usbdevfs usb.c: registered new driver hub usb.c: registered new driver hiddev 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 SCSI cdrom error : host 0 channel 0 id 0 lun 0 return code = 28000000 Info fld=0x10, ILI Current sd0b:00: sns = f0 25 ASC=64 ASCQ= 0 Raw sense data:0xf0 0x00 0x25 0x00 0x00 0x00 0x10 0x0a 0x00 0x00 0x00 0x00 0x64 0x00 0x00 0x00 0x00 0x00 I/O error: dev 0b:00, sector 64 isofs_read_super: bread failed, dev=0b:00, iso_blknum=16, block=16 apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16) i8253 count too high! resetting.. i8253 count too high! resetting..
- 07-26-2005 #7
Ok here we go. I have two pen disk, ram disk, stick memory, what ever you want to call them. I found only three brands that that listed Linux as an working OS. Fujifilm is one of them, so I got one. A system with USB2 ports the Fujifilm disk will plug and play on a running system and will list as an camera on the desktop. However, with a system having USB1 ports, it will not plug and play. I have to plug it in before starting the machine so when the machine starts up it can find it. Once the machine is up, it will list as an camera on the desktop. As long as I leave the machine up, I can plug or unplug the disk as needed.
Now my second disk is a memorex one, Linux is not a listed OS. It does not matter if it is USB1 or 2, I have to plug it in before starting the machine so it can find it. The disk is listed as Hard Disk sdb1 (\mmt\sdb1) on the desktop. As long as the machine stays up, I can plug or unplug the disk as needed.
If I unplug the Memorex and plug the Fujifilm one in, it will work from the same desktop listing. What I have not tried yet, is to plug them both in at the same time to see what happens using USB1 or 2. I am using the 2.6 kernnel, so if you are using a older one, make you have the USB module loaded.
Research, research, research before you walk the plank.
Registered Linux User #398829
- 07-26-2005 #8Just Joined!
- Join Date
- Jan 2005
- Location
- Maryland
- Posts
- 67
Well it is definatly USB 1. Under debian sarge(2.6) and USB 2 it mounts the same drive automatically. I'm think I should try recompiling the 2.4 kernel and see what optiions are marked for USB storage. I'd rather not upgrade to 2.6 because that would require burning a CD just to get the 2.6 kernel on there (I dont have a cd-rw). I'll post my results when I'm done.


Reply With Quote
