/etc/fstab: When I swap around my USB stuff it gets mounted wrongly.

Ask a Question related to Ubuntu, Design and Development.

  1. #1

    Default /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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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....
    5. 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...
  3. #2

    Default Re: /etc/fstab: When I swap around my USB stuff it gets mounted wrongly.

    Toby Newman wrote:
    > 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?
    >
    I have the same problem, my mp3's are on a usb hd and when I reboot the
    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

  4. #3

    Default 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

  5. #4

    Default Re: /etc/fstab: When I swap around my USB stuff it gets mounted wrongly.

    "Call"posted on 2006-04-19:
    > 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]
    Crikey : if anything needed a frontend then that is it. Hard to
    believe it is so complicated to achieve something so desirable :(
    Hadron Quark Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139