eject calls umount so it's expected that the drive in not accessible afterwards.
please be more precise if expect someone else to understand what is happening. (You may also end up answering you own question while doing so.)
hi all,
I have wrote a c program to eject cd's , when i connect a usb cd drive, and run the program, the cd tray peeps out a bit and enter back into the drive... After that when i try to access the drive it is giving error. But if i use the eject command at terminal it works properly...
i use the following code...
.
.
system(eject);
plz help... what could be wrong
thanking in advance...
eject calls umount so it's expected that the drive in not accessible afterwards.
please be more precise if expect someone else to understand what is happening. (You may also end up answering you own question while doing so.)

Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700
$289.99
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 R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD
$99.99
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD
$378.93
Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD
$149.99
Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$409.99
Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays
$599.99
Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD
$119.99
Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM
$699.00