WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Which mode to chose?  (Read 2677 times)

Offline effo

  • Newbie
  • *
  • Posts: 1
Which mode to chose?
« on: August 25, 2010, 04:58:05 AM »
Hi all,
I want to use TC on an old laptop, acting as a poor man's "internet radio". As a "proof of concept" I've tried this on another machine running sidux (a Debian based distro). That machine boots to init 3 and then the user is able to start listening. The "radio" is started by running a bash-script. As input to the script, the user specifies an argument, which specifies which "channel" to play. Based on the input to the script, the script uses vlc to start playing a stream from a given url.

Now I want to setup something like this using TC. This is how I would like it to work:
- Boot TC from CD
- Load apps (vlc and dependencies) from HD to RAM and unmount HD (this is useful because if there is nothing mounted, the user can just pull the power, no need to shutdown nicely to unmount disk)
- Load the "radioscript"

I tried this last week with a machine in hybrid mode. It worked very well, but I think it would be very nice if it was possible to run the system from a CD and also run completely in ram to avoid unmounting stuff.

After reading the "Core Concepts" page, it seems like the Copy Mode is the most appropriate mode for this setup, is this correct?

What do you all think of this setup, will it work, or are there any obvious pitfalls?

Thanx in advance

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Which mode to chose?
« Reply #1 on: August 25, 2010, 08:17:19 AM »
As long as there's enough ram, should work fine.

Yeah, PPR + copy2fs.flg loads the extensions to ram. IIRC the hd isn't automatically unmounted after that, so you'd need to do that before starting your script.
The only barriers that can stop you are the ones you create yourself.

Offline lovenini

  • Newbie
  • *
  • Posts: 11
Re: Which mode to chose?
« Reply #2 on: August 26, 2010, 11:51:25 PM »
hello, I tried
cd to tce folder on hard drive
and
touch copy2fs.flg

now tc boots with all tce loaded in ramdisk.

now if I manually umount tce hard drive in control panel mounting tool,

how do I make hard disk stop running which saves power and noise.

is there any other option within tc, or it depends on the BIOS hard-drive stop setting?

Offline SvOlli

  • Full Member
  • ***
  • Posts: 193
  • Linux Developer
Re: Which mode to chose?
« Reply #3 on: August 27, 2010, 02:12:29 AM »
Install hdparm.tcz and run sudo hdparm -y /dev/xxx.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Which mode to chose?
« Reply #4 on: August 27, 2010, 02:23:05 AM »
Have you looked at laptop-mode-tools.tcz ?

Isn't your hd spinning down automatically after a certain time of umount of last partition which was mounted?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Which mode to chose?
« Reply #5 on: August 27, 2010, 03:18:19 AM »
It automatically turns off after a couple of minutes.
The only barriers that can stop you are the ones you create yourself.

Offline lovenini

  • Newbie
  • *
  • Posts: 11
Re: Which mode to chose?
« Reply #6 on: August 28, 2010, 06:38:46 AM »
Install hdparm.tcz and run sudo hdparm -y /dev/xxx.

all: thanks a lot for all replies, hdparm works well for me.

this is a desktop so I did not install laptop-mode-tools, I guess that is why it did not automatically shuts down HDD.