WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Tiny core Problem z instalacja.  (Read 5545 times)

Offline jacej6490

  • WikiUser
  • *
  • Posts: 10
Tiny core Problem z instalacja.
« on: November 04, 2010, 02:41:03 PM »
Witam zainstalowalem tiny core wedlug tej instrukcji http://www.tinycorelinux.com/install.html
ale po resecie kompa system sie nie wlancza tylko wyswietla sie napis grub. Jakby dyski nie widzial. Po wpisaniu komendy  fdisk -1   pokazuje co takiego.
tc@box:~$ sudo fdisk -1
fdisk: invalid option -- '1'
BusyBox v1.17.2 (2010-09-24 12:19:23 PDT) multi-call binary.

Usage: fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK

Change partition table

Options:
   -u      Start and End are in sectors (instead of cylinders)
   -l      Show partition table for each DISK, then exit
   -b 2048      (for certain MO disks) use 2048-byte sectors
   -C CYLINDERS   Set number of cylinders/heads/sectors
   -H HEADS
   -S SECTORS

Wie ktos co z tym zrobic?? Z gory dziekuje za pomoc

Offline gutmensch

  • Administrator
  • Hero Member
  • *****
  • Posts: 606
  • I can make it disappear, have no fear!
    • remembrance blog
Re: Tiny core Problem z instalacja.
« Reply #1 on: November 04, 2010, 02:44:37 PM »
My Polish isn't very good but I can see that you misspelled the l (or ł haha) and used the 1 (one, number) instead. The correct command is fdisk -l (l for list).
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline jacej6490

  • WikiUser
  • *
  • Posts: 10
Re: Tiny core Problem z instalacja.
« Reply #2 on: November 04, 2010, 02:48:56 PM »
 Device Boot      Start         End      Blocks  Id System
/dev/hda1   *           1        2906     1464592+ 83 Linux
/dev/hda2            2907       29660    13484016  82 Linux swap

Disk /dev/loop0: 0 MB, 221184 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/loop0 doesn't contain a valid partition table
fdisk: can't open '/dev/ramzswap0': Permission denied

Disk /dev/loop10: 0 MB, 512000 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/loop10 doesn't contain a valid partition table

Disk /dev/loop20: 0 MB, 12288 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/loop20 doesn't contain a valid partition table
tc@box:~$

Offline jacej6490

  • WikiUser
  • *
  • Posts: 10
Re: Tiny core Problem z instalacja.
« Reply #3 on: November 04, 2010, 03:09:40 PM »
My grub have a      error 8 kernel must be loaded before booting   please help me.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Tiny core Problem z instalacja.
« Reply #4 on: November 04, 2010, 03:13:47 PM »
All I could comment looking at this post is that there is a blatantly wrong size analogy of a linux and a swap partition. Sizes to be the other way round could make sense.

Besides from that, last time I had looked at the subject of linux swap partitions, max. size possible was 2 GB - though that is some years ago, as I couldn't see an overall advantage of having a swap partition over swap file(s) with recent kernels.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jacej6490

  • WikiUser
  • *
  • Posts: 10
Re: Tiny core Problem z instalacja.
« Reply #5 on: November 04, 2010, 03:16:44 PM »
how to solve this problem. replace partitions?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Tiny core Problem z instalacja.
« Reply #6 on: November 04, 2010, 03:25:24 PM »
You could set the partition types the other way round, then format the linux partition and mkswap the swap partition.

Note: This will destroy any data present on the disk.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jacej6490

  • WikiUser
  • *
  • Posts: 10
Re: Tiny core Problem z instalacja.
« Reply #7 on: November 04, 2010, 03:39:35 PM »
like this
   Device Boot      Start         End      Blocks  Id System
/dev/hda1   *           1         194       97744+ 83 Linux
/dev/hda2             195       29660    14850864  82 Linux swap

Disk /dev/loop0: 0 MB, 221184 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/loop0 doesn't contain a valid partition table
fdisk: can't open '/dev/ramzswap0': Permission denied

Disk /dev/loop10: 0 MB, 512000 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/loop10 doesn't contain a valid partition table

Disk /dev/loop20: 0 MB, 425984 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/loop20 doesn't contain a valid partition table
tc@box:~$

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Tiny core Problem z instalacja.
« Reply #8 on: November 04, 2010, 03:59:52 PM »
This is even worse!

