you removed the OS from the computer, the system is too stupid to know that (yet) and has simply not died. if it had realized that it would have crashed. but as most tings are in RAM it will keep on as if nothing has changed.
hi all,
I wrote an application to calculate the size of storage device... i put that application in knoppix. For every device it is giving the size correctly, i ejected the cd using
umount -l /cdrom
eject /dev/cdrom
and put a new cd. and tried to calculate the size, but the size it gives is that of the knoppix cd. i put many cd's with vaarying sizes, but it is giving the size of the knoppix cd. what is wrong??/ please suggest..
regards vijir
you removed the OS from the computer, the system is too stupid to know that (yet) and has simply not died. if it had realized that it would have crashed. but as most tings are in RAM it will keep on as if nothing has changed.
but it is possible to play music cd.... so the os is identifying that cd.... then why the size is not reporting correctly....
"play music CD" , say what you mean pls. That is not a linux command and no-one can guess what you are doing.
since you do not mount on audio CD in order to "play" it that does not contradict what was posted before.
If your OS is running from CD, you can't remove it (GNU/Linux is smart enough to disallow it -- that why it has the mount tools and windows doesn't). So, it sounds like your using "toram" boot option, and then playing a music CD once you remove the KNOPPIX disk. How are you getting size for the disk? du, df or ls? remember that ls on a directory will not return the size of the things in the directory. Moreover, you can't normally mount a music CD as a filesystem...
Actually, with Knoppix, presuming you have enough memory, you can load k3b, physically force the Knoppix CD to eject, and then burn a CD image. This is because the needed stuff is in memory, so the CD doesn't have to be there. Your running Knoppix will be hosed after doing this, but it can be done.
Two problems with that approach.Originally Posted by mcreel
- 1 - cloop file system is not all loaded to memory on boot, but when you need something out, if you access a program not in memory, it'll crash. It's why Knopper used cloop in the first place, and other live distros use squash for the same reason.
- 2 - It will still think cloop/cdrom are mounted, and breaking a mount in such a way is highly discouraged.
- 3 - Not needed, just use the toram boot option at the boot prompt, and then you can eject the CD normally and safely
- 4 - Manual hardware eject done repeatly shortens the life of the drive and the disk

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor
$114.99
Used PC Corsair Vengeance Intel i7-4770 3.40GHz 16GB DDR3 Gtx 1050 Ti Msi
$135.00
INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH
$179.99
Intel Core i5-12400 CPU 2.50GHz 6-Core 12-thread SRL5Y LGA 1700
$121.99
Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151
$79.99
Intel Core i7-3770K 3.5 GHz Processor
$39.00
Intel Core I7-7700 SR338 3.60 Ghz Processor
$39.99
Intel Core i7-7700K SR33A 4.20GHz 4-Core LGA1151 CPU Processor
$62.95
Intel Core i7-4770 3.40GHz Quad Core SR149 LGA 1150 CPU Processor tested
$35.00
AMD - Ryzen 7 5800X3D 8-Core - 16-Thread 3.4 GHz (4.5 GHz Max Boost) w/ Ice Pad
$355.99