Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: External drive disappears

  1. #1

    External drive disappears

    I have a Western Digital My Book Mirror Edition drive connected to my Ubuntu Gutsy Gibbon desktop machine via USB. This drive has built-in RAID 1 mirroring, and I reformatted the drives to ext3 immediately after opening the box.

    Since the beginning, I've been having trouble with this device in that it "disappears", and becomes inaccessible to the operating system. I have the drive configured in /etc/fstab to mount at /shared on my system, and for a while everything works fine. However, if I let the drive stand idle for an extended period of time, the device disappears. The mounted /shared directory is still there, but if I try "ls /shared" I get the following:

    Code:
    $ ls /shared/
    ls: reading directory /shared/: Input/output error
    total 0
    Furthermore, the device file that represents the drive (/dev/sdc1) no longer exists. If I try to umount the drive, I get an error message saying that the device is busy.

    I had two theories about why this was happening. The first thing I thought was that maybe brief power outages were causing the problem, so I purchased a UPS but it did not fix the problem. My second thought was that perhaps the drive was putting itself into a sleep or standby mode after some period of inactivity, so a created a cron job that wrote to a file on the device every minute. I thought that this had fixed the problem since the drive stayed up and running for over a full day, but this morning the drive has "disappeared" again

    Does anyone here have any information or advice that might help me to keep this drive alive?

    Thanks in advance for any help you can offer.

  2. #2

    Re: External drive disappears

    I forgot to mention previously that either rebooting or issuing a "mount -a" command remounts the external drive properly, although in the latter case the drive is assigned a new device file: /dev/sdd1 instead of /dev/sdc1. (I am using UUIDs in my fstab so this doesn't cause any problems for me.)
    Last edited by jvoegele; September 11th, 2008 at 03:48 PM.

  3. #3
    Join Date
    May 2006
    Beans
    Hidden!

    Re: External drive disappears

    I am having a similar problem but with a different drive : Fantom 120 GB USB drive. I am beginning to suspect this is a problem with the USB driver. It used to work fine when I had XP. Its possible that it just went bad when I switched over to Linux but thats too big a coincidence. I'll try and put XP on one of my other computers, hook this back up and see how it fares.

  4. #4
    Join Date
    Sep 2006
    Beans
    13

    Re: External drive disappears

    I'm having a similar problem, however, my drive disappears whenever i connect another external hard drive to my machine via usb. My original drive works fine till the very moment i connect the second drive, then the original one disappears and all i'm left with is the second one. Even 'fdisk -l' doesn't show anything in regards to the original drive. Any suggestions?

  5. #5
    Join Date
    Mar 2007
    Location
    Xiamen, China
    Beans
    85
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: External drive disappears

    jvoegele, I just got that drive too. I got the western digital mirror with two 500 gig drives. I left it as NTFS but I already have fragmentation that *******s can't defrag. So since its a hardware raid 1 you were able to format it to ext3 and the second drive also did the same right? How to you monitor the health of the raid? Also is the drive showing up in Ubuntu again?
    "You must be the change you wish to see in the world" - Gandhi

  6. #6

    Re: External drive disappears

    Quote Originally Posted by Chang An View Post
    jvoegele, I just got that drive too. I got the western digital mirror with two 500 gig drives. I left it as NTFS but I already have fragmentation that *******s can't defrag. So since its a hardware raid 1 you were able to format it to ext3 and the second drive also did the same right? How to you monitor the health of the raid? Also is the drive showing up in Ubuntu again?
    The drive is showing up again now. The problem was actually a loose USB cable connection.

    I was able to successfully format the drive to ext3 and everything works fine. However, I don't know of any way to verify whether both internal drives are ext3 and are being mirrored, short of taking out one drive at a time and checking the data. I'm merely assuming at this point that both drives are being used.

    Does anyone know a way to verify without taking out one or the other drive?

  7. #7
    Join Date
    Jan 2009
    Beans
    20
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: External drive disappears

    Hello everybody,

    sorry warming this up but I just have the same error with the WD Mirror Edition 2TB. I have the drive in standard NTFS up and running (from time to time) but it also disappears. I tried several USB Ports but I'm not able to have it available a whole day.

    @jvoegele: the fix of the loose USB connection did the trick? As said I tried it with different USB ports but without any success...

    I appreciate any help

  8. #8
    Join Date
    Jan 2009
    Location
    Albuquerque, NM
    Beans
    54
    Distro
    Xubuntu 8.10 Intrepid Ibex

    Re: External drive disappears

    I am having a (mildly) similar problem w/ a WD My Book (essential edition). The thread is here, your problem seems a bit dissimilar, but if I've learned one thing about Linux in the three days I've been working with it, is that the problem being experienced maybe far from the obvious one (at least to a noob).

  9. #9

    Re: External drive disappears

    Quote Originally Posted by sd23ddde View Post
    @jvoegele: the fix of the loose USB connection did the trick? As said I tried it with different USB ports but without any success...
    I did three things to try to fix this problem:

    1) Purchased a Uninterruptible Power Supply and plugged my computer and the drive into it.
    2) Created a cron entry that would write something to the drive every minute so that it would not go to sleep.
    3) Secured the USB cable connection.

    In retrospect, it is possible that step (2) is the one that finally fixed the problem for me. If you want to try it yourself, just add something like this to your crontab:

    Code:
    * * * * *   echo `date` > /shared/keepalive

  10. #10
    Join Date
    Jan 2009
    Beans
    20
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: External drive disappears

    thanks for your fast reply.
    I also think that the 2nd might solve it, since the disappearing is almost about 15 mins (always the same) so I guess its about some stupid sleep mode

    I will check this and reply if it worked.
    Thx again

    @grossinm: I'm not sure but I think our problems are really different?! But: See you in your thread.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •