| Author |
Message |
ljones
Joined: 10 May 2005 Posts: 47
|
Posted: Mon 27 Jun 2005, 17:03 Post subject:
Automounting cdroms in puppy? |
|
I wonder if this program would be of any use to help auto-mount cdrom drives in puppy? I just spotted it on freshmeat
http://freshmeat.net/projects/autoejectcdrom/?branch_id=59003&release_id=200107
http://psydev.sourceforge.net/new/auto-eject-cdrom/
I've also compiled it, stripped and UPX'd it (and attached here) to make it smaller (though it was only about 16K to start off, but now it's ~4K - the same amount of memory as 4 ZX81s ).
ljones
| Description |
|

Download |
| Filename |
eject.zip |
| Filesize |
4.63 KB |
| Downloaded |
470 Time(s) |
|
|
Back to top
|
|
 |
EarlSmith
Joined: 05 May 2005 Posts: 197 Location: Chelsea, Alabama, USA
|
Posted: Mon 27 Jun 2005, 23:29 Post subject:
|
|
Since you remember z81s, do you also remember the vic20. I owned both and they met the same fate. Both were placed on the floor and jumped up and down on until they were dead. Then more jumping until they really, really were dead!
I must have wasted hundreds of hours on those two machines.
Then I got a c64 - - , and I still have it. At the time, a really good computer.
|
|
Back to top
|
|
 |
nduanetesh
Ultra Super-stud
Joined: 05 May 2005 Posts: 168
|
Posted: Wed 29 Jun 2005, 09:10 Post subject:
|
|
I tried this little proggie on my laptop, and it did automount CDroms. Pretty cool. What was uncool, though, is that it would not unmount then when I pushed the drive's eject button. So, I had to manually unmount the CD and then eject the disc. I don't know if my lappy uses some nonstandard "eject" protocol, or if it was actually a problem with the program. And I haven't had a chance to test it out on my other computer...
But, it looks like it would be good. I know a lot of people have been asking about automounting drives...
ND
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9842 Location: Arizona USA
|
Posted: Wed 29 Jun 2005, 15:59 Post subject:
|
|
That's the thing about mounting a CD: you can't eject it until it is unmounted. Presumably there is some housekeeping that the OS must do to properly unmount a filesystem, which ejecting a mounted CD would screw up...
If anyone finds a better explanation, I'd be happy to see it.
|
|
Back to top
|
|
 |
Ian
Official Dog Handler

Joined: 04 May 2005 Posts: 1237 Location: Queensland
|
Posted: Wed 29 Jun 2005, 17:11 Post subject:
|
|
It would be like ejjecting a floppy part way through a file transfer, same result.
|
|
Back to top
|
|
 |
nduanetesh
Ultra Super-stud
Joined: 05 May 2005 Posts: 168
|
Posted: Wed 29 Jun 2005, 23:14 Post subject:
|
|
but the point of this little program is that it's supposed to notice you hit the "eject" button, unmount the CD and then spit it out. From the website:
Auto-eject-cdrom is a very small C application that handles CD-ROM events in Linux. If new media is inserted in a CD-ROM drive, it is automatically mounted based on a matching entry in /etc/fstab. If a CD-ROM is mounted and the eject button is pressed, the filesystem is umounted and ejected. This allows for the same basic functionality Windows allows with the CD-ROM eject button.
So...yes, I realize that a CD is supposed to be unmounted before it can be ejected, but with this program it's supposed to happen automagically. And at least in the case of my laptop, it doesn't.
ND
|
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Thu 30 Jun 2005, 00:14 Post subject:
|
|
you can mount and unmount the cd drive by holding the shift key and clicking the cdrom folder (in rox)
this is not mounting automatically, of course
the first distro i got to work with my hardware was Mandrake ... i quickly learned to hate automounting and always disabled it
i also remember how searching for files in Konqueror would fill up my ram and swap, slowing down the computer so much that i had to hit the reset button on the tower to be able to reboot ... locate or find worked with no problems
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10817 Location: The Peoples Republic of California
|
Posted: Wed 20 Jul 2005, 02:35 Post subject:
|
|
| GuestToo wrote: | you can mount and unmount the cd drive by holding the shift key and clicking the cdrom folder (in rox)
|
I am astonished at how much you know and remember.
For some reasons, one of which is speed, I like working in the command line, and running applications that run from the command line such as: Midnight Commander and Minimum Profit.
I unmount the cdrom device by typing eject, if i want it to eject.
If I just want it to unmount I just type ucdrom (an alias)
alias ucdrom='umount /mnt/cdrom'
Naturally, I mount them the same
alias mcdrom='mount -t iso9660 dev/cdrom /mnt/cdrom'
Actually, the alias I really use is not the generic one above, because it doesn't work on my computer, but it would probably work on most computers.
alias mcdrom='mount -t iso9660 /dev/hdd /mnt/cdrom;cd /mnt/cdrom'
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Wed 20 Jul 2005, 05:05 Post subject:
|
|
| GuestToo wrote: |
the first distro i got to work with my hardware was Mandrake ... i quickly learned to hate automounting and always disabled it
|
tee hee
Still not clear of any merits of mounting. This is what I now believe - please correct if I am wrong.
If a file/drive is to be available at all times then it has to seen and take up clock cycles. In the Olde days of computing such clock cycles were precious so you only mounted or made the OS aware of a device when required.
We have move on. I have heard no sensible reason (people have tried) for mounting.
I am so happy with MUT from Jesse (built into Pup 1.0.4 and in tcl) - it at least makes mounting tolerable
As we of a penguin disposition say, "something is fishy"
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9842 Location: Arizona USA
|
Posted: Wed 20 Jul 2005, 15:57 Post subject:
|
|
I agree. MUT is a great improvement. It at least gives the impression of intimate control of the computer, which is something I have always wanted but haven't felt with any other OS. The difference between a computer with Windows or Mandriva, and a computer with 1.0.4 Puppy with MUT, is like the difference between riding in a bus or driving a sports car.
|
|
Back to top
|
|
 |
JohnMurga
Site Admin

Joined: 04 May 2005 Posts: 581 Location: Far to the east
|
Posted: Wed 20 Jul 2005, 16:10 Post subject:
|
|
Hopefully I'll even get to try it tonight
Cheers
JohnM
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10817 Location: The Peoples Republic of California
|
Posted: Thu 21 Jul 2005, 17:16 Post subject:
|
|
| Lobster wrote: | Still not clear of any merits of mounting. This is what I now believe - please correct if I am wrong.
|
It is not a case of being wrong. Considerations have more to do with the layout of one's system, where you have disk space, the kind of work one is doing on, what you need and such factors.
A case in point. I just ripped a CD-ROM, this took about 700 MB disk space. (I don't have big hard drives either.)
I had about 2GB free space on hda7 and not enough space on other partitions to rip a CD.
Okay, so I must rip to hda7
I decode the .wav to .mp3s in RAM, it is faster and saves head movment on the drive.
I store the mp3s on hdc5, so I copied the mp3s from RAM to the appropriate directory on hdc5.
I use hdc5 for non programs, downloading .iso file and other files.
Hdc5 is in a sense a storage drive and the computer can run fine if I pull it out.
It is also a working drive for building packages and compiling and etc.
Anytime I download a file it goes on hdc5, so I want it always mounted and accessible.
Puppy is installed on hda6 along with Suse and there is not much room on that partition for much of anything very large.
FYI the hard disks are each 8GB - not large by today's standards. hda needs separate partitions as it hosts 4 operating systems.
Also, I share major applications between all the Linux installations and the applications may be on another partition depending on the Linux I'm running and of course that device must mounted in order to use it.
|
|
Back to top
|
|
 |
|