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
  •  


Vintage DEC/CLEARPOINT INC. -QRAM-2 SAB-1 1MB Q-BUS MEMORY MSV11-QA (B2) picture

Vintage DEC/CLEARPOINT INC. -QRAM-2 SAB-1 1MB Q-BUS MEMORY MSV11-QA (B2)

$129.99



DEC  PDP 8/M  PDP 8M / 4 avail / Vintage Digital Equipment Corp /Also DEC PDP 12 picture

DEC PDP 8/M PDP 8M / 4 avail / Vintage Digital Equipment Corp /Also DEC PDP 12

$5775.00



10x Rare Vintage DEC 12-22246-01 VAX BI TRANSITION HEADER ALL 3 BLOCKS INSTALLED picture

10x Rare Vintage DEC 12-22246-01 VAX BI TRANSITION HEADER ALL 3 BLOCKS INSTALLED

$219.95



DEC DIGITAL Equipment Corp VT220-D2 Vintage CRT Terminal picture

DEC DIGITAL Equipment Corp VT220-D2 Vintage CRT Terminal

$215.00



Vintage   DEC / DIGITAL CLEARPOINT INC COMPUTER BOARD QRAM-11  QBUS  Memory PQ picture

Vintage DEC / DIGITAL CLEARPOINT INC COMPUTER BOARD QRAM-11 QBUS Memory PQ

$109.00



Vintage DEC Digital Equipment VT100 Keyboard 70-14653-11 Missing Key Caps picture

Vintage DEC Digital Equipment VT100 Keyboard 70-14653-11 Missing Key Caps

$129.00



DEC DIGITAL VINTAGE M8972 picture

DEC DIGITAL VINTAGE M8972

$47.00



Vintage DEC Digital RX 180 AB Dual 5.25

Vintage DEC Digital RX 180 AB Dual 5.25" Disk Drive

$149.00



Vintage DEC/The Redac mini cabinet front panel Digital Equipment Corp. 19

Vintage DEC/The Redac mini cabinet front panel Digital Equipment Corp. 19"

$269.99



VINTAGE DEC Digital RK11-D DISK CONTROL M7255 PDP 11 (B1) picture

VINTAGE DEC Digital RK11-D DISK CONTROL M7255 PDP 11 (B1)

$129.99