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

Thread: How do I get SATA to hotswap / automount?

  1. #1
    Join Date
    Oct 2007
    Beans
    61
    Distro
    Ubuntu 8.04 Hardy Heron

    How do I get SATA to hotswap / automount?

    I am running Ubuntu64 and I have a SATA hotswap tray. Currently, the only way my system recognizes a new SATA drive in the hotswap tray is when I reboot. I'm able to remove the drive after unmounting it but I'd like Ubuntu to detect when I've put a new drive in the tray and automount it (like it does when I plug in an external USB drive) without having to reboot. Would someone please tell me how to set this up?

    Thanks,
    Todd

  2. #2
    Join Date
    Dec 2009
    Beans
    6,803

    Re: How do I get SATA to hotswap / automount?

    1st: I have no idea
    2nd: I really have no idea

    I did a general search on google for hot swap sata drives and the darn thing pointed me right back to this forum:
    http://ubuntuforums.org/showthread.php?t=907124

    Involves using the package scsiadd. Might be worth investigating.

  3. #3
    Join Date
    Oct 2007
    Beans
    61
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How do I get SATA to hotswap / automount?

    Thanks for the reply. I tried using scsiadd but it doesn't help. It seems like this should be something simple that should have been resolved long ago. I mean drives that are supposedly "hot swapable" should just work that way. I don't mind having to do some initial configuring but I don't want to open a terminal every time I swap out a drive. It's just frustrating because it seems like it should be able to be configured to work like an external USB drive works (fast and easy plug and play).

    If anyone has any ideas, it would be greatly appreciated.
    Thanks,
    Todd

  4. #4
    Join Date
    Jun 2009
    Location
    0000:0400
    Beans
    Hidden!

    Re: How do I get SATA to hotswap / automount?

    What, if anything, is printed to to your system logs when a drive is removed and reattached? Do this:
    Code:
    sudo tail -f /var/log/messages
    And then unplug/plug in a drive. This smells like a udev rule waiting to be written.

    Also, what's the output of:
    Code:
    zgrep -i hotplug /proc/config.gz

  5. #5
    Join Date
    Oct 2007
    Beans
    61
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How do I get SATA to hotswap / automount?

    Quote Originally Posted by falconindy View Post
    What, if anything, is printed to to your system logs when a drive is removed and reattached? Do this:
    Code:
    sudo tail -f /var/log/messages
    And then unplug/plug in a drive. This smells like a udev rule waiting to be written.
    I did this command and then unmounted the drive and unplugged the drive and then plugged it back in but nothing happens in the log file you asked me to tail.

    Quote Originally Posted by falconindy View Post
    Also, what's the output of:
    Code:
    zgrep -i hotplug /proc/config.gz
    Here is what I get:
    Code:
    gzip: /proc/config.gz: No such file or directory
    Any other ideas would be appreciated. Thanks for the help so far!
    -Todd

  6. #6
    Join Date
    Jun 2009
    Location
    0000:0400
    Beans
    Hidden!

    Re: How do I get SATA to hotswap / automount?

    Without being able to see the kernel config, I would have to guess that the stock Ubuntu kernel isn't supporting SATA hotplug. You might be in for a recompile.

  7. #7
    Join Date
    Feb 2010
    Location
    Buffalo, NY USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How do I get SATA to hotswap / automount?

    Try running your SATA in ACHI mode. Check your BIOS settings to see if this is possible.

    More info: http://en.wikipedia.org/wiki/Ahci
    AHCI is separate from the SATA 3Gb/s standard, although it exposes SATA's advanced capabilities (such as hot-plugging and native command queuing) such that host systems can utilize them.
    Ubuntu user since 2/16/2010.
    GigaByte MA790FXT-UD5P // AMD Phenom II X4 810 // Patriot Extreme 8GB PC3-12800 DDR3 1600 // Sapphire ATI HD5870 Vapor-X OC

  8. #8
    Join Date
    Oct 2007
    Beans
    61
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How do I get SATA to hotswap / automount?

    Quote Originally Posted by taurolyon View Post
    Try running your SATA in ACHI mode. Check your BIOS settings to see if this is possible.

    More info: http://en.wikipedia.org/wiki/Ahci
    Thanks for the suggestion but I don't have that setting in my BIOS. I'd really appreciate any other ideas.

  9. #9
    Join Date
    Apr 2007
    Location
    Sydney Australia
    Beans
    77
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How do I get SATA to hotswap / automount?

    Hi

    many thanks "taurolyon" that suggestion about enabling ACHI has fixed it for me, no need to even have SCSIADD either, UBUNTU detects the drive being added or removed. Nautilus and Places both see it without the need to refresh anything.

    Its also had the added benifit of speeding up the GRUB loader and general POSTing of the computer. Plus's all round!

    Sadly for "toddk111" that is of no help for you as you state ACHI is not supported.

    Cheers all.

  10. #10
    Join Date
    Feb 2010
    Location
    Buffalo, NY USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How do I get SATA to hotswap / automount?

    @exup1000

    You are most welcome!
    Ubuntu user since 2/16/2010.
    GigaByte MA790FXT-UD5P // AMD Phenom II X4 810 // Patriot Extreme 8GB PC3-12800 DDR3 1600 // Sapphire ATI HD5870 Vapor-X OC

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
  •