Check for prescense of CD/DVD
Is there a way to check if there is a CD/DVD in /mnt/sr0/?
|
Try
Code:
probedisk Also. Is there a CD/DCD drive wizard on the setup menu. Pupinfo comes to mind. Might help, or not. http://puppylinux.org/wikka/HowToDetectDevices |
I forgot to put in my post that I needed to check using a bash script.
|
Code:
findmnt /dev/sr0 |
I do not have findmnt nor does Puppy Package Manager have it.
I will look around. |
What about the find command i.e.
find -s /dev/sr0 |
find: unknown predicate `-s'
|
Sorry I meant file not find...
|
With a DVD in the drive, it gives this.
# file -s /dev/sr0 /dev/sr0: ISO 9660 CD-ROM filesystem data 'CDROM With no DVD... # file -s /dev/sr0 /dev/sr0: writable, no read permission It looks like a script that looks and finds 'writable' would indicate an empty drive. |
I've never tried with an audio CD so not sure what file will output. Typical disc filesystems are either ISO9660 or UDF. cd-info is another utility but do not know if available on puppy.
|
Quote:
Code:
which findmnt |
Thanks I installed it.
findmnt /dev/sr0 does not return anything on a CD that has files on it. No icon appears on the desktop when a CD is inserted.?? Mount will mount it, but still no icon on desktop ? |
Is the CD a music CD as they don't have 'real' file system and so findmnt will return nothing and you wont get a cd on your desktop, so for instance when I insert a dvd I get
Code:
keithhedger@LFSCerebro:~-> findmnt /dev/sr0 |
It's a data CD with no music on it.
|
Then it should mount OK this must be a puppy linux thing, which I can't help you with, its probably just a permissions thing, you may need to add yourself to a specific group to be able to mount cdroms eg group 'cdrom'.
Try mounting it manually and see what happens. |
All times are GMT -5. The time now is 01:11 PM. |