Tiny Core Linux

General TC => General TC Talk => Topic started by: bmarkus on January 02, 2012, 02:58:34 AM

Title: tc-install test result
Post by: bmarkus on January 02, 2012, 02:58:34 AM
Upon discussion at http://forum.tinycorelinux.net/index.php/topic,12235.0.html (http://forum.tinycorelinux.net/index.php/topic,12235.0.html) I retested tc-install. test environment:

- CorePlus 4.2 running from CD
- Acer Aspire 5720Z notebook
- 256Mbyte and 4Gbyte USB stick

Following installation types tested:

Frugal / whole disk / VFAT
USB-HDD / whole disk / VFAT
USB-ZIP / whole disk VFAT
Frugal / existing partion / VFAT

In all cases partition was formatted by tc-install and boot installed, as well partion marked bootable in latest case.

USB stick always fails on the Acer notebook with 'Boot error' message, while it always boot on my desktop machine.

USB sticks behaves on the same way except 256MByte stick can't be formatted in USB-ZIP mode, tc-install displays format error while 4G is OK.

It means that I can't create a bootable USB installation in the Acer notebook where all 3rd party installers and other Live Linux systems boots fine.
Title: Re: tc-install test result
Post by: roberts on January 02, 2012, 11:26:50 AM
At least we learned that is it one machine, an Acer.
The question was does your Acer require a partition-less installation, i.e., USB-FLOPPY ?
What is the BIOS boot option?

We can try to improve the system with good feedback, or we can splinter off with dozens of solution with "it works for me".
Title: Re: tc-install test result
Post by: bmarkus on January 02, 2012, 01:58:01 PM
At least we learned that is it one machine, an Acer.
The question was does your Acer require a partition-less installation, i.e., USB-FLOPPY ?
What is the BIOS boot option?

Doesn't require partition-less installations. USB stick is used as USB-HDD.
Title: Re: tc-install test result
Post by: bmarkus on January 03, 2012, 04:15:40 AM
Problem is caused by extlinux which is not the right bootloader for FAT. Install syslinux instead of and it will work.
Title: Re: tc-install test result
Post by: roberts on January 03, 2012, 05:01:04 PM
When tested tc-install usb pendrive by selecting USB_HDD and selecting vfat, syslinux was used as expected.
It would be helpful if you could specify exactly which options you were using that resulted in extlinux.
Title: Re: tc-install test result
Post by: bmarkus on January 03, 2012, 06:32:48 PM
When tested tc-install usb pendrive by selecting USB_HDD and selecting vfat, syslinux was used as expected.
It would be helpful if you could specify exactly which options you were using that resulted in extlinux.

You are right, it installs syslinux in this setup, but it doesn't boot. BTW, selecting USB-HDD it repartitions the whole space creating a single FAT32 partition. In frugal mode I can choose partition but than extlinux is used even if I reformat partition to vfat with tc-install.

What is about syslinux in frugal when target partition is FAT?

Anyhow, too late now. Lets go to sleep.

Title: Re: tc-install test result
Post by: ixbrian on January 03, 2012, 10:57:26 PM
I can reproduce when trying to install to a existing vfat partition and selecting the option to not format.   We will work on fixing this. 

You said "extlinux is used even if I reformat partition to vfat with tc-install", I can't reproduce this one, when I try this syslinux is installed and it works correctly.   Can you provide some more details on how to reproduce the problem when having tc-install format with vfat?

Thanks,
Brian
Title: Re: tc-install test result
Post by: bmarkus on January 04, 2012, 02:13:48 AM
I can reproduce when trying to install to a existing vfat partition and selecting the option to not format.   We will work on fixing this. 

How could you install to an existing partition? In USB-HDD mode this option is inactive, only 'Whole Disk' is available?

