-
ok, I have done this, and it ALMOST works 
Code:
#!/bin/bash
#find the "# Added by KNOPPIX" line
grep -A 1 "KNOPPIX" /etc/fstab | grep dev | cut -c1-9 > drivelist
# read a line at a time
cat drivelist | while read line;
do
# increment a variable for sequential mount points
let "a += 1"
# make mountpoint
mkdir -p "/scanmount/drive"$a
# now mount that drive
mount ${line} /scanmount/drive$a
done
the problem is knoppix needs a filesystem type, so now I have to get it to search the same file/line for the characters between the 2nd and 3rd blank space on the same line...
I wonder if there's simpler way to just get Knoppix to automount them, rather than listing noauto in fstab?
Similar Threads
-
By luka in forum Hardware & Booting
Replies: 2
Last Post: 07-23-2008, 03:48 PM
-
By A. Jorge Garcia in forum General Support
Replies: 10
Last Post: 02-28-2006, 11:13 PM
-
By cfish in forum Hdd Install / Debian / Apt
Replies: 6
Last Post: 03-26-2005, 02:04 AM
-
By mahdi in forum General Support
Replies: 3
Last Post: 04-18-2004, 07:50 PM
-
By audioaficionado in forum Customising & Remastering
Replies: 0
Last Post: 03-29-2003, 06:50 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

QNAP TR-004 4-Bay USB RAID Enclosure w/16TB disk (4x4TB WD Red NAS Drives) - DAS
$400.00

HP controller P3410-69003 NetRAID-1M SCSI 64-bit U160 32MB Cache (PCI)
$359.00

1 Dell Ultra SSD M.2 NVMe PCI-Express x16 Solid State Storage Adapter Card 6N9RH
$59.99

Dell PowerVault MD3000i AMP01 Storage Array 2x PSUs No HDDs/Controllers/Caddies
$144.95

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller
$64.99

OWC Mercury Elite Pro Quad 4 Bay RAID Storage Enclosure USB 3.1 Gen 2 No Drives
$149.95

MegaRAID 9580-8i8e 16-port 12G SAS/SATA/NVMe 8GB PCIe RAID - 05-50076-00
$1610.00

Inspur LSI YZCA-00424-101 12Gbps SAS 3.0 RAID Controller CARD HBA HDD
$14.99

HighPoint RocketStor 6114V 4-Bay USB-C SATA RAID STORAGE ENCLOSURE
$140.00

Broadcom LSI Avago RAID card MegaRAID SAS 9480-8i8e 05-50031-00
$400.00