-
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
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
$154.96
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
$15.98
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
$39.00
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
$58.99
NEW LSI MEGARAID SAS 9361-8i 12GB/s SAS + SATA RAID CONTROLLER CARD PCIe x8 3.0
$99.00