-
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

1969 EAI TR-20 Analog Computer Programming PACE Philbrick Electronic Associates
$32.00

Vintage George A Philbrick Researches Tube Analog Computer Module Serial 005503
$109.99

Refurbished Working 1960's Heathkit EC-1 Educational Electronic Analog Computer
$2999.99

Vintage Early Week 12 1984 Apple Macintosh 128K Computer M0001 w/Analog Board+
$209.99

1979 vintage apple II 2 keyboard Mod CV Control Analog Synthesizer Paia Buchla
$500.00

Apple MAC SE/30 Computer M5119, Vintage, Logic & Analog boards + PSU Recapped
$750.00

Apple II V2 ANALOG VGA & Z80 PCPI Applicard Softcard PicoPal IIe
$56.99

Vintage Goodyear Electronic GEDA Analog Computer Plug -- Extremely Rare
$179.00

1950 High Speed Computing Devices Analog ENIAC UNIVAC EDVAC IBM SSEC Relay Logic
$65.00

Marian Trace 8 PCI 8-In/8-Out Professional Audio Card + Cables Box CD
$249.99