So I've got my shiny new laptop (well I've had it a couple of months now).
It came with the obligatory Win7, which I kept cos I need to know how to fix it for work.
I originally shrunk the Win partition, dd'd my / and /home partitions from my old lappy's sid/openbox install over to the new machine & updated the fstab & did a grub install & thought it should work.
I'm pretty sure I had it all set up correctly (right UUID's etc) however I couldn't get it to mount the / partition on boot.
I suspect after a lot of googling and trials that it is to do with the old lappy having IDE controller & the new one having SATA.
The old install was done with "only the necessary options for this hardware", which I don't know if it has a bearing or not.
I've tried rebuilding the initramfs from a chroot from the installer (where everything was recognised and working) which as far as I could tell was successful, but still no joy on booting ("waiting for root filesystem").
Anyway I needed it to go "now" so I did a 'temporary' fresh install of squeeze (default with gnome to see if I liked it yet as well) into another partition, which I've been using since.
I've got the urge to fiddle again and want to set up an amd64 install as well, to get access to the rest of my ram and use my 64 bit cpu as intended.
I previously just used the 32 bit installer I already had (you cant just install an amd64 kernel can you?)
I could just boot an installer, but I've done that before and thought I'd try something new.
I've read the debootstrap manpage and read some howto's so now I'm going to charge ahead and see what happens
Hmm, ok, so I installed debootstrap, prepared my target partition & mounted it at /mnt/sid
Then did
- Code: Select all
# debootstrap --arch amd64 sid /mnt/sid http://ftp.nz.debian.org/debian/
It proceeds to resolve dependencies & download the base system to the target.
Then attempts to chroot into it to be met by
- Code: Select all
W: Failure trying to run: chroot /mnt/sid mount -t proc proc /proc
I try manually chrooting ...
- Code: Select all
# chroot /mnt/sid /bin/bash
chroot: failed to run command `/bin/bash': Exec format error
Presumably I need to be already running an amd64 system
This will be what the
- Code: Select all
--foreign
Do the initial unpack phase of bootstrapping only, for example if the target architecture does not match the host architecture. A copy of debootstrap sufficient for completing the bootstrap process will be installed as /debootstrap/debootstrap in the target filesystem.
Next question is "if I use this option how do I continue on from there?" reboot into it? ...
OK, looks like I'm buggered, I need to be running an amd64 system to complete the debootstrap second stage, which means I either need an amd64 VM or boot an installer on my hardware anyway ... oh well.
I guess I'll have to "reboot myself ... if I'm not back in 20 mins..." its probably because I've gone to have my dinner or found something else to do ...

