Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: argos3016 on February 14, 2010, 04:58:26 PM

Title: moving home/tc (ramfs) to the /dev/sda1 home
Post by: argos3016 on February 14, 2010, 04:58:26 PM
How TCL can "move" the ram home (because home is in the ram) to the home hard disk(/dev/sda1)?
Something about  home=hdXY and boot options? I  have to put  home=hdXY in menu.lst of grub? I don't understand that. ???
Thanks
Title: Re: moving home/tc (ramfs) to the /dev/sda1 home
Post by: gerald_clark on February 14, 2010, 05:11:09 PM
You have to first install TC on a bootable device.
Then you can edit the boot options.
Title: Re: moving home/tc (ramfs) to the /dev/sda1 home
Post by: argos3016 on February 14, 2010, 05:21:40 PM
Yes! I have already installed on the hard disk! I only have to make a home/tc dir in the hd and modify the menu.lst of grub(but putting where the boot option)?
Title: Re: moving home/tc (ramfs) to the /dev/sda1 home
Post by: Guy on February 14, 2010, 05:45:54 PM
/boot/grub/menu.lst

default 0
timeout 5

title   Tiny Core
root   (hd0,0)
kernel   /boot/bzImage quiet tce=sda1 home=sda1 opt=sda1 max_loop=256
initrd   /boot/tinycore.gz
Title: Re: moving home/tc (ramfs) to the /dev/sda1 home
Post by: argos3016 on February 14, 2010, 06:01:31 PM
Thank you!! But now, how to NOT backup at the startup? "norestore"?
Title: Re: moving home/tc (ramfs) to the /dev/sda1 home
Post by: gerald_clark on February 14, 2010, 06:03:37 PM
You either have home on the drive or you don't.
You can't have it both ways.
Title: Re: moving home/tc (ramfs) to the /dev/sda1 home
Post by: argos3016 on February 14, 2010, 06:05:34 PM
NOW WORKS WITH norestore BOOT OPTION!!!!
@gerard_clark: Yes, but seems that when init process start , by default restores the mydata.tgz file (maybe a bu*)
Title: Re: moving home/tc (ramfs) to the /dev/sda1 home
Post by: gerald_clark on February 14, 2010, 06:09:17 PM
Remove 'home/tc' from /opt/.filetool.lst
Title: Re: moving home/tc (ramfs) to the /dev/sda1 home
Post by: argos3016 on February 14, 2010, 06:10:24 PM
Then will not be necessary to put norestore in grub? OK
Works! Thanks to all! ;D
Title: Re: moving home/tc (ramfs) to the /dev/sda1 home
Post by: gerald_clark on February 14, 2010, 06:12:33 PM
You don't want norestore because then it will not restore /opt or anything else.
Title: Re: moving home/tc (ramfs) to the /dev/sda1 home
Post by: Guy on February 14, 2010, 06:24:14 PM
I prefer to use

tce=sda1 home=sda1 opt=sda1 norestore

and not use backup. I think this is the best way to run Tiny Core on a hard drive.

I make new extensions for anything I want to save not in home, opt, or tce, such as printer setup.
Title: Re: moving home/tc (ramfs) to the /dev/sda1 home
Post by: argos3016 on February 15, 2010, 07:00:20 AM
maybe is a silly question, but is possible to do the same with the rootfs?
Title: Re: moving home/tc (ramfs) to the /dev/sda1 home
Post by: curaga on February 15, 2010, 07:16:56 AM
Scatter install is possible, but not recommended. Do a forum search if you wish to try such.