LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-11-2005, 01:31 PM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
USB and /etc/fstab


Hi,

I just want to know how everybody works with this problem.

Problem, which I ran into is:
when I connect more than two storage device to USB port,
the device assigned to them is a kind of random.
So, I have not figured out how /etc/fstab look like.

My memory stick seems to go either sda1 or sdb1,
My Zip drive seems to go either sda4 or sdb4.

At this moment, I have no more devices to check, but in future, the number will increase.

I appreciate any suggestion.

Thanks a lot.

kaz2100
 
Old 04-11-2005, 01:36 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
This shouldn't really matter as the connected devices get shown on your desktop.
 
Old 04-11-2005, 02:11 PM   #3
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Original Poster
Rep: Reputation: 108Reputation: 108
Thanks, but
I am using KDE and nothing pops out on desktop. ??
 
Old 04-11-2005, 05:26 PM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Re: USB and /etc/fstab

Quote:
Originally posted by kaz2100
My memory stick seems to go either sda1 or sdb1,
My Zip drive seems to go either sda4 or sdb4.
If you post your fstab settings (with usb stuff connected) we may be able to get a better understanding of what the problem is and supply a solution.
 
Old 04-11-2005, 05:36 PM   #5
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Original Poster
Rep: Reputation: 108Reputation: 108
Oh please excuse me, I thought I posted my /etc/fstab.

The last line is problem. The actual device file name is not always /dev/sda1. Depending the order I connect, sometimes, sdb1. Zip dirve can be either sda4 or sdb4.

/dev/hde1 is a device file for PC-card memory. I never had more than two cards connected.

Following is my /etc/fstab.

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda5 / ext2 errors=remount-ro 0 1
/dev/hda6 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/hda1 /old ext2 errors=remount-ro 0 2
#/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0
/dev/hdc /mnt/cdrom iso9660 ro,user,noauto 0 0
/dev/hda8 /hm ext2 errors=remount-ro 0 2
/dev/hda7 /rt ext2 errors=remount-ro 0 2
/dev/hde1 /mnt/mem vfat user,noauto 0 0
none /proc/bus/usb usbdevfs noauto 0 0
/dev/sda1 /mnt/usb vfat user,noauto 0 0
 
Old 04-11-2005, 07:00 PM   #6
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Rep: Reputation: 31
change noauto to auto in any device's line to have it automatically mount when you plug it in
 
Old 04-12-2005, 02:40 AM   #7
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
I wanted to know exactly the same (but nobody answered my post ).

I've several USB devices as you, and depending on the order, they are asociated to different scsi devices. Even "worst", one of the external hard disks has more than one partitions, so I would like to mount all of them when I connect it.

I think that automount could be used for this, because is the only way I know to have a "dynamic" /etc/fstab file, but I've had no time during these days to check

It is also possible that this problem is "new" and happened only now, when USB external storage devices became more popular, so it is possible that there is no solution yet
 
Old 04-12-2005, 08:12 AM   #8
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Original Poster
Rep: Reputation: 108Reputation: 108
Question



Thanks,

I tried noauto->auto, but
I still have to explicitly specify either /dev/sda1 or /dev/sdb1 depending on the order I connect.
 
Old 04-12-2005, 08:57 AM   #9
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
The option 'noauto' controls only if the drive should be mounted on bootup. The automatic mounting of a device that is plugged in should be controlled by some type of automounter and hotplug. Not sure what Debian uses...

Hotplug creates the device nodes in the order the device has been added to the system (sda,b,c,...) The number identifies the partitions on the drive. You could try to use udev-rules to assign fixed devicenodes to a particular hardware. Have a look here: http://www.reactivated.net/udevrules.php
 
  


Reply



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
Juggling USB devices (fstab related) leiavoia Debian 7 01-28-2005 05:38 AM
USB Device Fstab Entry Campy19 Linux - Hardware 4 01-07-2005 09:34 AM
usb fstab entry won't mount r/w Kilka Linux - Hardware 4 07-27-2004 11:05 AM
usb in /etc/fstab flux* Linux - Hardware 5 05-02-2004 03:37 PM
puhleeeease help w/USB & fstab rickenbacherus Linux - Hardware 4 12-16-2003 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration