Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: SamK on September 04, 2010, 02:01:41 AM
-
Wiped a hard disk and created a fresh installation of TC3 using GRUB2. This worked perfectly over a couple of days and was rebooted many times without a problem using this this grub.cfg
menuentry Tinycore {
linux /boot/bzImage quiet norestore tz=GMT+1BST,M3.5.0/2,M10.5.0/2 kmap=uk home=hda1 opt=hda1 tce=hda1
initrd /boot/tinycore.gz
}
When booting, this requires a key press to continue the boot-up as no timeout value is specified.
The following were added to grub.cfg from the wiki
# Menu display timeout in seconds
set timeout=3
# Menu entry to boot via timeout
set default=0
# Menu entry 0
menuentry "Tinycore" {
linux /boot/bzImage quiet norestore tz=GMT+1BST,M3.5.0/2,M10.5.0/2 kmap=uk home=hda1 opt=hda1 tce=hda1
initrd /boot/tinycore.gz
}
This has resulted in the machine consistently booting to a grub prompt.
Removing the added entries (reverting back to the previous grub.cfg) does not resolve the problem - the machine still boots to a grub prompt. At this point (the grub prompt) entering the information manually allows the boot-up to complete successfully. Manual entry is then required at every boot-up.
Edited Sept 04 to correctly show contents of grub.cfg
-
hi
is that a literal copy and paste?
try ending your menuentry with the "}" without the quotes pls
-
hi
is that a literal copy and paste?
try ending your menuentry with the "}" without the quotes pls
Apologies, the closing brace was always included but not shown in my earlier post - I will edit the post to correct it.
-
hi
ok...EDIT to fix hda
1) When I boot mine....for a fraction of a second.....using exactly
set timeout=3
set default=0
I see a message saying ......booting sda1, sda1 as its a vbox setup.....my host is sda2
Do you see any similar message before it crashes back to grub command line?
2) in a code box can you post the full output of
ls -al /mnt/hda1/boot/grub
and in a separate code box the output of
fdisk -l
3) Can you mention what format your hda1 is please as I am wondering if you are using a non-standard partition type or one of your grub2 files is zero content or you are missing a file.....such as normal.mod?
-
For clarity I have edited my grub.cfg to match your test.
set timeout=3
set default=0
menuentry Tinycore {
linux /boot/bzImage quiet norestore tz=GMT+1BST,M3.5.0/2,M10.5.0/2 kmap=uk home=hda1 opt=hda1 tce=hda1
initrd /boot/tinycore.gz
}
1) When I boot mine....for a fraction of a second.....using exactly
set timeout=3
set default=0
I see a message saying ......booting sda1, sda1 as its a vbox setup.....my host is sda2
Do you see any similar message before it crashes back to grub command line?
For a fraction of a second I see "Welcome to Grub" then immediately the boot prompt.
2) in a code box can you post the full output of
ls -al /mnt/hda1/boot/grub
ls -al /mnt/hda1/boot/grub
total 1400
drwxr-xr-x 3 root root 4096 Sep 4 08:26 ./
drwxr-xr-x 3 root root 4096 Sep 4 08:19 ../
-rw-r--r-- 1 root root 10484 Sep 4 08:25 acpi.mod
-rw-r--r-- 1 root root 4572 Sep 4 08:25 affs.mod
-rw-r--r-- 1 root root 4824 Sep 4 08:25 afs.mod
-rw-r--r-- 1 root root 5072 Sep 4 08:25 afs_be.mod
-rw-r--r-- 1 root root 1048 Sep 4 08:25 aout.mod
-rw-r--r-- 1 root root 2652 Sep 4 08:25 at_keyboard.mod
-rw-r--r-- 1 root root 7972 Sep 4 08:25 ata.mod
-rw-r--r-- 1 root root 2228 Sep 4 08:25 ata_pthru.mod
-rw-r--r-- 1 root root 4716 Sep 4 08:25 befs.mod
-rw-r--r-- 1 root root 4964 Sep 4 08:25 befs_be.mod
-rw-r--r-- 1 root root 4276 Sep 4 08:25 biosdisk.mod
-rw-r--r-- 1 root root 2412 Sep 4 08:25 bitmap.mod
-rw-r--r-- 1 root root 2904 Sep 4 08:25 bitmap_scale.mod
-rw-r--r-- 1 root root 2012 Sep 4 08:25 blocklist.mod
-rw-r--r-- 1 root root 512 Sep 4 08:25 boot.img
-rw-r--r-- 1 root root 2568 Sep 4 08:25 boot.mod
-rw-r--r-- 1 root root 19688 Sep 4 08:25 bsd.mod
-rw-r--r-- 1 root root 1960 Sep 4 08:25 bufio.mod
-rw-r--r-- 1 root root 1988 Sep 4 08:25 cat.mod
-rw-r--r-- 1 root root 512 Sep 4 08:25 cdboot.img
-rw-r--r-- 1 root root 2416 Sep 4 08:25 chain.mod
-rw-r--r-- 1 root root 1948 Sep 4 08:25 charset.mod
-rw-r--r-- 1 root root 2144 Sep 4 08:25 cmp.mod
-rw-r--r-- 1 root root 1883 Sep 4 08:25 command.lst
-rw-r--r-- 1 root root 1784 Sep 4 08:25 configfile.mod
-rw-r--r-- 1 root root 24696 Sep 4 08:25 core.img
-rw-r--r-- 1 root root 2808 Sep 4 08:25 cpio.mod
-rw-r--r-- 1 root root 1608 Sep 4 08:25 cpuid.mod
-rw-r--r-- 1 root root 1784 Sep 4 08:25 crc.mod
-rw-r--r-- 1 root root 825 Sep 4 08:25 crypto.lst
-rw-r--r-- 1 root root 4392 Sep 4 08:25 crypto.mod
-rw-r--r-- 1 root root 2268 Sep 4 08:25 date.mod
-rw-r--r-- 1 root root 1824 Sep 4 08:25 datehook.mod
-rw-r--r-- 1 root root 1241 Sep 4 08:25 datetime.mod
-rw-r--r-- 1 root root 15 Sep 4 08:25 device.map
-rw-r--r-- 1 root root 512 Sep 4 08:25 diskboot.img
-rw-r--r-- 1 root root 1840 Sep 4 08:25 dm_nv.mod
-rw-r--r-- 1 root root 5500 Sep 4 08:25 drivemap.mod
-rw-r--r-- 1 root root 1920 Sep 4 08:25 echo.mod
-rw-r--r-- 1 root root 24124 Sep 4 08:25 efiemu.mod
-rw-r--r-- 1 root root 4404 Sep 4 08:25 elf.mod
-rw-r--r-- 1 root root 1636 Sep 4 08:25 example_functional_test.mod
-rw-r--r-- 1 root root 5512 Sep 4 08:25 ext2.mod
-rw-r--r-- 1 root root 3924 Sep 4 08:25 extcmd.mod
-rw-r--r-- 1 root root 5888 Sep 4 08:25 fat.mod
-rw-r--r-- 1 root root 7332 Sep 4 08:25 font.mod
-rw-r--r-- 1 root root 117 Sep 4 08:25 fs.lst
-rw-r--r-- 1 root root 2764 Sep 4 08:25 fshelp.mod
-rw-r--r-- 1 root root 2608 Sep 4 08:25 functional_test.mod
-rw-r--r-- 1 root root 1748 Sep 4 08:25 gcry_arcfour.mod
-rw-r--r-- 1 root root 8124 Sep 4 08:25 gcry_blowfish.mod
-rw-r--r-- 1 root root 35040 Sep 4 08:25 gcry_camellia.mod
-rw-r--r-- 1 root root 17544 Sep 4 08:25 gcry_cast5.mod
-rw-r--r-- 1 root root 2992 Sep 4 08:25 gcry_crc.mod
-rw-r--r-- 1 root root 19280 Sep 4 08:25 gcry_des.mod
-rw-r--r-- 1 root root 3252 Sep 4 08:25 gcry_md4.mod
-rw-r--r-- 1 root root 3992 Sep 4 08:25 gcry_md5.mod
-rw-r--r-- 1 root root 2612 Sep 4 08:25 gcry_rfc2268.mod
-rw-r--r-- 1 root root 19204 Sep 4 08:25 gcry_rijndael.mod
-rw-r--r-- 1 root root 9116 Sep 4 08:25 gcry_rmd160.mod
-rw-r--r-- 1 root root 16628 Sep 4 08:25 gcry_seed.mod
-rw-r--r-- 1 root root 18016 Sep 4 08:25 gcry_serpent.mod
-rw-r--r-- 1 root root 8904 Sep 4 08:25 gcry_sha1.mod
-rw-r--r-- 1 root root 3492 Sep 4 08:25 gcry_sha256.mod
-rw-r--r-- 1 root root 5676 Sep 4 08:25 gcry_sha512.mod
-rw-r--r-- 1 root root 11964 Sep 4 08:25 gcry_tiger.mod
-rw-r--r-- 1 root root 39616 Sep 4 08:25 gcry_twofish.mod
-rw-r--r-- 1 root root 24776 Sep 4 08:25 gcry_whirlpool.mod
-rw-r--r-- 1 root root 3956 Sep 4 08:25 gettext.mod
-rw-r--r-- 1 root root 37056 Sep 4 08:25 gfxmenu.mod
-rw-r--r-- 1 root root 10952 Sep 4 08:25 gfxterm.mod
-rw-r--r-- 1 root root 3720 Sep 4 08:25 gptsync.mod
-rw-r--r-- 1 root root 181 Sep 5 06:58 grub.cfg
-rw-r--r-- 1 root root 1024 Sep 4 08:25 grubenv
-rw-r--r-- 1 root root 7740 Sep 4 08:25 gzio.mod
-rw-r--r-- 1 root root 1464 Sep 4 08:25 halt.mod
-rw-r--r-- 1 root root 16 Sep 4 08:25 handler.lst
-rw-r--r-- 1 root root 1688 Sep 4 08:25 handler.mod
-rw-r--r-- 1 root root 4744 Sep 4 08:25 hashsum.mod
-rw-r--r-- 1 root root 7336 Sep 4 08:25 hdparm.mod
-rw-r--r-- 1 root root 1216 Sep 4 08:25 hello.mod
-rw-r--r-- 1 root root 2412 Sep 4 08:25 help.mod
-rw-r--r-- 1 root root 3244 Sep 4 08:25 hexdump.mod
-rw-r--r-- 1 root root 6148 Sep 4 08:25 hfs.mod
-rw-r--r-- 1 root root 6016 Sep 4 08:25 hfsplus.mod
-rw-r--r-- 1 root root 6232 Sep 4 08:25 iso9660.mod
-rw-r--r-- 1 root root 5748 Sep 4 08:25 jfs.mod
-rw-r--r-- 1 root root 5900 Sep 4 08:25 jpeg.mod
-rw-r--r-- 1 root root 29772 Sep 4 08:25 kernel.img
-rw-r--r-- 1 root root 1972 Sep 4 08:25 keystatus.mod
-rw-r--r-- 1 root root 8636 Sep 4 08:25 linux.mod
-rw-r--r-- 1 root root 4972 Sep 4 08:25 linux16.mod
-rw-r--r-- 1 root root 1024 Sep 4 08:25 lnxboot.img
-rw-r--r-- 1 root root 5544 Sep 4 08:25 loadenv.mod
drwxr-xr-x 2 root root 4096 Sep 4 08:25 locale/
-rw-r--r-- 1 root root 3084 Sep 4 08:25 loopback.mod
-rw-r--r-- 1 root root 4140 Sep 4 08:25 ls.mod
-rw-r--r-- 1 root root 1300 Sep 4 08:25 lsmmap.mod
-rw-r--r-- 1 root root 4944 Sep 4 08:25 lspci.mod
-rw-r--r-- 1 root root 5496 Sep 4 08:25 lvm.mod
-rw-r--r-- 1 root root 1772 Sep 4 08:25 mdraid.mod
-rw-r--r-- 1 root root 2056 Sep 4 08:25 memdisk.mod
-rw-r--r-- 1 root root 2876 Sep 4 08:25 memrw.mod
-rw-r--r-- 1 root root 4160 Sep 4 08:25 minicmd.mod
-rw-r--r-- 1 root root 4356 Sep 4 08:25 minix.mod
-rw-r--r-- 1 root root 8400 Sep 4 08:25 mmap.mod
-rw-r--r-- 1 root root 2589 Sep 4 08:25 moddep.lst
-rw-r--r-- 1 root root 2376 Sep 4 08:25 msdospart.mod
-rw-r--r-- 1 root root 11108 Sep 4 08:25 multiboot.mod
-rw-r--r-- 1 root root 11112 Sep 4 08:25 multiboot2.mod
-rw-r--r-- 1 root root 42268 Sep 4 08:25 normal.mod
-rw-r--r-- 1 root root 9932 Sep 4 08:25 ntfs.mod
-rw-r--r-- 1 root root 3548 Sep 4 08:25 ntfscomp.mod
-rw-r--r-- 1 root root 4460 Sep 4 08:25 ohci.mod
-rw-r--r-- 1 root root 2068 Sep 4 08:25 part_acorn.mod
-rw-r--r-- 1 root root 2276 Sep 4 08:25 part_amiga.mod
-rw-r--r-- 1 root root 2624 Sep 4 08:25 part_apple.mod
-rw-r--r-- 1 root root 2684 Sep 4 08:25 part_gpt.mod
-rw-r--r-- 1 root root 3400 Sep 4 08:25 part_msdos.mod
-rw-r--r-- 1 root root 2308 Sep 4 08:25 part_sun.mod
-rw-r--r-- 1 root root 62 Sep 4 08:25 partmap.lst
-rw-r--r-- 1 root root 22 Sep 4 08:25 parttool.lst
-rw-r--r-- 1 root root 4484 Sep 4 08:25 parttool.mod
-rw-r--r-- 1 root root 1908 Sep 4 08:25 password.mod
-rw-r--r-- 1 root root 3008 Sep 4 08:25 password_pbkdf2.mod
-rw-r--r-- 1 root root 1332 Sep 4 08:25 pbkdf2.mod
-rw-r--r-- 1 root root 900 Sep 4 08:25 pci.mod
-rw-r--r-- 1 root root 2472 Sep 4 08:25 play.mod
-rw-r--r-- 1 root root 6504 Sep 4 08:25 png.mod
-rw-r--r-- 1 root root 2664 Sep 4 08:25 probe.mod
-rw-r--r-- 1 root root 5544 Sep 4 08:25 pxe.mod
-rw-r--r-- 1 root root 1024 Sep 4 08:25 pxeboot.img
-rw-r--r-- 1 root root 1332 Sep 4 08:25 pxecmd.mod
-rw-r--r-- 1 root root 5812 Sep 4 08:25 raid.mod
-rw-r--r-- 1 root root 1380 Sep 4 08:25 raid5rec.mod
-rw-r--r-- 1 root root 2828 Sep 4 08:25 raid6rec.mod
-rw-r--r-- 1 root root 1544 Sep 4 08:25 read.mod
-rw-r--r-- 1 root root 1124 Sep 4 08:25 reboot.mod
-rw-r--r-- 1 root root 9812 Sep 4 08:25 reiserfs.mod
-rw-r--r-- 1 root root 4124 Sep 4 08:25 relocator.mod
-rw-r--r-- 1 root root 3252 Sep 4 08:25 scsi.mod
-rw-r--r-- 1 root root 2356 Sep 4 08:25 search.mod
-rw-r--r-- 1 root root 2164 Sep 4 08:25 search_fs_file.mod
-rw-r--r-- 1 root root 2312 Sep 4 08:25 search_fs_uuid.mod
-rw-r--r-- 1 root root 2264 Sep 4 08:25 search_label.mod
-rw-r--r-- 1 root root 6092 Sep 4 08:25 serial.mod
-rw-r--r-- 1 root root 690 Sep 4 08:25 setjmp.mod
-rw-r--r-- 1 root root 5532 Sep 4 08:25 setpci.mod
-rw-r--r-- 1 root root 4152 Sep 4 08:25 sfs.mod
-rw-r--r-- 1 root root 12076 Sep 4 08:25 sh.mod
-rw-r--r-- 1 root root 2132 Sep 4 08:25 sleep.mod
-rw-r--r-- 1 root root 2836 Sep 4 08:25 tar.mod
-rw-r--r-- 1 root root 134 Sep 4 08:25 terminal.lst
-rw-r--r-- 1 root root 5020 Sep 4 08:25 terminal.mod
-rw-r--r-- 1 root root 9612 Sep 4 08:25 terminfo.mod
-rw-r--r-- 1 root root 5156 Sep 4 08:25 test.mod
-rw-r--r-- 1 root root 2892 Sep 4 08:25 tga.mod
-rw-r--r-- 1 root root 1675 Sep 4 08:25 trig.mod
-rw-r--r-- 1 root root 1276 Sep 4 08:25 true.mod
-rw-r--r-- 1 root root 5072 Sep 4 08:25 udf.mod
-rw-r--r-- 1 root root 4688 Sep 4 08:25 ufs1.mod
-rw-r--r-- 1 root root 5004 Sep 4 08:25 ufs2.mod
-rw-r--r-- 1 root root 5152 Sep 4 08:25 uhci.mod
-rw-r--r-- 1 root root 3808 Sep 4 08:25 usb.mod
-rw-r--r-- 1 root root 3360 Sep 4 08:25 usb_keyboard.mod
-rw-r--r-- 1 root root 3788 Sep 4 08:25 usbms.mod
-rw-r--r-- 1 root root 3488 Sep 4 08:25 usbtest.mod
-rw-r--r-- 1 root root 7892 Sep 4 08:25 vbe.mod
-rw-r--r-- 1 root root 2736 Sep 4 08:25 vbeinfo.mod
-rw-r--r-- 1 root root 3048 Sep 4 08:25 vbetest.mod
-rw-r--r-- 1 root root 3804 Sep 4 08:25 vga.mod
-rw-r--r-- 1 root root 2824 Sep 4 08:25 vga_text.mod
-rw-r--r-- 1 root root 4 Sep 4 08:25 video.lst
-rw-r--r-- 1 root root 5604 Sep 4 08:25 video.mod
-rw-r--r-- 1 root root 17168 Sep 4 08:25 video_fb.mod
-rw-r--r-- 1 root root 3828 Sep 4 08:25 videotest.mod
-rw-r--r-- 1 root root 6060 Sep 4 08:25 xfs.mod
-rw-r--r-- 1 root root 31452 Sep 4 08:25 xnu.mod
-rw-r--r-- 1 root root 1944 Sep 4 08:25 xnu_uuid.mod
and in a separate code box the output of
fdisk -l
fdisk -l
Disk /dev/hda: 6007 MB, 6007357440 bytes
15 heads, 63 sectors/track, 12416 cylinders
Units = cylinders of 945 * 512 = 483840 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2067 976626 83 Linux
/dev/hda2 2068 3100 488092+ 82 Linux swap
Disk /dev/loop0: 0 MB, 126976 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
Disk /dev/loop10: 0 MB, 274432 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, 348160 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
3) Can you mention what format your hda1 is please as I am wondering if you are using a non-standard partition type or one of your grub2 files is zero content or you are missing a file.....such as normal.mod?
Two primary partitions have been created after first wiping the entire disk with zeros. The first partition is ext4 the second is swap. All remaining space on the disk is unallocated.
-
hi
EDIT
You appear to be missing a number of files under boot/grub
I ran xxdiff against your and my result and I have about 6 or so more files than you.
I suggest you use root powers to delete entire folder and its contents..../mnt/sda1/boot/grub
TIP if you use mc in a terminal.....press F8 allows you to delete the entire folder in one hit....to make sure we have no wacky results then copy over
then use apps audit to load grub2 stuff as ondemand....then click on the ondemand and load grub2 (sorry if you already know how to do that)
Then re-run the grub-install command
Then copy in a grub.cfg from this page if you like? and
....check that ls -al command reports more files than you have just reported before rebooting.
2) I forgot to ask...do you know much about grub2 or are just trying it out?
As I live in a diff timezone to you....as an interim arrangement you might find it more stable to build a grub legacy?
I believe grub-legacy can also handle ext4.
I use ext3 myself
regards
-
Rather than try to fix the problem the disk has been wiped and the file-system recreated using ext4 and GRUB2. The grub.cfg file has been edited multiple times and shows no signs of the symptoms originally reported.
Although this restart from scratch does not allow discovery of the cause of the original problem it does provide a known good position which can be monitored.
Are there any tools in the TC3 repository which can analyze the condition of the disk rather than the file-system?
-
ab smart
;)
-
if your drive is not detected by tinypoodles' suggestion...which I have never tried either....you could try
http://ubcd.sourceforge.net/download.html
or remaster with one of the utilities....but I don't know what your drive is
http://linuxmafia.com/faq/Hardware/hdutils.html
2) Also check that your cables are firmly pushed in if its a desktop pc.
-
if your drive is not detected by tinypoodles' suggestion...which I have never tried either....you could try
http://ubcd.sourceforge.net/download.html.
Yep, I've used UBCD for years but I was interested to know if any utilities existed within the TC3 repo. It is getting increasingly difficult to keep track of what is available and searching takes longer and longer as the number of apps grow.
-
how about smartmontools.tcz
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/smartmontools.tcz.info
-
how about smartmontools.tcz
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/smartmontools.tcz.info
I think that is what tinypoodle was referring to.
Seems fine and even has an optional GUI front-end gsmartcontrol.tcz
-
Amongst others, yes ;)
-
For in-depth checking, I'd recommend http://hddguru.com/software/2005.10.02-MHDD/mhdd_manual.en.html, but that does not meet the criterion of running under Linux.