I want to know how knoppix detects hard disks drives (optical drives) and automaticaly create fstab entry, and than automaticaly mount ? does it use some script or something for that ?
I want to know how knoppix detects hard disks drives (optical drives) and automaticaly create fstab entry, and than automaticaly mount ? does it use some script or something for that ?
>>
I want to know how knoppix detects hard disks drives
>>
Good question ...
Normally, when the kernel boots, it will get to a stage were it will remount the root file system read/write, then continue on to complete its' initialisation. It needs to do that so it can log the final stage. And it needs to do some sought of 'root' mount in order to find an init program/script to run, to govern its' initialisation.
Before it actually does that remount it will need to read the boot drives partition table. From which it gets its' device mappings. That is ... sector addressing info. It will actually read the partition table associated with any hd plugged in.
I can't be certain as to how it actually detects other dives, such as cd/dvd drives. Possibly by probing, or possibly via the bios.
Thats the general process as per your basic hd installed distro.
Knoppix, being a livecd will obviously involve a variance on that process. It will need to write a fstab file at an early stage so i guess it must also involve some specialised scripting as well.
jm
o, yes. I am trying to find that script which creates fstab entries. And I am not succesful with that. Do you or anyone else maybe know where is that script or scripts ?
Sorry for late response,
I think you may be refering to the scripts found in /etc/init.d
The init program will run those just after the kernel has finished loading and the root partition has been remounted read/write.
Specifically you would want to look for the file called ' knoppix-autoconfig'. As i have a vague memory of it mentioning something about writing fstab. It would need to be verified though.
Also have a look at /etc/inittab which the init program will read to govern its' operation.
jm

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD
$378.93
Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00
Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb
$374.99
Dell PowerEdge R240 Intel Xeon E-2224 3.50GHz 8GB DDR4 ECC NO HDD 250W
$285.97
Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700
$289.99
Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD
$149.99
Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays
$599.99
Dell Poweredge R630 2x Intel Xeon E5-2650 v4 64GB RAM No Drives/OS Server
$490.00
Dell Poweredge R630 2x Intel Xeon E5-2650 v4 32GB RAM No Drives/OS Server
$325.00
Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD
$99.99