LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Problems Mounting USB drives (https://www.linuxquestions.org/questions/linux-general-1/problems-mounting-usb-drives-204602/)

plainkeyman 07-13-2004 03:07 PM

Problems Mounting USB drives
 
I hope you guys can help me -- I have 3 usb portable drives:

80gig harddrive 'bigDrive'
20gig harddrive 'archos'
dvd burner

Q1: Is there a correct way to find out which device these are ? when i go to mount with:
Code:

mount /dev/sda1 /mnt/location
-- i don't really know whether to use /dev/sda1 or /dev/sdb1 or /dev/sr0.... i had to look at the bootup log to see.


Q2: my /etc/fstab is:
Code:

/dev/sda1        /mnt/bigDrive    reiserfs    defaults        1  1
/dev/sdb1        /mnt/archos      vfat        user        1  1

but if i plug in my archos drive before my 'bigDrive', it gets mounted to the wrong location. is there maybe a way to fix this?


thanx in advance, plainkeyman

cbarbry 07-13-2004 04:02 PM

I'm not exactly sure how to pull this off, but I'm pretty sure you would need to use labels (like in /etc/fstab) so each drive is referenced by the label instead of the device.

Sorry I wasn't more help, but that should give you a bump in the right direction.

Chad

darkRoom 07-14-2004 05:00 AM

Hi, i would go about it like this:

-plug in all the devices and boot
-run 'dmesg | more' and 'lspci | more' to ascertain where the kernel puts the devices
-enter the locations in fstab

That should fix things unless you have some configuration issues.

Hope that helps

plainkeyman 07-14-2004 08:22 AM

thank you for your replies --

it seems when i plug in my 80gig right after i boot, it uses /dev/sda1; but if i reboot, and plug in the 20gig, it uses /dev/sda1 as well.

is there a way that i can maybe specify a serial number or something?

or maybe i have something configured wrong.... but this is whats happens right after a default slackware install (9.1)
tell me which configuration files to post here if that would.


thanx,
plainkeyman

plainkeyman 07-14-2004 08:27 AM

sorry, this might help:

lspci -v
Code:

00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400 AGP] Host Bridge (rev 80)
        Subsystem: VIA Technologies, Inc.: Unknown device 0000
        Flags: bus master, 66Mhz, medium devsel, latency 8
        Memory at e0000000 (32-bit, prefetchable) [size=128M]
        Capabilities: [80] AGP version 3.5
        Capabilities: [c0] Power Management version 2

00:01.0 PCI bridge: VIA Technologies, Inc.: Unknown device b198 (prog-if 00 [Normal decode])
        Flags: bus master, 66Mhz, medium devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        Memory behind bridge: dde00000-dfefffff
        Prefetchable memory behind bridge: d5d00000-ddcfffff
        Capabilities: [80] Power Management version 2

00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 00 [UHCI])
        Subsystem: Micro-Star International Co., Ltd.: Unknown device 7120
        Flags: bus master, medium devsel, latency 32, IRQ 11
        I/O ports at e400 [size=32]
        Capabilities: [80] Power Management version 2

00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 00 [UHCI])
        Subsystem: Micro-Star International Co., Ltd.: Unknown device 7120
        Flags: bus master, medium devsel, latency 32, IRQ 5
        I/O ports at e800 [size=32]
        Capabilities: [80] Power Management version 2

00:10.2 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 00 [UHCI])
        Subsystem: Micro-Star International Co., Ltd.: Unknown device 7120
        Flags: bus master, medium devsel, latency 32, IRQ 5
        I/O ports at ec00 [size=32]
        Capabilities: [80] Power Management version 2

00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) (prog-if 20 [EHCI])
        Subsystem: Micro-Star International Co., Ltd.: Unknown device 7120
        Flags: bus master, medium devsel, latency 32, IRQ 10
        Memory at dfffff00 (32-bit, non-prefetchable) [size=256]
        Capabilities: [80] Power Management version 2

00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
        Subsystem: VIA Technologies, Inc.: Unknown device 0000
        Flags: bus master, stepping, medium devsel, latency 0
        Capabilities: [c0] Power Management version 2

00:11.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
        Subsystem: Micro-Star International Co., Ltd.: Unknown device 7120
        Flags: bus master, medium devsel, latency 32, IRQ 14
        I/O ports at fc00 [size=16]
        Capabilities: [c0] Power Management version 2

00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Controller (rev 50)
        Subsystem: Micro-Star International Co., Ltd.: Unknown device 7120
        Flags: medium devsel, IRQ 5
        I/O ports at e000 [size=256]
        Capabilities: [c0] Power Management version 2

00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
        Subsystem: Micro-Star International Co., Ltd.: Unknown device 712c
        Flags: bus master, medium devsel, latency 32, IRQ 11
        I/O ports at dc00 [size=256]
        Memory at dffffe00 (32-bit, non-prefetchable) [size=256]
        Capabilities: [40] Power Management version 2

01:00.0 VGA compatible controller: nVidia Corporation NV28 [GeForce4 Ti 4200 AGP 8x] (rev a1) (prog-if 00 [VGA])
        Flags: bus master, 66Mhz, medium devsel, latency 248, IRQ 11
        Memory at de000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d8000000 (32-bit, prefetchable) [size=64M]
        Expansion ROM at dfee0000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
        Capabilities: [44] AGP version 3.0


plainkeyman 10-08-2004 08:56 AM

i found this link... but i have not tried it yet:

http://howtos.linux.com/howtos/Flash...inux-2.6.shtml

has anyone ever done this sort of thing before?


All times are GMT -5. The time now is 01:09 PM.