(http://www.hasix.org/tc/tcinst1.jpg)
Title: Re: tc-install test result
Post by: bmarkus on January 04, 2012, 02:17:36 AM
You said "extlinux is used even if I reformat partition to vfat with tc-install", I can't reproduce this one, when I try this syslinux is installed and it works correctly.   Can you provide some more details on how to reproduce the problem when having tc-install format with vfat?

(http://www.hasix.org/tc/tcinst2.jpg)

(http://www.hasix.org/tc/tcinst3.jpg)

(http://www.hasix.org/tc/tcinst4.jpg)

(http://www.hasix.org/tc/tcinst5.jpg)

(http://www.hasix.org/tc/tcinst6.jpg)
Title: Re: tc-install test result
Post by: ixbrian on January 04, 2012, 07:02:16 PM
I can reproduce when trying to install to a existing vfat partition and selecting the option to not format.   We will work on fixing this. 

How could you install to an existing partition? In USB-HDD mode this option is inactive, only 'Whole Disk' is available?


I was referring to a frugal installation on an existing vfat partition and selecting the option to not format. 
Title: Re: tc-install test result
Post by: ixbrian on January 04, 2012, 07:24:01 PM
You said "extlinux is used even if I reformat partition to vfat with tc-install", I can't reproduce this one, when I try this syslinux is installed and it works correctly.   Can you provide some more details on how to reproduce the problem when having tc-install format with vfat?

(http://www.hasix.org/tc/tcinst6.jpg)

I've done some more testing and I think I've tracked down the problem.   Here is what I'm guessing happened:  Your sdb1 device had the extlinux install on it to start with, and then you selected to vfat format and install to an existing partition which you already had mounted.   The installer isn't able to format a mounted partition so the existing extlinux stuff remained on there.   I'll look at adding some error checking to handle a user requested format of a mounted partition. 

Thanks for the additional information. 

Brian
Title: Re: tc-install test result
Post by: bmarkus on January 05, 2012, 01:50:32 AM
You said "extlinux is used even if I reformat partition to vfat with tc-install", I can't reproduce this one, when I try this syslinux is installed and it works correctly.   Can you provide some more details on how to reproduce the problem when having tc-install format with vfat?

(http://www.hasix.org/tc/tcinst6.jpg)

I've done some more testing and I think I've tracked down the problem.   Here is what I'm guessing happened:  Your sdb1 device had the extlinux install on it to start with, and then you selected to vfat format and install to an existing partition which you already had mounted.   The installer isn't able to format a mounted partition so the existing extlinux stuff remained on there.   I'll look at adding some error checking to handle a user requested format of a mounted partition. 

Thanks for the additional information. 

Brian

As far as I remember It was formatted before on Windows, but will make a test.
Title: Re: tc-install test result
Post by: justauser on January 05, 2012, 09:03:58 AM
I freshly formatted a pen drive and then did a tc-install. The drive had not been mounted at all.  After the install I mounted and in the boot directory there is the extlinux directory with ldlinux.sys and extlinux.cfg
Title: Re: tc-install test result
Post by: bmarkus on January 05, 2012, 06:47:58 PM
Now I can create a bootable FAT formatted USB stick with CorePlus CD manually. Need some testing and I can provide a script.
Title: Re: tc-install test result
Post by: ixbrian on January 05, 2012, 06:59:17 PM
I freshly formatted a pen drive and then did a tc-install. The drive had not been mounted at all.  After the install I mounted and in the boot directory there is the extlinux directory with ldlinux.sys and extlinux.cfg

Did you select to format with a ext2, ext3, or ext4 filesystem?   If so, extlinux would be installed by design.   Was there any problem when booting the pen drive?
Title: Re: tc-install test result
Post by: ixbrian on January 05, 2012, 07:03:39 PM
Now I can create a bootable FAT formatted USB stick with CorePlus CD manually. Need some testing and I can provide a script.

Here are the 2 issues identified and which we are working on fixing:

-If you select to format and install to an existing partition that is already mounted, the partition isn't formatted.
-If you select to use an existing vfat partition without formatting, extlinux is installed instead of syslinux.

Are you seeing any other issues other than these 2?
Title: Re: tc-install test result
Post by: bmarkus on January 06, 2012, 01:44:45 AM
Did you select to format with a ext2, ext3, or ext4 filesystem?   If so, extlinux would be installed by design.   Was there any problem when booting the pen drive?

Both 256M and 4G sticks boot OK created in USB-HDD / format ext4 mode.
Title: Re: tc-install test result
Post by: bmarkus on January 06, 2012, 02:02:11 AM
Now I can create a bootable FAT formatted USB stick with CorePlus CD manually. Need some testing and I can provide a script.

Here are the 2 issues identified and which we are working on fixing:

-If you select to format and install to an existing partition that is already mounted, the partition isn't formatted.
-If you select to use an existing vfat partition without formatting, extlinux is installed instead of syslinux.

Are you seeing any other issues other than these 2?

Yes. The core issue we are discussing from the beginning.

Installing on USB stick where no any existing partitions are mounted in

- USB-HDD mode
- formatting to FAT

repartitions drive, formats with mkdosfs, installs syslinux and copies files but created stick doesn't boot, results

'boot error' which indicates faulty or missing boot record.

Title: Re: tc-install test result
Post by: bmarkus on January 06, 2012, 03:33:02 AM
Find attached a sript which creates a working, bootable USB stick on a system booted from CorePlus CD (target partition is configured in the beginning of script, change it to fit your system).

Result is OK as long as partition is formatted on WINDOWS. Formatting on TC with mkdosfs before running script result is 'boot error'. So there is a FAT incompatibility somewhere.

Title: Re: tc-install test result
Post by: curaga on January 06, 2012, 03:37:57 AM
Your script doesn't install syslinux's mbr?
Title: Re: tc-install test result
Post by: bmarkus on January 06, 2012, 03:48:56 AM
Your script doesn't install syslinux's mbr?

No, with Windows formatted drives it was not necessary. I dropped everything and kept only those which really needed to have a basis to work on :)
Title: Re: tc-install test result
Post by: justauser on January 06, 2012, 08:11:11 AM
I freshly formatted a pen drive and then did a tc-install. The drive had not been mounted at all.  After the install I mounted and in the boot directory there is the extlinux directory with ldlinux.sys and extlinux.cfg

Did you select to format with a ext2, ext3, or ext4 filesystem?   If so, extlinux would be installed by design.   Was there any problem when booting the pen drive?

The USB flash drive was formatted with Windows and was empty.  it *did* boot.
Title: Re: tc-install test result
Post by: justauser on January 06, 2012, 08:12:18 AM
Here are the 2 issues identified and which we are working on fixing:

-If you select to format and install to an existing partition that is already mounted, the partition isn't formatted.
-If you select to use an existing vfat partition without formatting, extlinux is installed instead of syslinux.

Are you seeing any other issues other than these 2?

My yesy had a vfat partition and extlinux was used.
Title: Re: tc-install test result
Post by: ixbrian on January 06, 2012, 08:13:10 AM
I freshly formatted a pen drive and then did a tc-install. The drive had not been mounted at all.  After the install I mounted and in the boot directory there is the extlinux directory with ldlinux.sys and extlinux.cfg

Did you select to format with a ext2, ext3, or ext4 filesystem?   If so, extlinux would be installed by design.   Was there any problem when booting the pen drive?

The USB flash drive was formatted with Windows and was empty.  it *did* boot.

What formatting option did you choose within the installer? 
Title: Re: tc-install test result
Post by: ixbrian on January 06, 2012, 08:24:26 AM
Find attached a sript which creates a working, bootable USB stick on a system booted from CorePlus CD (target partition is configured in the beginning of script, change it to fit your system).

Result is OK as long as partition is formatted on WINDOWS. Formatting on TC with mkdosfs before running script result is 'boot error'. So there is a FAT incompatibility somewhere.

I'm not able to reproduce.   On my hardware, booting from CorePlus 4.2 CD and installing to a partitionless pen drive using USB-HDD with vfat formatting results in a bootable, working pen drive.

I also tried the same in VirtualBox and it also produces a working installation there as well. 

Can you please try this on other hardware and see if you experience the same there?
Title: Re: tc-install test result
Post by: bmarkus on January 06, 2012, 08:37:32 AM
I already explained, that it boots on my desktp and doesn't boot on the Acer Aspire 5720Z notebook. Can't tell you more.
Title: Re: tc-install test result
Post by: bmarkus on January 08, 2012, 03:14:00 PM
4.2.1 result

Using frugal mode and existing partition formatted to FAT on WINDOWS previously, without formatting by tc-install created USB stick now boots :)

Using the same setup except formatting partion to FAT with tc-install results 'boot error'.

In all other modes no change.
Title: Re: tc-install test result
Post by: ixbrian on January 08, 2012, 06:45:57 PM
4.2.1 result

Using frugal mode and existing partition formatted to FAT on WINDOWS previously, without formatting by tc-install created USB stick now boots :)

Using the same setup except formatting partion to FAT with tc-install results 'boot error'.

In all other modes no change.

Let us know if you ever find a way to format FAT within Linux and then have it be bootable on your Acer. 
Title: Re: tc-install test result
Post by: Juanito on January 11, 2012, 08:25:59 AM
I already explained, that it boots on my desktp and doesn't boot on the Acer Aspire 5720Z notebook. Can't tell you more.

I just posted an updated version of syslinux - I saw the release notes mentioned something about fixing a bug to do with booting on acer machines...
Title: Re: tc-install test result
Post by: bmarkus on January 11, 2012, 10:02:02 AM
This is what I wanted to see, but no change. In my case what causing issue formatting with TC. Windows preformatted stick works.
Title: Re: tc-install test result
Post by: curaga on January 11, 2012, 10:08:58 AM
Or from another POV, your Acer's bios is wrong and won't boot a standard USB-HDD, no? ;)
Title: Re: tc-install test result
Post by: bmarkus on January 11, 2012, 10:14:44 AM
Or from another POV, your Acer's bios is wrong and won't boot a standard USB-HDD, no? ;)

Well, it boots when stick is created in Windows with core2usb, unetbootin or other tools. Also works if installed with tc-install using native linux file system.

Anyhow, why I'm curious do not have time to investigate what is behind as I can install USB on Windows.

I see many forum notes referring to similar Acer related issues. Also tried SLAX to install on LINUX and got same fauilure while SLAX WINOWS installation is also OK.