-
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
![Quote](images/misc/quote_icon.png)
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
![Intel Core i9-14900K Unlocked Desktop Processor picture](/store/img/cUEAAOSwrc9mmdiQ/s-l225//Intel-Core-i9-14900K-Unlocked-Desktop-Processor.jpg)
Intel Core i9-14900K Unlocked Desktop Processor
$33.49
![Intel Core i7 7700 SR338 Socket LGA 1151 3.6GHz Quad Core CPU Processor A++ picture](/store/img/bhAAAOSwoS5mm8h2/s-l225//Intel-Core-i7-7700-SR338-Socket-LGA-1151-3-6GHz-Qu.jpg)
Intel Core i7 7700 SR338 Socket LGA 1151 3.6GHz Quad Core CPU Processor A++
$69.90
![AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads picture](/store/img/lUEAAOSw4exmMBDH/s-l225//AMD-Ryzen-9-7900X3D-Gaming-Processor-12-Core-And-2.jpg)
AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads
$449.00
![Intel Xeon E5-2680 V4 2.4GHz 35MB 14-Core Processor SR2N7 | Tested picture](/store/img/6SIAAOSwoLFmmAfi/s-l225//Intel-Xeon-E5-2680-V4-2-4GHz-35MB-14-Core-Processo.jpg)
Intel Xeon E5-2680 V4 2.4GHz 35MB 14-Core Processor SR2N7 | Tested
$13.95
![Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture](/store/img/7-YAAOSwHaFjXQ2k/s-l225//Intel-Core-i7-12700K-Desktop-Processor-12-8P-4E-Co.jpg)
Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...
$419.99
![Intel Core i5-12600K Processor (4.9 GHz, 10 Cores, FCLGA1700) Box -... picture](/store/img/nwAAAOSwLBJmnVfA/s-l225//Intel-Core-i5-12600K-Processor-4-9-GHz-10-Cores-FC.jpg)
Intel Core i5-12600K Processor (4.9 GHz, 10 Cores, FCLGA1700) Box -...
$135.50
![Intel Core i7-2600 4-Core 3.4-3.8 GHz Processor Sandy Bridge CPU LGA1155 SR00B picture](/store/img/ZSIAAOSwyARmmB9z/s-l225//Intel-Core-i7-2600-4-Core-3-4-3-8-GHz-Processor-Sa.jpg)
Intel Core i7-2600 4-Core 3.4-3.8 GHz Processor Sandy Bridge CPU LGA1155 SR00B
$20.00
![Intel Core i7-7700 SR338 3.60GHz 8MB Quad Core LGA1151 Processor CPU picture](/store/img/BLIAAOSwh2pkd3ya/s-l225//Intel-Core-i7-7700-SR338-3-60GHz-8MB-Quad-Core-LGA.jpg)
Intel Core i7-7700 SR338 3.60GHz 8MB Quad Core LGA1151 Processor CPU
$63.00
![Intel Core i7-14700K - 14th Gen 20-Core (8P+12E) LGA 1700 125W CPU Processor picture](/store/img/jKAAAOSwdVNlLmSw/s-l225//Intel-Core-i7-14700K-14th-Gen-20-Core-8P-12E-LGA-1.jpg)
Intel Core i7-14700K - 14th Gen 20-Core (8P+12E) LGA 1700 125W CPU Processor
$419.99
![Intel Core i9-9900K Processor LGA1151 CPU picture](/store/img/kv4AAOSw6hNkGi0O/s-l225//Intel-Core-i9-9900K-Processor-LGA1151-CPU.jpg)
Intel Core i9-9900K Processor LGA1151 CPU
$259.00