turning off harddisk and listen music from ramdisk under Linux
Hi guys,
I want to use a PC to listen mp3-music. Therefore I have to buy a new harddisk.
I use Linux and I want to turn off all harddisks while listening, because
they are so noisy. My plan is to let some homegrown software regularly copy the music data
from a harddisk to a ramdisk and to turn off the harddisk then. Then I would
listen from the ramdisk.
My questions:
- is this possible?
- how do I turn off a harddisk from software under Linux?
- do I have to buy a special harddisk?
- how does linux react on turning off all harddisks? Can I cut away any superfluous stuff like CRON and let Linux also run on a ramdisk? Or do I need some special embedded Linux distribution?
- or is there a readymade solution?
There are the following circumstances:
- for religious reasons I only use _old_ hardware (64MB, 100Mhz)
- I am planning to have a boot partition just for the sole purpose of listening to music
- I want to keep this boot partition small: no X windows stuff, no network and so on. The system should start up very fast.
- I have a SuSE Linux distribution on CD Rom. I only have a 56K modem. I don't want to download software for hours.
Any help would be appreciated.
cheers
Martin
Quoted 1 line · Martin Wierich
- for religious reasons I only use _old_ hardware (64MB, 100Mhz)
Note that you'll only be able to fit an hour or so of music in there, and figuring out how to switch playlists is left as an exercise for the masochists. :)
Other than that, it's pretty straightforward conceptually - just create a very minimal kernel that supports only your sound card and whatever else you need, boot it with 'init=/boot/music.sh' or similar, and have music.sh be a tiny script that mounts your music stuff, copies the files to a ramdisk, then unmounts the disk and does an hdparm command to spin it down.
If you're clever, you'll think of a way to have an initrd that has all the filesystem you need on it, except maybe for the actual audio that you'll load from another disk.
Quoted 2 lines · On Nov-02 2003, Sun, 23:04 +0100 Martin Wierich <[email protected]> wrote:
I use Linux and I want to turn off all harddisks while listening, because they are so noisy.
Just get a recent Seagate Barracuda drive and enjoy the silence.
Signature · 1 line
Tomas Szepe <[email protected]>
for overall project assistance:
for turning off hard drive after a song load:
hdparm -Y /dev/hdX
for a ramdisk:
mount -t tmpfs none /mnt/ramdisk
or add this to /etc/fstab:
none /tmp/jack tmpfs defaults 0 0
Quoted 37 lines · Martin Wierich
Hi guys,
I want to use a PC to listen mp3-music. Therefore I have to buy a new harddisk.
I use Linux and I want to turn off all harddisks while listening, because
they are so noisy. My plan is to let some homegrown software regularly copy the music data
from a harddisk to a ramdisk and to turn off the harddisk then. Then I would
listen from the ramdisk.My questions:
- is this possible?
- how do I turn off a harddisk from software under Linux?
- do I have to buy a special harddisk?
- how does linux react on turning off all harddisks? Can I cut away any superfluous stuff like CRON and let Linux also run on a ramdisk? Or do I need some special embedded Linux distribution?
- or is there a readymade solution?There are the following circumstances:
- for religious reasons I only use _old_ hardware (64MB, 100Mhz)
- I am planning to have a boot partition just for the sole purpose of listening to music
- I want to keep this boot partition small: no X windows stuff, no network and so on. The system should start up very fast.
- I have a SuSE Linux distribution on CD Rom. I only have a 56K modem. I don't want to download software for hours.Any help would be appreciated.
cheers
Martin