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
  •  


Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB picture

Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB

$334.99



Dell PowerEdge R730 2x E5-2699V3 2.3Ghz 36 Core 128GB RAM H730 X520-I350 2x750W picture

Dell PowerEdge R730 2x E5-2699V3 2.3Ghz 36 Core 128GB RAM H730 X520-I350 2x750W

$329.99



Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture

Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD

$197.99



Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330 picture

Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330

$182.65



Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays picture

Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays

$159.99



DELL POWEREDGE R630 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU picture

DELL POWEREDGE R630 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU

$184.95



Dell PowerEdge R720xd 26HDD 300gb  2.5-inch E5-2697  X 2CPU 384RAM 7.2 Tb HDD  picture

Dell PowerEdge R720xd 26HDD 300gb 2.5-inch E5-2697 X 2CPU 384RAM 7.2 Tb HDD 

$180.00



Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server picture

Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server

$174.99



Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config picture

Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config

$489.99



DELL PowerEdge R630 8SFF Server 2x E5-2643v3 3.4GHz =12 Cores 64GB H730 4xRJ45 picture

DELL PowerEdge R630 8SFF Server 2x E5-2643v3 3.4GHz =12 Cores 64GB H730 4xRJ45

$270.00