Board.KolibriOS.org

Official KolibriOS board
It is currently Mon Sep 16, 2019 3:32 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 18 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Tue Jul 24, 2012 3:49 am 
Offline

Joined: Tue Jul 24, 2012 3:40 am
Posts: 8
Kolibri seems very interesting and I would like to try it out. I use Windows 2008 as primary so decided to try and set up a dual boot. I have set aside a 10 gig partition k:\ and put kolibri.img and "mtldr" on it. Then I used a program called Visual BCD Editor (Win2008 doesn't use boot.ini) to add a loader with application device "k:\" and path "\mtldr". At first, everything seems OK- there is a boot menu and I select Kolibri, but at that point what looks like a command line prompt appears on the screen but with what looks like garbage characters.. something like "|#>" (but not exactly, I don't know how to represent some of the characters that show up)

I can't type anything, the system just sits there, and I have to power it off manually.

I tried to install on a USB drive instead, and get the error "Cannot open physical device or device error (no administrator rights?). But I run as administrator. I don't know what to do about this one either, I'm afraid...

I would actually prefer to run Kolibri from a USB drive but have no idea what to do about that error :/


Top
   
PostPosted: Tue Jul 24, 2012 6:25 am 
Offline

Joined: Tue Jul 24, 2012 3:40 am
Posts: 8
I would still like to find a solution to the dual boot and USB stick problems, but while reading I discovered something else:

These are very helpful instructions on how to get KolibriOS running in qemu: http://wiki.kolibrios.org/wiki/Connecti ... et_in_Qemu. These work for me, using qemu manager 4.0 I was able to follow the instructions exactly and run KolibriOS in windowed mode. Now that I have her running, I am intrigued and enjoy Kolibri very much.

I thought to add these instructions to the wiki's FAQ and dual boot sections, but I don't know how to register there. I see a link to log in, but no registration link, and the wiki does not allow anonymous editing. Is it possible to register? I hope I did not miss the link :?

Also another problem - how to save/load files from hard disk when using Qemu?


Top
   
PostPosted: Tue Jul 24, 2012 2:30 pm 
Offline
User avatar

Joined: Mon Oct 27, 2008 10:10 pm
Posts: 811
aquas wrote:
Also another problem - how to save/load files from hard disk when using Qemu?

http://www.h7.dion.ne.jp/~qemu-win/HowT ... l#harddisk
or
viewtopic.php?f=46&t=1995


Top
   
PostPosted: Wed Jul 25, 2012 2:59 am 
Offline

Joined: Tue Jul 24, 2012 3:40 am
Posts: 8
Thank you. I set up a shared folder from Windows but unfortunately do not see how to access it in Kolibri.


Top
   
PostPosted: Wed Jul 25, 2012 11:25 am 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
You should make virtual HDD with qemu-img, then format it to FAT32 with something like DOS boot floppy (from QEMU of course), then you can use this HD with Kolibri to store data and exchange with Windows (using winImage or anything else).

Another way to install Kolibri to USB stick:
1) Install GRUB2 onto your stick
2) Download MEMDISK tool
3) Download latest kolibri.img from http://builds.kolibrios.org
4) Copy MEMDISK to your stick and extract kolibri.img from svn-XXXX.7z to your stick too
5) Add boot section to grub.cfg:
linux16=/memdisk
initrd16=/kolibri.img


Top
   
PostPosted: Wed Jul 25, 2012 1:08 pm 
Offline

Joined: Tue Jul 24, 2012 3:40 am
Posts: 8
Thank you for the suggestions.. unfortunatly I'm still having problems. I used qemu-img to create a 1gb image file on the same drive as kolibri.img. I mounted it with ImDisk and formatted as FAT32. Then I put a "test.txt" file in the image (the text file just contains "aaa"). I am using qemu manager, and I added this image to the "Disk Configuration" tab under "Hard Disk Drives" (I made it F:).

Without this extra image, I only have the following in kolibri:
- RAM-disk /rd/1/
- Floppy disk /fd/
- CD-drive /cd2/

With the image added to qemu manager, kolibri shows:
- RAM-disk /rd/1/
- Floppy disk /fd/
- Hard disk drive /hd3/
- CD-drive /cd2/
- SATA disk drive /bd0/

But nothing is in the 2 new folders (/hd3/ and /bd0/) and I can't seem to write to them.

Also, I have tried unsuccessfully to get grub installed on a usb stick. I installed debian, dual boot w/ windows 2008, and now am trying to add KolibriOS to grub2 from debian. I am new to linux so maybe I am doing something wrong here.

fdisk -l gives me:


Device Boot Start End Blocks Id System
/dev/sda1 1 5099 40957686 7 HPFS/NTFS
/dev/sda2 5100 16848 94373068 f W95 Ext'd (LBA)
/dev/sda3 * 16848 21711 39062528 83 Linux
/dev/sda5 5100 15543 83886999 7 HPFS/NTFS
/dev/sda6 15543 16848 10485760 b W95 FAT32

sda6 is the partition I've set aside for Kolibri. I opened up 40_custom in /etc/grub.d and added the following to it:

menuentry "KolibriOS" {
insmod fat32
set root = '(hd0,6)'
linux16 /memdisk
initrd16 /kolibri.img
}

I copied memdisk and kolibri.img to sda6, and then I run update-grub and reboot

When I select KolibriOS from the grub2 menu, I get an error message:

Error: File not found
Error: Not an assignment
Error: File not found
Error: You need to load the kernel first

I don't know what to do here. I have also tride set root = '(/dev/sda6)' with no luck

Thank you again for the help


Top
   
