Announcement

Collapse
No announcement yet.

USB Drives mounting differently each reboot

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    USB Drives mounting differently each reboot

    Good day everybody,

    I have a problem that was fixed under Edgy, but has returned since I upgraded to Feisty.

    The Problem:
    I have 3 USB external Drives, I want them to mount at the same mountpoints each time the system either upgrades or reboots.
    I have those drives setup in my smb.conf file to allow for my windows machine to access the mp3's / backups / general shares.

    The Solution that worked under edgy:
    Setup the /etc/fstab file with static mountpoints.

    This worked fantastically. Reboot after reboot - always remained the same 3 shares in the correct ext drives.

    This is the relevant part of my fstab file
    Code:
    /dev/disk/by-id/usb-SAMSUNG_SP2514N_0-part1  /media/disk  auto auto,user,exe
    c,rw,sync 0 0
    /dev/disk/by-id/usb-WD_2500JB_External_5743414C3733343437353530-part1 /media/dis
    k-1 auto auto,user,exec,rw,sync 0 0
    /dev/disk/by-id/usb-WDC_WD32_00SB-01KMA0-part1 /media/disk-2 auto auto,user,exec
    ,rw,sync 0 0
    and the relevant sections of my smb.conf
    Code:
    [General]
    path = /media/disk-1/
    read only = no
    create mask = 0644
    force user = andrew
    guest ok = yes
    case sensitive = no
    
    [Backups]
    path = /media/disk/
    read only = no
    create mask = 0644
    force user = andrew
    guest ok = yes
    case sensitive = no
    strict locking = no
    
    [MP3]
    path = /media/disk-2/
    read only = no
    create mask = 0644
    force user = andrew
    guest ok = yes
    case sensitive = no
    Now each time that I reboot my feisty box (1 or 2 times a month - since upgrade)
    I have to go and modify the smb.conf, restart samba, then redo my windows mapped shares so that my backup software will actually send the backups to the correct share.

    Any ideas?

    Thanks
    Kilroy

    #2
    Re: USB Drives mounting differently each reboot

    Use UUIDs rather than device nodes?

    EDIT: Wait. You're not using device nodes. Try UUIDs anyway.
    For external use only.

    Comment


      #3
      Re: USB Drives mounting differently each reboot

      Originally posted by kilroy
      /dev/disk/by-id/usb-SAMSUNG_SP2514N_0-part1 /media/disk [...]
      Just to make sure I get your point:

      What does more /etc/mtab | grep '/media/disk' result in before and after reboot, respectively ...?

      Comment


        #4
        Re: USB Drives mounting differently each reboot

        Before Reboot

        Code:
        andrew@speedy:~$ more /etc/mtab | grep '/media/disk'
        /dev/sdc1 /media/disk ext3 rw,nosuid,nodev,sync 0 0
        /dev/sda1 /media/disk-1 ext3 rw,nosuid,nodev,sync 0 0
        /dev/sdb1 /media/disk-2 ext3 rw,nosuid,nodev,sync 0 0

        Comment


          #5
          Re: USB Drives mounting differently each reboot

          After Reboot

          Code:
          andrew@speedy:~$ more /etc/mtab | grep '/media/disk'
          /dev/sdc1 /media/disk ext3 rw,nosuid,nodev,sync 0 0
          /dev/sda1 /media/disk-1 ext3 rw,nosuid,nodev,sync 0 0
          /dev/sdb1 /media/disk-2 ext3 rw,nosuid,nodev,sync 0 0

          Comment


            #6
            Re: USB Drives mounting differently each reboot

            Originally posted by kilroy
            Before Reboot
            Originally posted by kilroy
            After Reboot
            Am I dumb or what? To me, both listings look the same

            Or do you want to tell me / us that in either case e.g. /dev/sdc1 points to an other disk

            Comment


              #7
              Re: USB Drives mounting differently each reboot

              Everything looks fine to me.

              Are you sure that they're moving around?
              For external use only.

              Comment


                #8
                Re: USB Drives mounting differently each reboot

                They were, it usually happens after a patch / update has been installed.

                THough I guess that is really the only time that I reboot this box.

                Andrew

                Comment


                  #9
                  Re: USB Drives mounting differently each reboot

                  Originally posted by kilroy
                  They were
                  Weird ... and the IDs remain(ed) unchanged?

                  Plan B: reboot with the drives switched off (!).

                  --

                  Addenum: as indicated by this thread, you seem to have stumbled across yet another of Feisty's / 2.6.20-16's bugs ...

                  Comment

                  Working...
                  X