Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Broken system: no root account, read only user account
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 26, 27, 28  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 9:42 pm    Post subject: Reply with quote

DONAHUE wrote:
ls /root/rescue in the resccd terminal

mount -o bind /usr/portage /root/rescue/usr/portage failed because
we never unpacked a portage snapshot and that was confusion


I am slightly confused now:

ls /root/rescue
ls: cannot access /root/rescue: No such file or directory

I thought we are creating a virtual chroot within an arbitrary directory which happened to be called 'rescue' in my user home directory within chroot.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Sep 14, 2013 9:43 pm    Post subject: Reply with quote

in the chroot terminal
Code:
exit

_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 9:44 pm    Post subject: Reply with quote

DONAHUE wrote:
in the chroot terminal
Code:
exit
Done.. looks like I am back to rescuecd
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Sep 14, 2013 9:46 pm    Post subject: Reply with quote

Code:
cd
umount -l /root/rescue/dev{/shm,/pts,}
umount -l /root/rescue{/boot,/proc,}
then take coffee break while I do a little testing and comeback
_________________
Defund the FCC.


Last edited by DONAHUE on Sat Sep 14, 2013 9:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 9:47 pm    Post subject: Reply with quote

umount -l /root/rescue/dev{/shm,/pts,}

umount: /root/rescue/dev/shm: not found
umount: /root/rescue/dev/pts: not found
umount: /root/rescue/dev: not found
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 9:51 pm    Post subject: Reply with quote

I think it is partially my fault, I followed NeddySeagoon procedure for creating rescue, rathen that yours,
which was done in /home/username/rescue.

Ican redo the whole thing since I have the stage3 tarball, presumably.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Sep 14, 2013 9:53 pm    Post subject: Reply with quote

Code:
ls
should show
Quote:
bin etc lib32 mnt root stage3-amd64-20130822.tar.bz2 usr
boot home lib64 opt run sys var
dev lib media proc sbin tmp

_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 9:56 pm    Post subject: Reply with quote

sure it did so something along that line, but I already exited the chroot... so, now the same directory tree is located in:

/mnt/gentoo/home/username/rescue

ls
bin boot dev etc home lib lib32 lib64 media mnt opt proc root run sbin sys tmp usr var
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Sep 14, 2013 9:56 pm    Post subject: Reply with quote

we can just restart it with
Code:
mkdir /root/rescue

_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 10:00 pm    Post subject: Reply with quote

OK, I can restart with what you originally suggested:

mkdir rescue
cd rescue
wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3/stage3-amd64-20130822.tar.bz2
tar xvjpf stage3-*.tar.bz2
cp -a /etc/portage etc
cp /etc/resolv.conf etc
nano etc/portage/make.conf

But that was supposed to be in chroot which I already exited... So, I am doing this now from rescuecd, right?
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 10:14 pm    Post subject: Reply with quote

DONAHUE wrote:
from chroot:
Code:
mkdir rescue
cd rescue
wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3/stage3-amd64-20130822.tar.bz2
tar xvjpf stage3-*.tar.bz2
cp -a /etc/portage etc
cp /etc/resolv.conf etc
nano etc/portage/make.conf
add
Quote:
FEATURES="buildpkg"
if there is not a current FEATURES= ;if there is already is a FEATURES= ,add buildpkg to it
make a second chroot in the first chroot:
Code:

mount -t proc none /root/rescue/proc
mount --rbind /sys /root/rescue/sys
mount --rbind /dev /root/rescue/dev
chroot /root/rescue /bin/bash
source /etc/profile
export PS1="(rescue chroot) $PS1"



All these steps are now successfully completed except that it was from rescuecd. Here is my make.conf
http://bpaste.net/show/132499/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Sep 14, 2013 10:21 pm    Post subject: Reply with quote

check that eselect list is pointed where you want it
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 10:22 pm    Post subject: Reply with quote

DONAHUE wrote:
check that eselect list is pointed where you want it
Not quite

eselect profile list
!!! Error: get_repo_path failed
!!! Error: Failed to get a list of valid profiles
exiting
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Sep 14, 2013 10:24 pm    Post subject: Reply with quote

emerge-webrsync
emerge --sync
eselect profile list
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 10:29 pm    Post subject: Reply with quote

emerge --sync won't work due to firewall. but
emerge-webrsync worked fine.

eselect profile list
Available profile symlink targets:
[1] default/linux/x86/13.0 *
[2] default/linux/x86/13.0/selinux
[3] default/linux/x86/13.0/desktop
[4] default/linux/x86/13.0/desktop/gnome
[5] default/linux/x86/13.0/desktop/kde
[6] default/linux/x86/13.0/developer
[7] hardened/linux/x86
[8] hardened/linux/x86/selinux
[9] hardened/linux/uclibc/x86
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Sep 14, 2013 10:33 pm    Post subject: Reply with quote

