-
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
![Juniper Networks MX80-AC Router 4 Port XFP 10G MIC-3D-200E-SFP picture](/store/img/g/WQAAAOSwgCdmfd3B/s-l225/Juniper-Networks-MX80-AC-Router-4-Port-XFP-10G-MIC.jpg)
Juniper Networks MX80-AC Router 4 Port XFP 10G MIC-3D-200E-SFP
$600.00
![Juniper Networks EX2300-C-12T Compact 12-Port EX2300-C Series Ethernet Switch picture](/store/img/g/Dh4AAOSw3Chmbx7U/s-l225/Juniper-Networks-EX2300-C-12T-Compact-12-Port-EX23.jpg)
Juniper Networks EX2300-C-12T Compact 12-Port EX2300-C Series Ethernet Switch
$300.00
![Juniper Networks EX3300-24P | 24 Port Gigabit Network Switch w/ Power cord picture](/store/img/g/MswAAOSwuMBl7vhO/s-l225/Juniper-Networks-EX3300-24P-24-Port-Gigabit-Networ.jpg)
Juniper Networks EX3300-24P | 24 Port Gigabit Network Switch w/ Power cord
$53.99
![Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch picture](/store/img/g/QUAAAOSw9lllAhVU/s-l225/Juniper-Networks-EX3300-EX3300-48P-48-Port-Gigabit.jpg)
Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch
$59.95
![Juniper EX3400-48P 48-Ports PoE+ 4x SFP+ and 2x QSFP+ Managed Switch Tested picture](/store/img/g/INMAAOSw6ydmBcA-/s-l225/Juniper-EX3400-48P-48-Ports-PoE-4x-SFP-and-2x-QSFP.jpg)
Juniper EX3400-48P 48-Ports PoE+ 4x SFP+ and 2x QSFP+ Managed Switch Tested
$135.00
![Juniper Networks EX2200-C-12P-2G Gigabit Ethernet Managed Switch picture](/store/img/g/dbUAAOSwFd1mey3A/s-l225/Juniper-Networks-EX2200-C-12P-2G-Gigabit-Ethernet-.jpg)
Juniper Networks EX2200-C-12P-2G Gigabit Ethernet Managed Switch
$79.99
![Juniper Networks EX3300-48T 48 Port Gigabit 4x 10 GbE SPF+ Ports Switch - Tested picture](/store/img/g/GiEAAOSwPFhgSVQ1/s-l225/Juniper-Networks-EX3300-48T-48-Port-Gigabit-4x-10-.jpg)
Juniper Networks EX3300-48T 48 Port Gigabit 4x 10 GbE SPF+ Ports Switch - Tested
$40.00
![Juniper Networks EX4300-48T 48 Port Gigabit 4 QSFP 40G 2xPSU AFO Network Switch picture](/store/img/g/QjEAAOSwFQhl6OOr/s-l225/Juniper-Networks-EX4300-48T-48-Port-Gigabit-4-QSFP.jpg)
Juniper Networks EX4300-48T 48 Port Gigabit 4 QSFP 40G 2xPSU AFO Network Switch
$89.00
![Juniper Networks EX4400-48MP 48 port 5GbE + 12 port 10 Gigabit PoE++ Switch -NEW picture](/store/img/g/QesAAOSw07hmSVQ3/s-l225/Juniper-Networks-EX4400-48MP-48-port-5GbE-12-port-.jpg)
Juniper Networks EX4400-48MP 48 port 5GbE + 12 port 10 Gigabit PoE++ Switch -NEW
$1200.00
![Juniper Networks SRX220 8-Port Gigabit Services Gateway Security Appliance picture](/store/img/g/W6sAAOSwwFFkHGrv/s-l225/Juniper-Networks-SRX220-8-Port-Gigabit-Services-Ga.jpg)
Juniper Networks SRX220 8-Port Gigabit Services Gateway Security Appliance
$45.00