WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: cdrom not detecte  (Read 5566 times)

Offline T-one

  • Newbie
  • *
  • Posts: 10
cdrom not detecte
« on: August 11, 2018, 12:47:46 AM »
Hi all,
I have managed to install tinycore on the harddrive of my first laptop. So far things come along quite nice.
I have never used busybox before and would like to give it a try. I'm unable to use my cd drive, can't find it in the file system.
How can I get hardware information in BusyBox? eg lshw?
I had installed from USB disk and never payed attention to the CDROM. It spins when I put a disk in.
Any suggestions on how to tackle this?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: cdrom not detecte
« Reply #1 on: August 11, 2018, 01:06:20 AM »
Hi T-one
Quote
I'm unable to use my cd drive, can't find it in the file system.
Click on the  Mount  icon (looks like a hardrive). When the mount app pops up, try clicking on  sr0  to mount the CD. It should
then be accessible through  /mnt/sr0.

Quote
How can I get hardware information in BusyBox? eg lshw?
Click on the  Apps  icon and install  lshw.tcz.  You might also find  pci-utils.tcz  and  usbutils.tcz  of interest.

If you want to see what  busybox  provides, enter  busybox  at the command line.

Offline T-one

  • Newbie
  • *
  • Posts: 10
Re: cdrom not detecte
« Reply #2 on: August 11, 2018, 11:02:50 PM »
I had tried to mount the drive with no cd in it.  I'm migrating from Windows  ;D

But still not out of the woods.
Code: (bash
) [Select]
tc@box:~$ eject /mnt/sr0
eject: /mnt/sr0: Inappropriate ioctl for device

I can view the directories but cannot load the files in VLC etc.
VLC and Brasero report similar errors and make references to log files.

Code: (bash) [Select]
cd /var/log
total 4
-rw-r--r--    1 root     root             0 Aug 11 19:39 autologin
-rw-rw-r--    1 root     staff         2304 Aug 11 19:45 wtmp


Not helpful.  What is staff? it's not a directory? 
Where would extensions put their log files?

Also, how can I assign a file type to  a program, eg video --> VLC  ,  png --> xzvg etc.

Regards,

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: cdrom not detecte
« Reply #3 on: August 11, 2018, 11:23:03 PM »
Hi T-one
Quote
I had tried to mount the drive with no cd in it.  I'm migrating from Windows
You can't mount it without a CD in it.

Quote
Code: [Select]
tc@box:~$ eject /mnt/sr0
eject: /mnt/sr0: Inappropriate ioctl for device
Try:
Code: [Select]
eject /dev/sr0

Offline T-one

  • Newbie
  • *
  • Posts: 10
Re: cdrom not detecte
« Reply #4 on: August 12, 2018, 01:37:02 AM »
Hi Rich, thanks for your reply,
eject  /dev/sr0  worked.
However, it locks up the CD drive.  After inserting a new disc, I'm unable to remove the disc.  Pushing the button on the caddy does nothing either.
Rebooting will let me mount the drive once again. But.....

Code: (bash) [Select]
tc@box:~$ eject /dev/sr0
tc@box:~$ mount /mnt/sr0
mount: mounting /dev/sr0 on /mnt/sr0 failed: Input/output error
tc@box:~$ mount /mnt/sr0
mount: mounting /dev/sr0 on /mnt/sr0 failed: Input/output error
tc@box:~$ umount sr0
umount: can't unmount sr0: Operation not permitted
tc@box:~$ umount /dev/sr0
umount: can't unmount /dev/sr0: Operation not permitted
tc@box:~$ sudo umount /mnt/sr0
umount: can't unmount /mnt/sr0: Invalid argument
regards

Offline Pats

  • Sr. Member
  • ****
  • Posts: 322
Re: cdrom not detecte
« Reply #5 on: August 12, 2018, 03:30:27 AM »
Quote
..However, it locks up the CD drive.  After inserting a new disc, I'm unable to remove the disc.  Pushing the button on the caddy does nothing either.Rebooting will let me mount the drive once again. But.....

...
Quote
umount: can't unmount /mnt/sr0: Invalid argument.
   

 ..My experience :
In old linux distros , not able to eject a CD/DVD ROM was a bug. In new distros, it was posible to eject CDROM *with a CD in the drive* , but once the CD/DVD ROM is used to write a CD/DVD , then the eject function stops working, untill the reboot system. Also a bad storage media - like corrupt cd / dvd can cause this problem...

