Tiny Core Linux

General TC => General TC Talk => Topic started by: milos on November 26, 2009, 05:09:27 PM

Title: Grub install
Post by: milos on November 26, 2009, 05:09:27 PM
I cannot install grub.
cp -p /usr/lib/grub/i386-pc/* /mnt/hda1/boot/grub/
cp: cannot stat '/usr/lib/i386-pc/*' : No such file or directory

I can't find grub in appbrowser.I don't know how to install it.
Help.
Title: Re: Grub install
Post by: maro on November 26, 2009, 05:37:19 PM
Not sure what might be wrong with your appbrowser, but you could use tce-load from the command line such as:
Code: [Select]
tce-load -w -i grub-0.97-splash.tcz
Title: Re: Grub install
Post by: milos on November 26, 2009, 06:34:02 PM
Well, i made it. Thanks.
Title: Re: Grub install
Post by: fopetesl on December 10, 2009, 02:20:17 PM
As a newb I find this confusing.  I have the same problem
Quote
cp -p /usr/lib/grub/i386-pc/* /mnt/hda1/boot/grub/
cp: cannot stat '/usr/lib/i386-pc/*' : No such file or directory
I don't know what "appbrowser" is but directory /usr/lib/grub/ doesn't exist.
If I DO
Code: [Select]
tce-load -w -i grub-0.97-splash.tczwhere does it put ../i386-pc?
Title: Re: Grub install
Post by: maro on December 10, 2009, 03:26:50 PM
After you install the grub-0.97-splash.tcz extension either via the tce-load command or using the GUI (i.e. appbrowser, the right icon within the watcher at the bottom of your screen) you should find the files in /usr/lib/grub/i386-pc/*


Title: Re: Grub install
Post by: maro on December 10, 2009, 04:11:15 PM
On a seperate note: It might be worth to consider changing from legacy GRUB (v0.97) to the newer, more modular GRUB2 (currently: v1.97.1).

I once had a quick go at compiling and toying around with it. I don't consider my skills in creating an extension as advanced enough to unleash the results on the wider public. But I'd like to encourage one of the main extension creators to take a look at it.

One needs to be aware that quite a few things have changed between (legacy) GRUB and GRUB2. Searching for advice can be at times a bit 'hit & miss', but there are as I understand some new capabilities (e.g. NTFS and loopback support prior to the start of the kernel) that could also benefit TC users.
Title: Re: Grub install
Post by: fopetesl on December 11, 2009, 04:59:39 AM
Sorry, maro. No go  :-\
I booted this morning and (re)checked I had mounted hda1, hdb, and followed the instructions up the the point where I failed yesterday.
I executed
Code: [Select]
tce-load -w -i grub-0.97-splash.tcz without error or warning.
Unhappily /usr/lib/grub still doesn't exist :(
(I did check -twice- I had followed Section 5. of the install guide without errors)

Is there another way of copying the i386 files across - from hdb perhaps?
Title: Re: Grub install
Post by: Guy on December 11, 2009, 05:55:00 AM
I am not sure if you are not doing it correctly, or you are not downloading grub.

Sometimes downloads are very slow, or don't work at all.

Try a different mirror

If you want to download extensions from a different mirror. Open the Control Panel. Click "Select Mirror." Type in a different mirror. Click "OK."

Another option is to edit /opt/.tcrc using a Root Text Editor. Use the same format as the existing.

The official Tiny Core host

North Carolina, U.S.A.

ftp://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/

Some other mirrors are:

Greece

http://ftp.cc.uoc.gr/mirrors/linux/tinycorelinux/

ftp://ftp.cc.uoc.gr/mirrors/linux/tinycorelinux/

Netherlands

http://ftp.nluug.nl/os/Linux/distr/tinycorelinux/

http://ftp.vim.org/os/Linux/distr/tinycorelinux/

Be aware, when something is added or updated on the official site, there may be some time before it appears on the other mirrors.


You need to download grub. It is not on the cd.

If all else fails, here is another way to install Tiny Core.
http://wiki.tinycorelinux.com/tiki-index.php?page=Install
Title: Re: Grub install
Post by: fopetesl on December 11, 2009, 06:36:20 AM
Thanks, Guy.
But. grub is a download?
So OK, I missed the
Quote
It assumes that TC was booted from a liveCD and is already running on the target system with Internet access.
Oops! :(

On the machine where I want to install I don't have any internet link.  It finds (and apparently) installs the Realtek r8169 module, i.e. # lsmod | grep r81* gives me
Code: [Select]
r8169 81352 0 but there's no network init in init.d/ though ifconfig finds an unitialised eth0.
I'm thinking I still have the problem of the Realtek 8111C Ethernet Controller not being recognised as per http://www.dslreports.com/forum/r20756128-Realtek-RTL8111C-Controller-Compatibility (http://www.dslreports.com/forum/r20756128-Realtek-RTL8111C-Controller-Compatibility)
Puppy Linux and Crunchbang Linux couldn't initialise the 8111C either and they don't have a 'traditional' folder/directory structure whereas TC does seem to.
Shame  :'( Back to the drawing board then.
Title: Re: Grub install
Post by: Guy on December 11, 2009, 06:47:51 AM
Here is how you can install Tiny Core without being connected to the internet.

http://wiki.tinycorelinux.com/tiki-index.php?page=Install

You need to be able to download somehow, for example, another computer.
Title: Re: Grub install
Post by: fopetesl on December 11, 2009, 08:01:08 AM
Guy - I tried to follow your new install link but still end up with a problem:
Code: [Select]
cp -p /tmp/tcloop/grub-0.97-splash/usr/lib/grub/i386-pc/* /mnt/sda1/boot/grub/tmp/tcloop exists but is empty.
I downloaded grub-0.97-splash.tgz to /hda1/tce/ but there are no other downloads listed?
So I'm back to the missing i386-pc/ :(
Title: Re: Grub install
Post by: Guy on December 11, 2009, 10:24:09 AM
I updated the page on the wiki, replacing

cp -p /tmp/tcloop/grub-0.97-splash/usr/lib/grub/i386-pc/* /mnt/sda1/boot/grub

with

cp -p /usr/lib/grub/i386-pc/* /mnt/sda1/boot/grub

This is simpler.

Also, the first method would not work if you have a file called tcz2ram.lst in the tce directory, and the grub extension is listed in it, or there is a file called tcz2ram.flg.


Did you create an Ext3 partition on the hard drive?

Did you create a tce directory in the Ext3 partition?

Did you copy the grub-0.97-splash.tcz extension to the tce directory?

Are you running Tiny Core from the CD when running the command
cp -p /usr/lib/grub/i386-pc/* /mnt/sda1/boot/grub

Be aware, if you type one letter wrong when typing commands, you will get an error message. Check that there are no typing errors.

One way to overcome typing errors is to download the Xfe extension, .dep file, and dependencies, as explained in the wiki. Type sudo xfe to start it as root. Click on the file, select copy, go to the directory where you want it and select paste. Then rename it.

When installing Tiny Core using this method, most things are done while running the Parted Magic CD.

Copying Grub needs to be done running the Tiny Core CD. It can't be extracted while running the Parted Magic CD.

On my computer, if I create an Ext3 partition, create a tce directory in it, paste extension to the tce directory, and run Tiny Core from the CD, it will load the extensions.


If all else fails.

Download the Super Grub Disk: http://www.supergrubdisk.org/

Use the 0.9799, 0.9798 or 0.9797 version.

It is a very small download. It can be run from a floppy disk. I suggest you use the CD version, as not all computers have floppy disks now.

While running Parted Magic, copy /boot/grub from the CD, and all of the files in it, to /media/hda1/boot.

With this method, there are things you need to delete in menu.lst, when you put in the Tiny Core start commands.

The rest of the installation will be the same.


I also noticed, you downloaded grub to hda1, and you tried to copy it to sda1. It needs to be the correct partition, and will be the same.
Title: Re: Grub install
Post by: fopetesl on December 11, 2009, 10:46:54 AM
Yes.
Title: Re: Grub install
Post by: Guy on December 11, 2009, 11:08:54 AM
I added more info to the last post.

More than once.

Read it again.
Title: Re: Grub install
Post by: fopetesl on December 11, 2009, 01:33:44 PM
I'll go over it again but that's my typo 'sda1' - was actually 'hda1'  I checked my Flash Drive JIC I had.  Not there so was 'hda1.
It'll probably be Monday before I get time - son is here to keep me busy over the weekend :)