-
How do I kill automounter? or: Stop the swap, PLEASE!
I have been working on remastering Knoppix for my company's custom needs, and have been through a lot of problems...solved thankfully, through a combination of looking up answers here and elsewhere. Now I have a problem I have not been able to fix: I have to stop Knoppix from auto-mounting any partition on a harddrive, including the swap, hopefully without uninstalling autofs.
Allow me to explain: we use partimage in a script along with sfdisk and dd to (re)image workstations, servers, etc. Everything is automated, so when sfdisk tries to put a partition table onto a disk, it expects the disk to not be in use (I don't want to use the --force parameter for other reasons). Knoppix default CD/DVD automounts the swap partition for speed reasons, I take it. This makes sfdisk bomb out at trying to modify the partition table, but doesn't stop the script. When the script gets to the part of actually using partimage, it bombs out due to the partition not being the right size - of course with no error code whatsoever. Since the sfdisk part of the script went by so fast, tracking down this problem took some time, and led to a wild goose-chase centered around partimage's functionality.
What I have done in subsiquent Knoppix remasters is to turn off the autofs script and remove it from init.d. This stops autofs from starting at boot, or so I thought. When I do a ps auxw, there sits automount, all fat and happy. The strange thing is that it now does not mount swap partitions - at least not at boot. It will however mount swap partitions JUST AFTER sfdisk modifies and writes the partition table back to disk! This does not interfere with our script, thank goodness, but still is puzzling, and leaves open the question that if we modify our scripts in future will this behaviour be a detrement. How the hell did the automount daemon run if it was not even in the init.d? I have scanned the knoppix-autostart file, but I can't find anywhere to change it there either. I would just like to kill it, possibly uninstall it, but I think Knoppix depends on automount a bit too much for that radical of a fix.
Any thoughts?
Similar Threads
-
By posmanet in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 06-22-2006, 06:54 PM
-
By xudzh in forum Hardware & Booting
Replies: 3
Last Post: 05-27-2006, 06:20 PM
-
By ar0ne in forum General Support
Replies: 0
Last Post: 12-15-2005, 06:40 AM
-
By jdohrmann in forum German Forum
Replies: 0
Last Post: 04-04-2005, 11:58 AM
-
By Decibels in forum General Support
Replies: 1
Last Post: 01-04-2005, 04:11 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

NEW Cisco Meraki MS130-48P-HW 48-Port Gigabit PoE+ Cloud Manage Switch UNCLAIMED
$2999.99

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99

Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module
$699.99

Cisco Catalyst C9130AXI-B WiFi 6 802.11ax Wireless Access Point Brand New
$101.99

6x OEM Legit NEW Cisco QSFP-100G-SR1.2 100G BiDi Transceivers USA shipping
$3000.00

Cisco Nexus N9K-C92160YC-X 48P 25GbE SFP28 6P QSFP+/QSFP28 PE Switch
$439.00

Cisco C9200L-24P-4G-E v03 28 Port PoE+ Ethernet Network Switch
$974.99

Cisco | N3K-C3232C | 32-Port 100G QSFP Network Switch W/ 2x PSU, 2x Power Cords
$240.00

NEW Sealed Cisco SFP-10G-LR 10GBASE-LR SFP+ 1310nm 10km *US Shipping*
$24.00

Cisco IP Phone CP-8821 No Battery C2-F3
$185.00