Results 1 to 2 of 2

Thread: Auto mount of hard disk drive

  1. #1
    Junior Member registered user
    Join Date
    Feb 2003
    Posts
    12

    Auto mount of hard disk drive

    What is the best way to automount any and all hdd? Would it work to just run a script at start up that calls mount several times?

    For Example calling this several times:
    "mount /dev/hdaX /mnt/hdaX"
    with X being the number for the disk.

    I want it to work with up to about 10 HDD.

    Is there a better way of doing this?

    Thanks.

  2. #2
    Member registered user
    Join Date
    Feb 2003
    Posts
    43

    Re: Auto mount of hard disk drive

    Quote Originally Posted by Mycroft1855
    What is the best way to automount any and all hdd? Would it work to just run a script at start up that calls mount several times?

    For Example calling this several times:
    "mount /dev/hdaX /mnt/hdaX"
    with X being the number for the disk.

    I want it to work with up to about 10 HDD.
    How about some variant of the following? I believe this is fairly typical:

    Code:
    DRIVES="/dev/hd[a-z][0-9]"
    
    for drv in $DRIVES ; do
        if mount $drv /mnt/tmp ; then
            umount /mnt/tmp
            # mark $drv as successful... do... something...
        else
            ;
            # mark $drv as UNsuccessful... oh well..
        fi
    done

Similar Threads

  1. Can't Get Hard Drive to Mount When Booting Up
    By glidetothehoop in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 12-24-2004, 02:41 PM
  2. Can I mount a 2nd hard disk if BIOS can't detect it?
    By Blisset in forum Hardware & Booting
    Replies: 4
    Last Post: 09-17-2004, 06:50 PM
  3. sata hard drive won't mount ...
    By fourthirtysix in forum General Support
    Replies: 0
    Last Post: 05-24-2004, 03:24 AM
  4. Auto mounting Hard drive
    By jdtommy in forum Customising & Remastering
    Replies: 1
    Last Post: 04-16-2004, 04:53 PM
  5. Replies: 0
    Last Post: 03-12-2004, 11:00 AM

Posting Permissions

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


WD_BLACK 1TB 2.5-inch Performance Hard Drive - WD10SPSX picture

WD_BLACK 1TB 2.5-inch Performance Hard Drive - WD10SPSX

$69.99



WD_BLACK 1TB D30 Game Drive SSD for Xbox Summer Collection - WDBAMF0010BSU-WESN picture

WD_BLACK 1TB D30 Game Drive SSD for Xbox Summer Collection - WDBAMF0010BSU-WESN

$109.99



Western Digital 1TB WD Blue PC Desktop 3.5'' Internal CMR Hard Drive - WD10EARZ picture

Western Digital 1TB WD Blue PC Desktop 3.5'' Internal CMR Hard Drive - WD10EARZ

$44.99



SanDisk 1TB Extreme Portable SSD, External Solid State Drive - SDSSDE61-1T00-G25 picture

SanDisk 1TB Extreme Portable SSD, External Solid State Drive - SDSSDE61-1T00-G25

$99.99



1TB Samsung 850 Pro Series 2.5

1TB Samsung 850 Pro Series 2.5" SATA 3 SSD MZ-7KE1T0BW HDD hard drive MZ-7KE1T0

$59.99



SEAGATE ST1000DM003 1TB SATA 3.5”HARD DRIVE  picture

SEAGATE ST1000DM003 1TB SATA 3.5”HARD DRIVE

$11.19



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$19.99



Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive picture

Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive

$67.99



1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture

1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot

$80.39



Toshiba DT01ABA100V  3.5

Toshiba DT01ABA100V 3.5" SATA Internal Hard Drive 1TB Tested/Wiped

$15.00