Re: Fwd: Progress report on CodeFestAkihabara, macbook Debian installation experience

2006-07-04 Thread Junichi Uekawa
Hi,

  
  # apt-get install refit (when it enters past the NEW queue)
  # gptsync /dev/sda
  
  I've temporarily put refit packages on:
  http://www.netfort.gr.jp/~dancer/tmp/20060702/
 
 I chrooted into /target from the second console of d-i and
 copied the deb package I got from your link.
 I the installed it and run 
 # gptsync /dev/sda
 
 I then installed lilo and rebooted into osx; installed
 refit inside osx and now I can succesfully dual boot.
 Thanx alot for you help.

I think parted is being clever and complying with the spec; which
means it's creating a MBR FAT(fdisk) partition table containing only
one partition. This means if you install with debian-installer, you 
have a broken FAT partition and a correct GPT partition.

At this time, calling gptsync will 'fix' the partition table.

Then, you will be able to install lilo, to the partition. Note that
you don't install lilo to MBR, because MBR doesn't mean much to
MacBook EFI; if you install to the partition, rEFIt will chain load
for you. lilo will need to read the FAT partition table, which means
GPT and FAT needs to be synced.

Also it means that partition to install lilo needs to reside on the
first 4 partitions, since FAT only has 4 primary partitions.


 BTW, the patch below is needed to avoid some warnings
 
 Davide
 
 [EMAIL PROTECTED]:~/refit/refit-0.7$ diff -u debian/rules.orig debian/rules
 --- debian/rules.orig   2006-07-03 21:05:28.0 +0200
 +++ debian/rules2006-07-04 01:28:42.0 +0200
 @@ -42,7 +42,7 @@
 -$(MAKE) -C refit clean
 -$(MAKE) -C gptsync -f Makefile.unix clean 
 #-$(MAKE) -C gptsync -f Makefile clean 
 -   -rm gptsync/*.so gptsync/*.o gptsync/gptsync.efi
 +   -rm -f gptsync/*.so gptsync/*.o gptsync/gptsync.efi
 dh_clean 

Thanks for the patch. However, this warning could be useful
sometimes. It is only emitted for the first-time build only. The error
is ignored with a '-' at the beginning.  For second-time build, a
warning will mean that the rm command is trying to remove something
that doesn't exist, which would be nice to know.


regards,
junichi
-- 
[EMAIL PROTECTED],netfort.gr.jp}   Debian Project


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Fwd: Progress report on CodeFestAkihabara, macbook Debian installation experience

2006-07-03 Thread Davide Viti
Hi Junichi,

On Mon, Jul 03, 2006 at 07:47:26AM +0900, Junichi Uekawa wrote:
  could you please give more details about this?
 
 # apt-get install refit (when it enters past the NEW queue)
 # gptsync /dev/sda

ok, so first I need to partition the disk on osx and then
install refit inside debian.
does lilo has to be installed before running gptsync?

 
 I've temporarily put refit packages on:
 http://www.netfort.gr.jp/~dancer/tmp/20060702/

nice, I'll try it tonight.

thanx,
Davide


signature.asc
Description: Digital signature


Re: Fwd: Progress report on CodeFestAkihabara, macbook Debian installation experience

2006-07-03 Thread Davide Viti
On Mon, Jul 03, 2006 at 07:47:26AM +0900, Junichi Uekawa wrote:
 Current work around is to reboot into rEFIt and run gptsync, and
 then run d-i from CDROM, and then configure the bootloader.
   
  
  could you please give more details about this?
 
 # apt-get install refit (when it enters past the NEW queue)
 # gptsync /dev/sda
 
 I've temporarily put refit packages on:
 http://www.netfort.gr.jp/~dancer/tmp/20060702/

I chrooted into /target from the second console of d-i and
copied the deb package I got from your link.
I the installed it and run 
# gptsync /dev/sda

I then installed lilo and rebooted into osx; installed
refit inside osx and now I can succesfully dual boot.
Thanx alot for you help.

BTW, the patch below is needed to avoid some warnings

Davide

[EMAIL PROTECTED]:~/refit/refit-0.7$ diff -u debian/rules.orig debian/rules
--- debian/rules.orig   2006-07-03 21:05:28.0 +0200
+++ debian/rules2006-07-04 01:28:42.0 +0200
@@ -42,7 +42,7 @@
-$(MAKE) -C refit clean
-$(MAKE) -C gptsync -f Makefile.unix clean 
#-$(MAKE) -C gptsync -f Makefile clean 
-   -rm gptsync/*.so gptsync/*.o gptsync/gptsync.efi
+   -rm -f gptsync/*.so gptsync/*.o gptsync/gptsync.efi
dh_clean 
 
 install: build




signature.asc
Description: Digital signature


Re: Fwd: Progress report on CodeFestAkihabara, macbook Debian installation experience

2006-07-02 Thread Junichi Uekawa
Hi,

  --  Forwarded Message  --
  ...
  ...
Current work around is to reboot into rEFIt and run gptsync, and
then run d-i from CDROM, and then configure the bootloader.
  
 
 could you please give more details about this?

# apt-get install refit (when it enters past the NEW queue)
# gptsync /dev/sda

I've temporarily put refit packages on:
http://www.netfort.gr.jp/~dancer/tmp/20060702/

It really needs more work.


 but I don't know how to properly run this (usin bless I guess, but
 I have problems with the syntax)

$ man bless (on MacOSX)

 
  I'm feeling quite stuck since it is impossible to install Debian
  without either an external storage or a MacOSX installation.


regards,
junichi
-- 
[EMAIL PROTECTED],netfort.gr.jp}   Debian Project


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Fwd: Progress report on CodeFestAkihabara, macbook Debian installation experience

2006-07-01 Thread Frans Pop
Junichi sent this to d-devel, but I feel it's relevant for d-boot too :-)

If anyone has suggestions, I'm sure they'll be welcome.

--  Forwarded Message  --
Subject: Progress report on CodeFestAkihabara, macbook Debian installation 
experience
Date: Saturday 01 July 2006 18:41
From: Junichi Uekawa [EMAIL PROTECTED]
To: debian-devel@lists.debian.org

Hi,

 Worst case: You have to abuse the firmware update released to
 facilitate Boot camp, and have that boot normal lilo.
 Perhaps not as nice as having EFI boot a bootload, or running a
 bootloader as an EFI application, but
 I think that is what most people are currently doing.

I've tried actual installation and have a functional setup.

Here is the current situation:

0. you can reduce the MacOSX partition size using Mac OSX diskutil
   command.

$ sudo diskutil resizevolume disk0s2 20G

1. you can mostly install your system using debian-installer.  cdrom
   boot is possible by holding down C key.

2. Installing the bootloader in d-i will fail.  Current choice is
  elilo, grub and lilo, out of which they all fail after you have
  modified GPT partition, since it'll go out of sync with MBR.

  We probably need a phase to sync GPT-MBR here in d-i.

  Current work around is to reboot into rEFIt and run gptsync, and
  then run d-i from CDROM, and then configure the bootloader.

3. gptsync(rEFIt) seems to create paritions that look like FAT (I
  don't know why this has to be the case), and will only create up to
  4 paritions due to obvious constraints.  (you can check with fdisk
  -l)


for /proc/partitions:
major minor  #blocks  name

   8 0   78150744 sda
   8 1 204800 sda1
   8 2   20971520 sda2
   8 3 976563 sda3
   8 4   19531250 sda4
   8 52929688 sda5

# fdisk -l  (MBR) will see:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   1  26  204819+  ee  EFI GPT
/dev/sda2  26263720971520   af  Unknown
/dev/sda3   *26372758  976563   ef  EFI
 (FAT-12/16/32) /dev/sda42758519019531250+  ef 
 EFI (FAT-12/16/32)


4. However hard I tried I have not yet gotten elilo to work. It
doesn't seem to be able to load the kernel; it seems to stop after
starting to try loading the kernel.

5. grub doesn't seem to want to work. It probably is due to the fact
   that the MBR partition table claims partition type is all FAT, and
   grub is confused about it.

6. installing lilo to partition will work. Installing lilo to MBR is
   most probably not going to work.

7. If you have rEFIt, you can boot from USB devices etc. If you chose
   that way things are really simple since you can use FAT
   partitioning, which our existing tools (grub/lilo) function
   properly with.

8. to get rEFIt to work, you will need to locate the files and bless
  it with bless command in MacOSX. The command doesn't seem to
  affect the nvram parameters, so it's most probably changing
  something in the hfsplus filesystem.

9. The current working bootloading procedure is:
  rEFIt - lilo - linux kernel
  rEFIt - MacOSX

10. It is possible to use rEFIt on CDROM, which is useful for rescue
  booting.



I'm feeling quite stuck since it is impossible to install Debian
without either an external storage or a MacOSX installation.


regards,
junichi
--
[EMAIL PROTECTED],netfort.gr.jp}   Debian Project
---


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Fwd: Progress report on CodeFestAkihabara, macbook Debian installation experience

2006-07-01 Thread Davide Viti
On Sat, Jul 01, 2006 at 07:21:32PM +0200, Frans Pop wrote:
 Junichi sent this to d-devel, but I feel it's relevant for d-boot too :-)

thanx, I got a Macbook today and I'm trying to install Debian on it
First experience ever with an Apple product, so I have no background
with tools / problems 

 --  Forwarded Message  --
 ...
 ...
   Current work around is to reboot into rEFIt and run gptsync, and
   then run d-i from CDROM, and then configure the bootloader.
 

could you please give more details about this?
I read about gptsync from:

http://sharealike.org/index.php?p=258more=1c=1tb=1pb=1

but I don't know how to properly run this (usin bless I guess, but
I have problems with the syntax)

 I'm feeling quite stuck since it is impossible to install Debian
 without either an external storage or a MacOSX installation.

same here

thanx,
Davide


signature.asc
Description: Digital signature