-
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
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
$5775.00
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
$215.00
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
$129.00
DEC DIGITAL VINTAGE M8972
$47.00
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"
$269.99
VINTAGE DEC Digital RK11-D DISK CONTROL M7255 PDP 11 (B1)
$129.99