Ask a Question related to Ubuntu, Design and Development.
-
Toby Newman #1
/etc/fstab: When I swap around my USB stuff it gets mounted wrongly.
I have set up some entries in my fstab to tell it where to mount my
various USB mass storage devices:
My 3 USB Devices:
ipod nano
SD Card via card reader
CompactFlash card via digital camera
Some of the relevant lines in my /etc/fstab:
/dev/sda1 /media/sda1 vfat users,uid=xxxxxx,gid=xxxxxx,noauto,umask=000 0 0
/dev/sda2 /media/ipod vfat users,uid=xxxxxx,gid=xxxxxx,noauto,umask=000 0 0
/dev/sdb1 /media/sdb1 vfat users,uid=xxxxxx,gid=xxxxxx,noauto,umask=000 0 0
....and so on.
The problem I have is that if I shuffle around the USB ports that these
get connected to they show up as different /dev/sd* devices.
One day, my ipod will show up as /dev/sda1. The next day, because I will
have my SD card connected too, my ipod will show up as /dev/sdb2.
Am I missing a feature here, somewhere? How can I have my fstab know
which device is connected and mount it to the correct place?
--
-Toby, who...
Add the word afiduluminag to the subject
field to circumvent my email filters.
Ignore any mail delivery error.
Toby Newman Guest
-
error in line_1 of /etc/fstab
Gents: My system constantly whines about an "... error in line_1 of /etc/fstab ..." Here it is .... is there a problem ?? I know the last_line... -
Swap image also swap link
Hi, I have a system set up where I have 5 thumbnails and when you roll-over one of the five it makes the large image above change to the... -
Sequence of entries in /etc/fstab
In /etc/fstab, the / partition should be the first entry, as it must be mounted first. Any partitions above it will be mounted and fsck will be... -
usb devices /etc/fstab
hi, i have two usb removable mass storage devices (camera and vorbis player) that are both setup in /etc/fstab to use /dev/sda1 as the device.... -
OSX - nidumped fstab/exports
I have a bunch of OSX Macs on a networks. I will appreciate if you can send me your nidumped fstab/exports so that I'd have some examples how to set... -
User #2
Re: /etc/fstab: When I swap around my USB stuff it gets mounted wrongly.
Toby Newman wrote:
I have the same problem, my mp3's are on a usb hd and when I reboot the> I have set up some entries in my fstab to tell it where to mount my
> various USB mass storage devices:
>
> My 3 USB Devices:
> ipod nano
> SD Card via card reader
> CompactFlash card via digital camera
>
> Some of the relevant lines in my /etc/fstab:
>
> /dev/sda1 /media/sda1 vfat users,uid=xxxxxx,gid=xxxxxx,noauto,umask=000 0 0
> /dev/sda2 /media/ipod vfat users,uid=xxxxxx,gid=xxxxxx,noauto,umask=000 0 0
> /dev/sdb1 /media/sdb1 vfat users,uid=xxxxxx,gid=xxxxxx,noauto,umask=000 0 0
>
> ...and so on.
>
> The problem I have is that if I shuffle around the USB ports that these
> get connected to they show up as different /dev/sd* devices.
>
> One day, my ipod will show up as /dev/sda1. The next day, because I will
> have my SD card connected too, my ipod will show up as /dev/sdb2.
>
> Am I missing a feature here, somewhere? How can I have my fstab know
> which device is connected and mount it to the correct place?
>
mount changes, sda5 or sdb5, or sdc5, poor amarok can't find the 6700
songs so I need to rescan the collection. How do I fix the mount point?
I'm a linoob so be gentle. Kinda proud of myself though, in 3 days in my
free time I've become 'almost' MSfree, I've setup my minolta qms 2300dl
network printer, got my scanner working with sane, got dvdshrink working
with wine, mp3 support, dvd support, etc., etc., Kubuntu Dapper rocks!
User Guest
-
Call Me Ishmael #3
Re: /etc/fstab: When I swap around my USB stuff it gets mounted wrongly.
In data Sun, 16 Apr 2006 20:30:07 +0100, Toby Newman ha scritto: (wrote:)
>
> One day, my ipod will show up as /dev/sda1. The next day, because I will
> have my SD card connected too, my ipod will show up as /dev/sdb2.
>
> Am I missing a feature here, somewhere? How can I have my fstab know
> which device is connected and mount it to the correct place?
No, you aren't missing anything, this is the way things go as default :-)
But there's a (quite) easy way to "link" a given hardware device (e.g.
Ipod, or Card reader), to a specific /dev/ entry.
E.g: the ipod will always be /dev/ipod, the card reader could be
/dev/cardreader and so on. Of course you could use any different name.
To achieve this, please read
[url]http://reactivated.net/writing_udev_rules.html[/url]
It could seem very complicated at first glance, but once you have
understood what you have to do, it will take no more than few minutes to be
ready.
Ubuntu comes with udev already installed, so you do not have to do anything
else to add a new udev rule.
As far as I remember, once you wrote the udev rule, you don't have the
device automounted, you have to do it manually.
eg. mount /dev/ipod /media/ipod
Call Me Ishmael Guest
-
Hadron Quark #4
Re: /etc/fstab: When I swap around my USB stuff it gets mounted wrongly.
"Call"posted on 2006-04-19:
Crikey : if anything needed a frontend then that is it. Hard to> In data Sun, 16 Apr 2006 20:30:07 +0100, Toby Newman ha scritto: (wrote:)
>
>>>>
>> One day, my ipod will show up as /dev/sda1. The next day, because I will
>> have my SD card connected too, my ipod will show up as /dev/sdb2.
>>
>> Am I missing a feature here, somewhere? How can I have my fstab know
>> which device is connected and mount it to the correct place?
>
> No, you aren't missing anything, this is the way things go as default :-)
> But there's a (quite) easy way to "link" a given hardware device (e.g.
> Ipod, or Card reader), to a specific /dev/ entry.
> E.g: the ipod will always be /dev/ipod, the card reader could be
> /dev/cardreader and so on. Of course you could use any different name.
>
> To achieve this, please read
> [url]http://reactivated.net/writing_udev_rules.html[/url]
believe it is so complicated to achieve something so desirable :(
Hadron Quark Guest



Reply With Quote

