Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[gentoo-user] gentoo install on Dell restore partition... ..

 
   Linux (Home) -> User RSS
Next:  [gentoo-user] No progress indicator in bootsplash  
Author Message
Michael Higgins

External


Since: Jan 22, 2008
Posts: 14



(Msg. 1) Posted: Tue Jul 15, 2008 7:40 am
Post subject: [gentoo-user] gentoo install on Dell restore partition... live?
Archived from groups: linux>gentoo>user (more info?)

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.

Any suggestions appreciated in advance.

Cheers,

--
|\ /| | | ~ ~
| \/ | |---| `|` ?
| |ichael | |iggins \^ /
michael.higgins[at]evolone[dot]org
--
gentoo-user.DeleteThis@lists.gentoo.org mailing list
Back to top
Login to vote
Nikos Chantziaras

External


Since: Oct 27, 2006
Posts: 289



(Msg. 2) Posted: Tue Jul 15, 2008 8:50 am
Post subject: [gentoo-user] Re: gentoo install on Dell restore partition... live? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 Razz

--
gentoo-user.RemoveThis@lists.gentoo.org mailing list
Back to top
Login to vote
Nikos Chantziaras

External


Since: Oct 27, 2006
Posts: 289



(Msg. 3) Posted: Tue Jul 15, 2008 9:00 am
Post subject: [gentoo-user] Re: gentoo install on Dell restore partition... live? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Nikos Chantziaras wrote:
> 'cp -a' your existing / to your target / (except /dev, /sys and /proc).
> If you mounted your target / as /root/target

/root/hd, but I'm sure you were able to figure out the typo in your own Wink

--
gentoo-user.RemoveThis@lists.gentoo.org mailing list
Back to top
Login to vote
Nikos Chantziaras

External


Since: Oct 27, 2006
Posts: 289



(Msg. 4) Posted: Tue Jul 15, 2008 9:00 am
Post subject: [gentoo-user] Re: gentoo install on Dell restore partition... live? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Nikos Chantziaras wrote:
> mount -t proc none /root/mnt/proc
> mount -o bind /dev /mnt/gentoo/dev

Bah, too much copy&paste without paying attention (it's early and no
coffee yet Razz) Should of course be:

mount -t proc none /root/hd/proc
mount -o bind /dev /root/hd/dev

--
gentoo-user.DeleteThis@lists.gentoo.org mailing list
Back to top
Login to vote
Nikos Chantziaras

External


Since: Oct 27, 2006
Posts: 289



(Msg. 5) Posted: Tue Jul 15, 2008 9:50 am
Post subject: [gentoo-user] Re: gentoo install on Dell restore partition... live? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Neil Bothwick wrote:
> On Tue, 15 Jul 2008 09:43:33 +0300, Nikos Chantziaras wrote:
>
>> '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
>
> Or replace all this with one command
>
> cp -al / /root/hd

I assume you meant 'cp -ax' Razz

That's indeed faster than typing everything by hand and I forgot about it ;P


> or, my preference
>
> rsync -ax / /root/hd/

Well, /root/hd is empty so there's nothing to win with rsync other than
it being slower than cp. But it does the job too, anyway.

--
gentoo-user RemoveThis @lists.gentoo.org mailing list
Back to top
Login to vote
Michael Higgins

External


Since: Jan 22, 2008
Posts: 14



(Msg. 6) Posted: Tue Jul 15, 2008 5:20 pm
Post subject: Re: [gentoo-user] Re: gentoo install on Dell restore partition... live? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 15 Jul 2008 08:52:20 +0100
Neil Bothwick <neil.DeleteThis@digimed.co.uk> wrote:

> On Tue, 15 Jul 2008 10:42:20 +0300, Nikos Chantziaras wrote:
>
> > I assume you meant 'cp -ax' Razz
>
> I did, it's tar that uses -l for this.
>
> > > rsync -ax / /root/hd/
> >
> > Well, /root/hd is empty so there's nothing to win with rsync other
> > than it being slower than cp. But it does the job too, anyway.
>
> It preserves directory time stamps, which cp does not. It's not slower
> because the destination is empty so the initial file scan takes no
> longer than with cp. Oh, and you can stop and restart it.
>
>

OK Guys, thanks for the tips. I'll be trying later this week, just in
case Saturday means a trip to the physical location. Sad

Cheers,

--
|\ /| | | ~ ~
| \/ | |---| `|` ?
| |ichael | |iggins \^ /
michael.higgins[at]evolone[dot]org
--
gentoo-user.DeleteThis@lists.gentoo.org mailing list
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[gentoo-user] Gentoo "Install CD" 2008.Feb.08. minimal i686 - Ladies and Gentleman, Finally I succeed to build a minimal install CD using catalyst. Unfortunately some bugs of the genkernel package caused some white hair for me, but the trunk version seems working :) (Thank you developers and bug reporters for the...

[gentoo-user] Install Gentoo on one machine, then move the.. - Hey again everyone, Here is my situation: I have CentOS running on a system in a datacenter, but want to switch to Gentoo. Basically what I've started to do is installed Gentoo on a P4 3.0Ghz machine at home, and plan on moving it to a Pentium D..

[gentoo-user] Seeking advise for gentoo install/upgrade - I have a bit of a situation as I plan to do upgrade/install gentoo for the following systems: (All these systems are currently running gentoo (2.6.11) with the portage snapshot of 20051009) System Processor./HW some info. [1] ...

[gentoo-user] Install Windows XP on Gentoo Laptop - (Saw a similar thread, going the wrong way.) I have a laptop with a spare partition waiting for WinXP, to install from Dell OEM disks that came originally. Is this possible? I understand XP will overwrite the MBR. So, I'd have to re-install grub &....

[gentoo-user] ext3 partition dissapeared :( - Hi. I'm in bad situation. I have two physical disks. First (DiskA) have 200GB and second (DiskB) have 160GB capacity. On DiskB I have Linux partitions and some data partitions. On DiskA I had had 40GB NTFS (Windows) and 160GB NTFS partitions (data), but ...
       Linux (Home) -> User All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact