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
  •  


Oracle 7085209 LSI MegaRAID SAS 9361-8i 1GB Cache 12Gbps SAS/SATA PCIe RAID Card picture

Oracle 7085209 LSI MegaRAID SAS 9361-8i 1GB Cache 12Gbps SAS/SATA PCIe RAID Card

$28.20



Broadcom LSI 9400-16i Raid card SAS/SATA/NVME SFF-8643 SAS3416 PCIe 3.1 x8 HBA picture

Broadcom LSI 9400-16i Raid card SAS/SATA/NVME SFF-8643 SAS3416 PCIe 3.1 x8 HBA

$154.96



Cisco UCS LSI MegaRAID 9271CV-8I SAS2308 PCIe SAS Internal RAID Controller picture

Cisco UCS LSI MegaRAID 9271CV-8I SAS2308 PCIe SAS Internal RAID Controller

$28.00



Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE picture

Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE

$15.98



LSI MegaRAID 9361-8i 12Gb PCIe 8-Port SAS/SATA RAID 1Gb w/BBU/CacheVault/License picture

LSI MegaRAID 9361-8i 12Gb PCIe 8-Port SAS/SATA RAID 1Gb w/BBU/CacheVault/License

$39.95



LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault picture

LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault

$39.00



ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs picture

ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs

$82.49



ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID picture

ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID

$58.99



NEW LSI MEGARAID SAS 9361-8i 12GB/s SAS + SATA RAID CONTROLLER CARD PCIe x8 3.0 picture

NEW LSI MEGARAID SAS 9361-8i 12GB/s SAS + SATA RAID CONTROLLER CARD PCIe x8 3.0

$99.00