Make the swap partition small (< 2 GB), if any at all.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Tiny core Problem z instalacja.
« Reply #9 on: November 04, 2010, 04:10:52 PM »
You might want to show us the exact 'fdisk' command you are using. But maybe it would help us to also know the disk geometry. So to start off what is the (full) output of fdisk -lu /dev/hda (which is a small variation of what you've been doing, but also cuts out the "noise")?

I'm pretty sure that I'm able to give you an exact 'fdisk' command, if I know how large the disk is, and which size you plan to give to each of the two partitions.

Offline jacej6490

  • WikiUser
  • *
  • Posts: 10
Re: Tiny core Problem z instalacja.
« Reply #10 on: November 04, 2010, 04:32:44 PM »
tc@box:~$ sudo su
root@box:~# fdisk -lu /dev/hda

Disk /dev/hda: 15.3 GB, 15307407360 bytes
16 heads, 63 sectors/track, 29660 cylinders, total 29897280 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/hda1   *          63    27344015    13671976+ 83 Linux
/dev/hda2        27344016    29897279     1276632  82 Linux swap
root@box:~#




root@box:~# fdisk -l

Disk /dev/hda: 15.3 GB, 15307407360 bytes
16 heads, 63 sectors/track, 29660 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/hda1   *           1       27127    13671976+ 83 Linux
/dev/hda2           27128       29660     1276632  82 Linux swap

Disk /dev/loop0: 0 MB, 221184 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/loop0 doesn't contain a valid partition table
Note: sector size is 4096 (not 512)

Disk /dev/ramzswap0: 123 MB, 123359232 bytes
255 heads, 63 sectors/track, 1 cylinders
Units = cylinders of 16065 * 4096 = 65802240 bytes

Disk /dev/ramzswap0 doesn't contain a valid partition table

Disk /dev/loop10: 0 MB, 512000 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/loop10 doesn't contain a valid partition table

Disk /dev/loop20: 0 MB, 425984 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/loop20 doesn't contain a valid partition table

Disk /dev/loop30: 0 MB, 311296 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/loop30 doesn't contain a valid partition table
root@box:~#

Offline jacej6490

  • WikiUser
  • *
  • Posts: 10
Re: Tiny core Problem z instalacja.
« Reply #11 on: November 04, 2010, 04:38:14 PM »
I mean that I have a problem with the installation of grub. After restarting the computer shows me this screen

    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]

grub>


grub installed as the user so everything should be fine

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Tiny core Problem z instalacja.
« Reply #12 on: November 04, 2010, 05:16:14 PM »
So what it the content of your GRUB config file (e.g. '/boot/grub/menu.lst') and is it on the intended file system (e.g. '/dev/hda1')? Are the kernel (i.e. 'bzImage') and the initrd (i.e. 'tinycore.gz') where they are expected to be (e.g. in the '/boot' directory on '/dev/hda1')?

My impression is that GRUB does not find the config file. This could be the result from an issue during the GRUB installation (e.g. with root (hd0,0) and setup (hd0)) and now it's "a bit lost".

When you get to the GRUB prompt (as you currently are) you have the option to interactively use commands like 'kernel ...', 'initrd ...', and 'boot' to achieve the same as what a GRUB config file does. The critical thing is to identify and set the so called 'root' file system before using those commands.

If you are not familiar with this process I'll have to do some digging to find some suitable reading material for you. But first check those things I've mentioned above.

Offline jacej6490

  • WikiUser
  • *
  • Posts: 10
Re: Tiny core Problem z instalacja.
« Reply #13 on: November 05, 2010, 08:10:48 AM »
the command vi / mnt/hda1/boot/grub/menu.lst
This fits:
default 0
timeout 10
tinycore title
kernel / boot / bzImage quiet
initrd / boot / tinycore.gz

and in the instructions it says press ESC to exit Eby and X. And I have a problem with that. Eby get out of this command push button ctr + Z. I'm not sure if I save. And then I walk proceed using grub. and entered komedny
root (hd0, 0)
setup (hd0)
quit
as it is in the user

Offline jacej6490

  • WikiUser
  • *
  • Posts: 10
Re: Tiny core Problem z instalacja.
« Reply #14 on: November 05, 2010, 08:17:35 AM »
my grub:
grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  16 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

grub>