Sometime following was useful :
1) In the Terminal, type: sudo eject -i off 
2) Go to file manager and right-click the CD/DVD drive and select "eject"

Offline Nathan_SR

  • Jr. Member
  • **
  • Posts: 82
    • Quick-Save-Live
Re: cdrom not detecte
« Reply #6 on: August 12, 2018, 06:01:09 AM »
Hi T-one,

After a fresh restart of the system, install and use spacefm file manager, to solve all your, problems reported above, viz :

1. Type /mnt in its address bar, press enter key and then right click sr0 to eject it
2. Double click files and create private file associations in it, for opening with specific applications
3. Customise everything in this FM including no. of panels, their widths, edit menu - preferences etc
4. Finally take a backup with the filetool to save all these settings

spacefm resembles windows explorer in all aspects and much more. I thank the tiny core team for preserving this wonderful application.
« Last Edit: August 12, 2018, 06:03:57 AM by Nathan_SR »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: cdrom not detecte
« Reply #7 on: August 12, 2018, 08:49:53 AM »
eject  /dev/sr0  worked.
However, it locks up the CD drive.  After inserting a new disc, I'm unable to remove the disc.  Pushing the button on the caddy does nothing either.
Rebooting will let me mount the drive once again. But.....
I don't know why your drive "locks up", but you can't mount a blank disc.

Offline T-one

  • Newbie
  • *
  • Posts: 10
Re: cdrom not detecte
« Reply #8 on: August 16, 2018, 11:39:32 PM »
Thanks for all your contribution.
Ok, I have transpired all your suggestions and I have made some progress.
Installing SpaceFM went very smooth. This is a nice file manager but it will take me a while to completely configure.
However, my problem is still present. I tried a photo cd and I can mount and view pictures by clicking on the pictures,
the pictures willl open in xzgv as you would expect. I can remove and install the disk as expected. However, I cannot
umount the drive. Manually ejecting disk (button on caddy) works, but mount tool always shows SR0 as mounted.
Installing a DVD (commercial movie) mount tool says drive is mounted SpaceFM lists SR0 as not mounted. Movie does not starts,  no output. Starting VLC  and navigating to SR0 shows no media.
Code: (bash) [Select]
tc@box:~$ umount /dev/sr0
umount: /dev/sr0: not mounted.
tc@box:~$ mount /dev/sr0
mount: /mnt/sr0: can't read superblock on /dev/sr0.
tc@box:~$ mount /dev/sr0
mount: /mnt/sr0: can't read superblock on /dev/sr0.

Code: (bash) [Select]
*-cdrom
             description: DVD-RAM writer
             product: CD/DVDW TS-L632D
             vendor: TSSTcorp
             physical id: 0.0.0
             bus info: scsi@3:0.0.0
             logical name: /dev/cdrom
             logical name: /dev/dvd
             logical name: /dev/scd0
             logical name: /dev/sr0
             version: TO04
             capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
             configuration: ansiversion=5 status=open

Once movie is removed drive is locked until reboot

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: cdrom not detecte
« Reply #9 on: August 17, 2018, 12:09:11 AM »
Hi T-one
Quote
... Manually ejecting disk (button on caddy) works, but mount tool always shows SR0 as mounted. ...
You can't eject a mounted device, so the CD was not mounted when you pressed the button. The mount tool does
not auto update if a device is unmounted by another means. Clicking the mount tools  Refresh  button will make it
display correctly again.

Offline T-one

  • Newbie
  • *
  • Posts: 10
Re: cdrom not detecte
« Reply #10 on: August 26, 2018, 09:24:24 PM »
I have verified that cdrom works for data and pic files. can access and open files from command line. Ejecting and re inserting disks for these file types works. This works for commercial cd's as well as for home spun disks.

When inserting a movie or music cd(commercial disks) I have no control over cd drive. Can't cd to the sr0 nothing.
I googled quite extensively and found a thread on Ubunto forum relating to this bug. The solution apparently is to revert to a earlier package.

I'm abandoning this thread for now. The suggested fix is beyond my current knowledge of linux. Hoever, I will continue to explore Tinycore with this test laptop.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: cdrom not detecte
« Reply #11 on: August 27, 2018, 12:40:52 AM »
Hi T-one
... When inserting a movie or music cd(commercial disks) I have no control over cd drive. Can't cd to the sr0 nothing. ...
Audio/video discs don't have mountable file systems and are not browse-able that way. You need to use a music or video
program to access the contents.