Re: [Dorset] Identifying the drive containing a CD
On Tuesday 04 January 2011, d-...@hadrian-way.co.uk wrote: > On 04 January 2011 at 13:34 Ralph Corderoy wrote: > > Does > > > > ls -l /dev/disk/* > > > > show anything interesting if the CD is in the drive? Perhaps the CD can > > have a label or UUID. You should at least see the CD drive in by-id > > although that won't be useful as part numbers change. > > That comes back with 'No such file or directory'. However: > >ls -l /dev/cdrom* > > on this machine comes back with: > > lrwxrwxrwx 1 root root 8 Jan 4 12:33 /dev/cdrom -> /dev/hdc > > Which at least tells me the device that is available here, but there is no > difference when I put a disc in the hole. I also tried the technique on a > machine with two DVD drives, but this was quite confusing because it > indicated that the cdrom was hdd, but the TC Mount Tool thought that the > CD was in hdc! > The TC Mount Tool may well give sufficient clues though because it seems to > be able to work out what drives the machine has and also the volume names > of each disc in each drive. Maybe the source code for this will let us > into the secret. > > Terry Coles > -- > Next meeting: Crown Hotel, Blandford Forum, Tuesday 2011-01-11 20:00 > Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ > How to Report Bugs Effectively: http://goo.gl/4Xue Pardon if this is irrelevant (because the cd isnt actually mounted!) but if its mounted, surely "mount |grep iso" should give you a line to parse providing the cd device (unless you have more than 1 cd drive - I have:) - & they are both mounted - unlikely) Regards Andy -- Andy Paterson -- Next meeting: Crown Hotel, Blandford Forum, Tuesday 2011-01-11 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
Re: [Dorset] Identifying the drive containing a CD
On Tuesday 04 Jan 2011, Tim wrote: > Today 17:46:16 > Re: [Dorset] Identifying the drive containing a CD > From: Tim > To: Dorset Linux User Group > > On Tuesday 04 January 2011 17:44:25 Tim wrote: > > On Tuesday 04 January 2011 14:27:44 d-...@hadrian-way.co.uk wrote: I was just in the process of replying with a query about that :-) -- Terry Coles 64 bit computing with Kubuntu Linux -- Next meeting: Crown Hotel, Blandford Forum, Tuesday 2011-01-11 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
Re: [Dorset] Identifying the drive containing a CD
On Tuesday 04 January 2011 17:44:25 Tim wrote: > On Tuesday 04 January 2011 14:27:44 d-...@hadrian-way.co.uk wrote: > > On 04 January 2011 at 13:34 Ralph Corderoy wrote: > > > Does > > > > > > ls -l /dev/disk/* > > > > > > show anything interesting if the CD is in the drive? Perhaps the CD > > > can have a label or UUID. You should at least see the CD drive in > > > by-id although that won't be useful as part numbers change. > > > > That comes back with 'No such file or directory'. However: > > > > ls -l /dev/cdrom* > > > > on this machine comes back with: > > > > lrwxrwxrwx 1 root root 8 Jan 4 12:33 /dev/cdrom -> /dev/hdc > > > > Which at least tells me the device that is available here, but there is > > no difference when I put a disc in the hole. I also tried the technique > > on a machine with two DVD drives, but this was quite confusing because it > > indicated that the cdrom was hdd, but the TC Mount Tool thought that the > > CD was in hdc! > > The TC Mount Tool may well give sufficient clues though because it seems > > to be able to work out what drives the machine has and also the volume > > names of each disc in each drive. Maybe the source code for this will > > let us into the secret. > > > > Terry Coles > > -- > > Next meeting: Crown Hotel, Blandford Forum, Tuesday 2011-01-11 20:00 > > Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ > > How to Report Bugs Effectively: http://goo.gl/4Xue > > OK I got this off the net, but could you not ask it for the volume label?? > here the command I found > > /dev/cdrom /mnt/cdrom iso9660 user,exec,dev,ro,noauto 0 0 > OK, ignore the command I copied over the wrong one that the mount command. Tim -- Next meeting: Crown Hotel, Blandford Forum, Tuesday 2011-01-11 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
Re: [Dorset] Identifying the drive containing a CD
On Tuesday 04 January 2011 14:27:44 d-...@hadrian-way.co.uk wrote: > On 04 January 2011 at 13:34 Ralph Corderoy wrote: > > Does > > > > ls -l /dev/disk/* > > > > show anything interesting if the CD is in the drive? Perhaps the CD can > > have a label or UUID. You should at least see the CD drive in by-id > > although that won't be useful as part numbers change. > > That comes back with 'No such file or directory'. However: > > ls -l /dev/cdrom* > > on this machine comes back with: > > lrwxrwxrwx 1 root root 8 Jan 4 12:33 /dev/cdrom -> /dev/hdc > > Which at least tells me the device that is available here, but there is no > difference when I put a disc in the hole. I also tried the technique on a > machine with two DVD drives, but this was quite confusing because it > indicated that the cdrom was hdd, but the TC Mount Tool thought that the CD > was in hdc! > The TC Mount Tool may well give sufficient clues though because it seems to > be able to work out what drives the machine has and also the volume names > of each disc in each drive. Maybe the source code for this will let us > into the secret. > > Terry Coles > -- > Next meeting: Crown Hotel, Blandford Forum, Tuesday 2011-01-11 20:00 > Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ > How to Report Bugs Effectively: http://goo.gl/4Xue OK I got this off the net, but could you not ask it for the volume label?? here the command I found /dev/cdrom /mnt/cdrom iso9660 user,exec,dev,ro,noauto 0 0 Tim -- Next meeting: Crown Hotel, Blandford Forum, Tuesday 2011-01-11 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
Re: [Dorset] Identifying the drive containing a CD
On 04 January 2011 at 13:34 Ralph Corderoy wrote: > Does > > ls -l /dev/disk/* > > show anything interesting if the CD is in the drive? Perhaps the CD can > have a label or UUID. You should at least see the CD drive in by-id > although that won't be useful as part numbers change. That comes back with 'No such file or directory'. However: ls -l /dev/cdrom* on this machine comes back with: lrwxrwxrwx 1 root root 8 Jan 4 12:33 /dev/cdrom -> /dev/hdc Which at least tells me the device that is available here, but there is no difference when I put a disc in the hole. I also tried the technique on a machine with two DVD drives, but this was quite confusing because it indicated that the cdrom was hdd, but the TC Mount Tool thought that the CD was in hdc! The TC Mount Tool may well give sufficient clues though because it seems to be able to work out what drives the machine has and also the volume names of each disc in each drive. Maybe the source code for this will let us into the secret. Terry Coles -- Next meeting: Crown Hotel, Blandford Forum, Tuesday 2011-01-11 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
Re: [Dorset] Identifying the drive containing a CD
Hi Terry, > Plan B was always to write the files to the ISO but outside the initrd > data and then copy them to the running system after boot up. Â The > problem with this is that we need to be able to identify which drive > the CD is sitting in. Â For the most part this is hdc with Tiny Core > systems, but it can be different depending on the type of drive > electronics and the number of drives on the system. > > Is there a way to easily identify the drive that contains the CD once > the system has booted? Does ls -l /dev/disk/* show anything interesting if the CD is in the drive? Perhaps the CD can have a label or UUID. You should at least see the CD drive in by-id although that won't be useful as part numbers change. Cheers, Ralph. -- Next meeting: Crown Hotel, Blandford Forum, Tuesday 2011-01-11 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
[Dorset] Identifying the drive containing a CD
Hi, We're still playing with Tiny Core Linux and are now exploring more ways of adding our own data to the running system from the original CD. You might recall that I was asking some time ago how to write data to the ISO image and rewrite it from a DOS Box. We have found a way to do this, but it has it's own problems because the permissions supported by a Windows machine are less than those in Linux. This makes it difficult to write files into the compressed data that eventually gets written to initrd during boot up. Plan B was always to write the files to the ISO but outside the initrd data and then copy them to the running system after boot up. The problem with this is that we need to be able to identify which drive the CD is sitting in. For the most part this is hdc with Tiny Core systems, but it can be different depending on the type of drive electronics and the number of drives on the system. Is there a way to easily identify the drive that contains the CD once the system has booted? We use a system where everything in the live part of the disc is written to initrd, so the drive is unmounted once booting is complete. However, we still need to know where to look. Terry Coles -- Next meeting: Crown Hotel, Blandford Forum, Tuesday 2011-01-11 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
Re: [Dorset] Music CD's to Disk - Thanks to all
On Mon, 2011-01-03 at 20:57 +, Robert Bronsdon wrote: > On Mon, 03 Jan 2011 20:22:09 -, Peter Merchant > wrote: > > > I notice when I look at the directory on a CD for Full recording that it > > has the full recording in four formats: > > I'm gonna throw caution to the wind and presume this is a "regular" audio > CD and you have some piece of software which is showing you these > different file types as possible transcoding options. I can't imagine any > reason for someone to bundle that lot onto a CD. -- Yes, Regular music CD's that someone paid for once. Im was looking at the contents with Dolphin, the file manager. > > Anyway > > > If I want to save them to my hard disk, which format is recommended? > > The .ogg is the smallest in terms of size, but is there a downside? > > cda is the uncompressed lossless file, these are probably pretty big so we > can ignore these. > wma is an interesting microsoft format and although we could work it out > from the file size we have no idea of the quality, so I'll ignore these as > well. > > leaving us with ogg and flac. Both "free" codecs, good start. Flac is Free > Lossless Audio Codec, the file will contain the same end information as > cda but will compress it. Think like .zip or gzip etc. This should make > the files a little smaller than cda but with the same output. > > Ogg is a free codec very similar to mp3. It does lose some of the sound > quality but this saves huge amounts of disk space. > > The file format you should choose is dependant on why you are copying to > your computer. If its just to listen to the music later then I'd say use > ogg. -- Thanks. That is what I'll do. The computer speakers are not terrific quality. > If you have lots of disk space and a prized stereo connected to the > computer either copy using flac or just play the CD ;) > -- Prized Stereo died a couple of months ago after 35 years of service. My son has taken the nova 88's as they were the last remaining parts of the system. I have a cheapy Sanyo DAB with CD player to replace it, and so can play the original CD's > If you're looking to archive you CD collection then use FLAC. It can be > transcoded back to the original cda anyway. -- Thanks for that. It may be useful in the future. -- Next meeting: Crown Hotel, Blandford Forum, Tuesday 2011-01-11 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue