Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: External USB drive not recognized after boot Jaunty

  1. #1
    Join Date
    May 2007
    Location
    Sunnyvale, CA
    Beans
    45
    Distro
    Ubuntu 10.04 Lucid Lynx

    External USB drive not recognized after boot Jaunty

    I've been struggling to get my USB external hard drives to mount on boot. I've tweaked fstab and rc.local to no avail. The reason I now believe is because my externals are not be recognized after a full boot cycle. They are both on separate power supplies and remain on during reboots.

    After bootup
    Code:
    sudo fdisk -l
    Result:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000b5a56

    Device Boot Start End Blocks Id System
    /dev/sda1 18582 19457 7036470 5 Extended
    /dev/sda2 * 1 3647 29294496 83 Linux
    /dev/sda3 3648 18581 119957355 83 Linux
    /dev/sda5 18583 19457 7028437+ 82 Linux swap / Solaris

    Code:
    sudo blkid
    Result:
    /dev/sda2: UUID="d43762cc-9f52-4b09-8c78-7c11dd55edb7" TYPE="ext4"
    /dev/sda3: UUID="d1e10d68-ca09-4700-a20e-49ec4651d275" TYPE="ext4"
    /dev/sda5: TYPE="swap" UUID="6f7cad75-cf59-4c3d-aaa4-1ec49672a8bb"

    Now if I power cycle either of the drives BOTH will show up.

    After power cycle (external hard drive only):
    Code:
    sudo fdisk -l
    Result:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000b5a56

    Device Boot Start End Blocks Id System
    /dev/sda1 18582 19457 7036470 5 Extended
    /dev/sda2 * 1 3647 29294496 83 Linux
    /dev/sda3 3648 18581 119957355 83 Linux
    /dev/sda5 18583 19457 7028437+ 82 Linux swap / Solaris

    Partition table entries are not in disk order

    Disk /dev/sdb: 750.1 GB, 750156374016 bytes
    255 heads, 63 sectors/track, 91201 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x44fdfe06

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 91201 732572001 7 HPFS/NTFS

    Disk /dev/sdc: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x9258a496

    Device Boot Start End Blocks Id System
    /dev/sdc1 1 38913 312568641 7 HPFS/NTFS

    Code:
    sudo blkid
    Result:
    /dev/sda2: UUID="d43762cc-9f52-4b09-8c78-7c11dd55edb7" TYPE="ext4"
    /dev/sda3: UUID="d1e10d68-ca09-4700-a20e-49ec4651d275" TYPE="ext4"
    /dev/sda5: TYPE="swap" UUID="6f7cad75-cf59-4c3d-aaa4-1ec49672a8bb"
    /dev/sdb1: UUID="2DC35AAC0022D957" LABEL="MyBook" TYPE="ntfs"
    /dev/sdc1: UUID="C8F43344F4333452" LABEL="BIG" TYPE="ntfs"

    Also, I get two pop up windows that saying that I don't have permission to mount the two externals. Once the power cycle is done
    Code:
    sudo mount -a
    will mount both drives, but I would like it to happen on boot. I think it will if they are recognized. Anyone have any clue on this one? Thanks in advance.

  2. #2
    Join Date
    Aug 2006
    Beans
    2

    Re: External USB drive not recognized after boot Jaunty

    I'm having the same problem after an upgrade to Jaunty - my external hd is now not automounting, which is a big problem for me as my /home partition is on this drive.

    My impression is that the usb driver or something is not kicking in before the filesystems are mounted from fstab. I didn't have this problem in Intrepid so it must be something new in Jaunty causing the problem...

  3. #3
    Join Date
    Jan 2009
    Location
    Gilbert, AZ, USA
    Beans
    38
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: External USB drive not recognized after boot Jaunty

    I have the same problem.

    My Lexar USB Flashdrive is not showing up. When I connect another media device after boot (ex: iPod) it'll pop up both the iPod and the Lexar drive.

    I also seem to be missing a partition, though that could have been overwritten when I installed 9.04 (64-bit)

    Before connecting the iPod:

    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x08ed08ed

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 9327 74919096 83 Linux
    /dev/sda2 9328 9729 3229065 5 Extended
    /dev/sda5 9328 9729 3229033+ 82 Linux swap / Solaris
    After connecting the iPod:

    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x08ed08ed

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 9327 74919096 83 Linux
    /dev/sda2 9328 9729 3229065 5 Extended
    /dev/sda5 9328 9729 3229033+ 82 Linux swap / Solaris
    Note: sector size is 4096 (not 512)

    Disk /dev/sdb: 7971 MB, 7971016704 bytes
    35 heads, 41 sectors/track, 1356 cylinders
    Units = cylinders of 1435 * 4096 = 5877760 bytes
    Disk identifier: 0x20202020

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 1357 7783940 b W95 FAT32

    Disk /dev/sdc: 4026 MB, 4026531840 bytes
    216 heads, 32 sectors/track, 1137 cylinders
    Units = cylinders of 6912 * 512 = 3538944 bytes
    Disk identifier: 0xc3072e18

    Device Boot Start End Blocks Id System
    /dev/sdc1 * 1 1134 3915760 c W95 FAT32 (LBA)
    Magically it sees the jumpdrive...

    Like I said, only difference is I plugged in the iPod.
    "Only out of the exigencies of discord comes discourse." - Bahktin

  4. #4
    Join Date
    Oct 2008
    Location
    colachel
    Beans
    516
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: External USB drive not recognized after boot Jaunty

    Same issue my-mobile memory card is not mounting.

  5. #5
    Join Date
    Jul 2008
    Beans
    2

    Re: External USB drive not recognized after boot Jaunty

    I have exactly the same problem. I have just upgraded (by way of a clean install) from Itrepid to Jaunty Server.

    My external USB hard drive (with own power supply) used to be recognised at boot time by Intrepid. Now with Jaunty it doesn't. I have to power cycle the HDD after boot up for it to be recognised.

    I also have my /home on this drive so it is a big problem.

  6. #6
    Join Date
    Apr 2006
    Beans
    3

    Re: External USB drive not recognized after boot Jaunty

    Seems the "usb_storage" module isn't being loaded. Adding this to /etc/modules made it work fine. (Or run sudo modprobe -i usb_storage)

    Dunno why this is happening now. Was working fine in intrepid.

  7. #7
    Join Date
    Jul 2008
    Beans
    2

    Re: External USB drive not recognized after boot Jaunty

    Excellent, thanks a lot pix27. Now my external USB device is recognised at boot time.

    Unfortunately that's not my whole story. My external USB drive is encrypted with LUKS and it doesn't luksOpen on boot anymore (it did in Intrepid). This in my /etc/crypttab:

    store /dev/sdb /etc/keys/store.key luks

    During bootup some error about /etc/keys/store.key whizzes past too quickly for me to read. Does anyone know how I can see what this message said? It doesn't appear in dmesg, syslog or messages.

    (BTW I can use that key file to open the LUKS volume fine after I've booted)

    Thanks

  8. #8
    Join Date
    Apr 2006
    Beans
    3

    Re: External USB drive not recognized after boot Jaunty

    Perhaps the message was dumped into one of the other files in /var/log? Have you tried the "Log Viewer" to search for it?

  9. #9
    Join Date
    Aug 2006
    Beans
    2

    Re: External USB drive not recognized after boot Jaunty

    I've kind of fixed my problem...

    In my case usb_storage was being loaded even without the entry in /etc/modules, but I guess it was loaded too late to be picked up by the automount process. I found if I force an fsck on my root partition this gives enough time for the usb drive to be recognised before it tries to mount it, so for now my solution is just to set fsck to run on the root drive on every boot using tune2fs (not really a big problem for me as it's a server and hardly ever rebooted). It may be that this problem was inadvertently avoided on intrepid by the slower boot time.

    It's not an ideal solution so if anyone has a better one please let me know e.g. can I force usb_storage to run earlier in the boot process, or force the mounting of filesystems to happen later?

  10. #10
    Join Date
    Apr 2009
    Location
    Ellensburg, WA
    Beans
    1,441
    Distro
    Ubuntu

    Re: External USB drive not recognized after boot Jaunty

    Quote Originally Posted by pix27 View Post
    Seems the "usb_storage" module isn't being loaded. Adding this to /etc/modules made it work fine. (Or run sudo modprobe -i usb_storage)

    Dunno why this is happening now. Was working fine in intrepid.
    I have the problem of my USB drive not automounting on boot too, but using your method and rebooting still causes the drive not to be mountable (or even recognized) when the system boots up. I still have to unplug and replug it back in, or do the command you gave each time I start up the machine.

    here's my thread: http://ubuntuforums.org/showthread.php?t=1134501

    I don't know how to add the usb_storage to my etc/modules file manually though.

    Edit: Nevermind, I figured it out.
    Last edited by coldReactive; April 25th, 2009 at 09:20 PM.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

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