eselect profile set 5 should match your install?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 10:35 pm    Post subject: Reply with quote

DONAHUE wrote:
eselect profile set 5 should match your install?
hmm.. it was amd64 though.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Sep 14, 2013 10:39 pm    Post subject: Reply with quote

startover time wrong stage3
or you are looking at something on sysresccd nor the chroot
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 10:43 pm    Post subject: Reply with quote

Here is what I see:


(rescue chroot) sysresccd / # eselect profile set 5
(rescue chroot) sysresccd / # eselect profile list
Available profile symlink targets:
[1] default/linux/x86/13.0
[2] default/linux/x86/13.0/selinux
[3] default/linux/x86/13.0/desktop
[4] default/linux/x86/13.0/desktop/gnome
[5] default/linux/x86/13.0/desktop/kde *
[6] default/linux/x86/13.0/developer
[7] hardened/linux/x86
[8] hardened/linux/x86/selinux
[9] hardened/linux/uclibc/x86
(rescue chroot) sysresccd / # ls
bin dev home lib32 media opt root sbin sys usr
boot etc lib lib64 mnt proc run stage3-amd64-20130822.tar.bz2 tmp var

I should clearly be in chroot... remember that your original suggestion was chroot within chroot, but we exited that one. So, this one is chroot directly from rescuecd.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 10:49 pm    Post subject: Reply with quote

Should we unmount everything and start over chroot on rescue again?
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 11:09 pm    Post subject: Reply with quote

I was looking at web-rsync output, and there might be some hints about possible errors:


!!! Invalid PORTDIR_OVERLAY (not a dir): '/usr/portage'
!!! main-repo not set in DEFAULT and PORTDIR is empty.
Fetching most recent snapshot ...
Trying to retrieve 20130913 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20130913.tar.xz.md5sum ...
Fetching file portage-20130913.tar.xz.gpgsig ...
Fetching file portage-20130913.tar.xz ...
Checking digest ...
Getting snapshot timestamp ...
Syncing local tree ...

Number of files: 173006
Number of files transferred: 147906
Total file size: 303.72M bytes
Total transferred file size: 303.72M bytes
Literal data: 303.72M bytes
Matched data: 0 bytes
File list size: 4.17M
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 141.27M
Total bytes received: 2.91M
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Sep 14, 2013 11:10 pm    Post subject: Reply with quote

Boot sysresccd, mount gentoo partitions, enter chroot, nominally:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"
mkdir /root/rescue
cd /root/rescue
wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3/stage3-amd64-20130822.tar.bz2
tar xvjpf stage3-*.tar.bz2
wget http://distfiles.gentoo.org/releases/snapshots/current/portage-latest.tar.bz2
tar xvjf portage-latest.tar.bz2 -C /root/rescue/usr
ls /root/rescue # make sense?
cp -a /etc/portage /root/rescue/etc
cp /etc/resolv.conf /root/rescue/etc
cp /var/lib/portage/world /root/rescue/var/lib/portage/world
nano /root/rescue/etc/portage/make.conf


add
FEATURES="buildpkg"
if there is not a current FEATURES= ;if there is already a FEATURES= , add buildpkg to it
make a second chroot in the first chroot:
Code:
mount -t proc none /root/rescue/proc
mount --rbind /sys /root/rescue/sys
mount --rbind /dev /root/rescue/dev
chroot /root/rescue /bin/bash
source /etc/profile
export PS1="(rescue) $PS1"

tested here
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 11:13 pm    Post subject: Reply with quote

OK, we can have a fresh start.
This part has already been done,
mkdir /root/rescue
cd /root/rescue
wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3/stage3-amd64-20130822.tar.bz2
tar xvjpf stage3-*.tar.bz2


Should erase it all, and redo it anyway?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Sep 14, 2013 11:18 pm    Post subject: Reply with quote

I'd just keep going as long as you are sure you are in the chroot
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Sat Sep 14, 2013 11:38 pm    Post subject: Reply with quote

OK, all the steps were done religiously, and with no trouble. I am in chroot within chroot in / directory.


eselect profile list
Available profile symlink targets:
[1] default/linux/amd64/13.0
[2] default/linux/amd64/13.0/selinux
[3] default/linux/amd64/13.0/desktop
[4] default/linux/amd64/13.0/desktop/gnome
[5] default/linux/amd64/13.0/desktop/kde *
[6] default/linux/amd64/13.0/developer
[7] default/linux/amd64/13.0/no-multilib
[8] default/linux/amd64/13.0/x32
[9] hardened/linux/amd64
[10] hardened/linux/amd64/selinux
[11] hardened/linux/amd64/no-multilib
[12] hardened/linux/amd64/no-multilib/selinux
[13] hardened/linux/amd64/x32
[14] hardened/linux/uclibc/amd64
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 26, 27, 28  Next
Page 6 of 28

 
Jump to:  
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 vote in polls in this forum