PostPosted: Wed Jul 25, 2012 2:00 pm 
Offline

Joined: Sun Feb 18, 2007 8:34 pm
Posts: 158
aquas wrote:
I would still like to find a solution to the dual boot...
I would like to suggest you to use following steps without reconfiguration BOOTMGR.

1. Write my MBR boot loader Alter into MBR and setup it (set keyflags to 8, set altpart to point to "k:").

2. Write FAT32/NTFS boot loader for ntldr (nt5fat32.bin/nt5ntfs.bin) into "k:" (you can install it someway like this as well: "bootsect /nt52 k:").

3. Copy ntldr, boot.ini, bootfont.bin, ntdetect.com to "k:\" and edit boot.ini like this:
Code:
[boot loader]
timeout=30
default=c:\mtldr
[operating systems]
c:\mtldr="KolibriOS"
(see "install mtldr" for details).

4. Copy mtldr and kolibri.img to "k:\".

That's all.


Top
   
PostPosted: Wed Jul 25, 2012 2:02 pm 
Offline

Joined: Sun Feb 18, 2007 8:34 pm
Posts: 158
aquas wrote:
/dev/sda6 15543 16848 10485760 b W95 FAT32

sda6 is the partition I've set aside for Kolibri.
Can you convert sda6 to sda4?


Top
   
PostPosted: Wed Jul 25, 2012 2:21 pm 
Offline

Joined: Tue Jul 24, 2012 3:40 am
Posts: 8
I tried using fdisk's "f" function to fix the order, but it remains sda6


Top
   
PostPosted: Wed Jul 25, 2012 4:27 pm 
Offline
User avatar

Joined: Tue May 08, 2007 12:44 am
Posts: 346
aquas wrote:
I mounted it with ImDisk and formatted as FAT32.

ImDisk can work only with raw images for now. You can create an image with ImDisk, format it, copy files onto and then convert it into appropriate format via qemu-img when needed. But Qemu can work with raw images too.

_________________
Разработчик языка программирования Кантор


Top
   
PostPosted: Wed Jul 25, 2012 5:13 pm 
Offline

Joined: Sun Feb 18, 2007 8:34 pm
Posts: 158
aquas wrote:
I tried using fdisk's "f" function to fix the order, but it remains sda6
Try more advanced partitioning tools. If you have not become successful in this way, you can try other technique.

Even if I will have given you a boot loader that supports partitions sda5+, ntldr will not work well in those partitions until you will have done certain actions. So we still can use Alter (version 3):
- get starting sector number of the partition where "k:" is located;
- write this number into HiddenSectors field of the sector (offset 1Ch, size 4 bytes);
- write this number into altsec field of the MBR, set keyflags to 8, set altpart to 0 or to 6.


Top
   
PostPosted: Wed Jul 25, 2012 8:15 pm 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
Quote:
sda6 is the partition I've set aside for Kolibri. I opened up 40_custom in /etc/grub.d and added the following to it:

menuentry "KolibriOS" {
insmod fat32
set root = '(hd0,6)'
linux16 /memdisk
initrd16 /kolibri.img
}

I copied memdisk and kolibri.img to sda6, and then I run update-grub and reboot

When I select KolibriOS from the grub2 menu, I get an error message:

Error: File not found
Error: Not an assignment
Error: File not found
Error: You need to load the kernel first

I don't know what to do here. I have also tride set root = '(/dev/sda6)' with no luck

then you should boot into GRUB command line, then find your files. GRUB doesn't support "/dev/sda6" naming. Your HD is probably (hd0,6) or something like this. Try "ls (hd0,6)/" command.


Top
   
PostPosted: Wed Jul 25, 2012 9:08 pm 
Offline

Joined: Tue Jul 24, 2012 3:40 am
Posts: 8
Alright, I managed to get an sda4 using gparted. I booted to grub commandline and ls is showing me (hd0,msdos4)

So I changed to

insmod part_msdos
set root = '(hd0,msdos4)'

still not working (same errors), although the first "file not found" has disappeared.

If I cannot get this one working I would like to try your bootloader suggestion Phantom-84, but I'm afraid those steps are kind of complicated for me to follow.. I don't know how to write Alter-3.bin into the MBR and I don't understand step 2 at all.


Top
   
PostPosted: Wed Jul 25, 2012 9:19 pm 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
aquas wrote:
Alright, I managed to get an sda4 using gparted. I booted to grub commandline and ls is showing me (hd0,msdos4)

So I changed to

insmod part_msdos
set root = '(hd0,msdos4)'

still not working (same errors), although the first "file not found" has disappeared.

If I cannot get this one working I would like to try your bootloader suggestion Phantom-84, but I'm afraid those steps are kind of complicated for me to follow.. I don't know how to write Alter-3.bin into the MBR and I don't understand step 2 at all.


I think something's wrong with files and file paths.
Try to copy files to folder "boot" on disk where's your Debian, and add lines:

menuentry "Kolibri" {
insmod ext2
set root='your_partition'
linux16 /boot/memdisk
initrd16 /boot/kolibri.img
}


Top
   
PostPosted: Wed Jul 25, 2012 9:28 pm 
Offline

Joined: Tue Jul 24, 2012 3:40 am
Posts: 8
Something was wrong with my script :x

set root = '(hd0,msdos4)'

I discovered there can be no spaces between the "=" :roll:

However I still have a problem - with qemu, kolibri would boot really quickly. Now, booting normally, it takes about a minute for the counter to reach 100% and a few seconds more to finish booting. Very slow. But I have HDD access..

Any way to speed up the boot? I will try to find something in search, too.

Thank you!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 18 posts ]  Go to page 1 2 Next

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited