LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-13-2004, 03:07 PM   #1
plainkeyman
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Rep: Reputation: 0
Question 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
 
Old 07-13-2004, 04:02 PM   #2
cbarbry
LQ Newbie
 
Registered: Jul 2004
Location: Arkansas
Distribution: Fedora and Red Hat
Posts: 6

Rep: Reputation: 0
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
 
Old 07-14-2004, 05:00 AM   #3
darkRoom
Member
 
Registered: Mar 2004
Location: Valencia, espaņa
Distribution: Slack, Gentoo, Custom
Posts: 162

Rep: Reputation: 30
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
 
Old 07-14-2004, 08:22 AM   #4
plainkeyman
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 07-14-2004, 08:27 AM   #5
plainkeyman
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 10-08-2004, 08:56 AM   #6
plainkeyman
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Original Poster
Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems auto-mounting usb drives in kernel 2.6.13.3 dizzi Slackware 8 10-29-2005 01:41 PM
mounting and unmounting USB drives Ian D Linux - Software 3 10-15-2005 02:45 PM
USB for kernel 2.6 and mounting drives at boot scalarhydra Debian 1 06-25-2004 11:59 AM
Mounting USB drives under 2.6.x hussar Linux - General 1 03-07-2004 12:58 PM
mounting usb drives? neon Linux - Newbie 2 10-29-2003 08:06 PM


All times are GMT -5. The time now is 04:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration