-
Junior Member
registered user
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.
-
Re: Auto mount of hard disk drive
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
-
By glidetothehoop in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 12-24-2004, 02:41 PM
-
By Blisset in forum Hardware & Booting
Replies: 4
Last Post: 09-17-2004, 06:50 PM
-
By fourthirtysix in forum General Support
Replies: 0
Last Post: 05-24-2004, 03:24 AM
-
By jdtommy in forum Customising & Remastering
Replies: 1
Last Post: 04-16-2004, 04:53 PM
-
By Pisces_Australis in forum Laptops
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
-
Forum Rules
Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox
$340.00
Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS
$712.98
DELL PowerEdge R730XD 24x 2.5" Server Dual 750W Dual Heatsink - BareBones TESTED
$269.99
HP ProLiant DL360 G9 Server 2x E5-2660v3 2.60Ghz 20-Core 96GB P440ar
$304.35
Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD
$89.99
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount
$202.49
HYVE ZEUS V1 1U BAREBONE SERVER 2X10CORE E5-2680V2 2.8GHz 16GB RAM RISER NO RAIL
$180.00
DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45
$284.00
PowerEdge R710 Rackmount Server 80GB RAM 2x XEON E5520 CPU 4.75TB
$200.00