From: Nikos Chantziaras <realnc@arcor.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: gentoo install on Dell restore partition... live?
Date: Tue, 15 Jul 2008 09:43:33 +0300 [thread overview]
Message-ID: <g5hgun$b4h$1@ger.gmane.org> (raw)
In-Reply-To: <20080714223103.5969a906@evolone.org>
Michael Higgins wrote:
> So, I finally got the OK to nuke another Dell winbox. My dream is to:
>
> * Partition the restore partition (3.6 GB) for any small linux
> installation
>
> * make that partition active, bootable, with grub installed
>
> * reboot and ssh into that linux machine to finish by toasting NTFS
> partition and making it my gentoo system '/' as per usual...
>
> Can this be done without physical access to the machine which is
> currently running windows XP? I am administrator and get 'there' via
> RDP.
It is possible: http://www.gentoo.org/doc/en/altinstall.xml#doc_chap5
But not really recommended because if you do something wrong (wrong grub
config, SSH misconfiguration, etc.) you'll need to go there and get
physical access.
Also, instead of installing a downloaded tarball, you can just clone the
existing Gentoo installation into the new partition and boot from it.
This usually means:
'cp -a' your existing / to your target / (except /dev, /sys and /proc).
If you mounted your target / as /root/target, you do:
cp -a /usr /root/hd
(repeat this for all directories in your current / *EXCEPT* /dev, /proc,
/sys and /lost+found)
mkdir /root/hd/dev
mkdir /root/hd/proc
mkdir /root/hd/sys
mknod /root/hd/dev/console c 5 1
mknod /root/hd/null c 1 3
touch /root/hd/dev/.keep
touch /root/hd/proc/.keep
touch /root/hd/sys/.keep
Now chroot into it:
mount -t proc none /root/mnt/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /root/hd /bin/bash
Now edit /etc/fstab to use the new partitions, edit /boot/grub/grub.conf
and reinstall grub:
grub
root (hd0,0) <-- sustitute with what you really have/want
setup
quit
Now change your SSH config to allow for root login! (Or add a normal
user if you don't want that.) In any case, check your SSH config.
You're ready. Leave the chroot and unmount:
exit
umount /root/hd/dev
umount /root/hd/proc
If you've set up grub correctly while in the chroot, you can now reboot
and the new system should come up. If not, I hope it's not a long drive
or walk to get physical access :P
--
gentoo-user@lists.gentoo.org mailing list
next prev parent reply other threads:[~2008-07-15 6:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-15 5:31 [gentoo-user] gentoo install on Dell restore partition... live? Michael Higgins
2008-07-15 5:39 ` Robert Bridge
2008-07-15 6:43 ` Nikos Chantziaras [this message]
2008-07-15 6:47 ` [gentoo-user] " Nikos Chantziaras
2008-07-15 6:51 ` Nikos Chantziaras
2008-07-15 7:09 ` Neil Bothwick
2008-07-15 7:42 ` Nikos Chantziaras
2008-07-15 7:52 ` Neil Bothwick
2008-07-15 15:17 ` Michael Higgins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='g5hgun$b4h$1@ger.gmane.org' \
--to=realnc@arcor.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox