Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Partitions lost after chroot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Likvid
n00b
n00b


Joined: 16 Dec 2002
Posts: 30

PostPosted: Tue Dec 17, 2002 12:06 pm    Post subject: Partitions lost after chroot Reply with quote

I'm installing Gentoo 1.4rc1 with stage1 tarball.

I have a DAC960 controller which i've found now after lurking around at -dev/rd/disc0/disc

Why not /dev/rd/c0d0? as every other distro?

However....

After i've created the partitions i do the chroot /mnt/gentoo as instructed i don't find the /dev/rd directory anymore?!!??

The partitions are lost.....

Where are they as i can't do /sbin/lilo in the end of the installation because lilo can't find the partitions...


The procedure i've done:

Boot with the 1.4rc1 Live CD.

Boots up fine and recognize my DAC960 controller.

#net-setup eth0 and then configure the right addresses.

I ping an IP and i get echo-replies.
#nano /etc/resolv.conf to configure the right DNS.

Then i make the partitions on the RAID-0 array:

part1 100MB Flag:Bootable Linux ext2
part2 35000MB Linux ext2
part3 500MB Linux Swap

#mke2fs /dev/rd/disc0/part1
#mke2fs /dev/rd/disc0/part2
#mkswap /dev/rd/disc0/part3
#swapon /dev/rd/disc0/part3

#mkdir /mnt/gentoo
#mkdir/mnt/gentoo/boot

#mount /dev/rd/disc0/part1 /mnt/gentoo/boot
#mount /dev/rd/disc0/part2 /mnt/gentoo

#tar -xvjpf /mnt/gentoo/stage1******.bz2

#mount -o bind /proc /mnt/gentoo/pro
#cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf

#chroot /mnt/gentoo /bin/bash
#env-update
#source /etc/profile


Now if i go into /dev i can't find /dev/rd........

Where did my partitions go and where did my disc go?

Is this a bug with 1.4rc1?
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Tue Dec 17, 2002 2:53 pm    Post subject: Reply with quote

I don't know if this is a type error in your post alone or if it is both in your post and during your install, but your mount command for proc is missing the final 'c' to make it correct. I would guess this is an error only in your post, but it is certainly worth checking on! The command should read

Code:
mount -o bind /proc /mnt/gentoo/proc


But now that I read your post more closely it looks like there is a lot that is not right here, again I don't know if you just posted it differently than you actually configured things or what.

It appears you make the /boot mount point onto the directory /mnt/gentoo before /mnt/gentoo is mounted to your part2 partition. Then it looks like you mount your part1 partition (boot) to /mnt/gentoo/boot, but then you overwrite that mount point by mounting /mnt/gentoo to part2 which means that your boot partition (/dev/rd/disc0/part1) should be empty after going through the entire install. You should, though, have a complete and operational /boot folder located on your part2 (/dev/rd/disc0/part2/boot) which you might be able to move to your part1 using the Live CD as a rescue disk. A corrected version of your steps below should read as follows:

Code:

Boot with the 1.4rc1 Live CD.

setup network

make the partitions on the RAID-0 array:

part1 100MB Flag:Bootable Linux ext2
part2 35000MB Linux ext2
part3 500MB Linux Swap

#mke2fs /dev/rd/disc0/part1
#mke2fs /dev/rd/disc0/part2
#mkswap /dev/rd/disc0/part3
#swapon /dev/rd/disc0/part3

#mkdir /mnt/gentoo
#mount /dev/rd/disc0/part2 /mnt/gentoo

#mkdir/mnt/gentoo/boot
#mount /dev/rd/disc0/part1 /mnt/gentoo/boot

#tar -xvjpf /mnt/gentoo/stage1******.bz2

#mount -o bind /proc /mnt/gentoo/proc
#cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf

#chroot /mnt/gentoo /bin/bash
#env-update
#source /etc/profile


Hope that helps!

Regards,
BonezTheGoon

[EDIT: Fixed type error.]


Last edited by BonezTheGoon on Tue Dec 17, 2002 4:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Tue Dec 17, 2002 3:39 pm    Post subject: Reply with quote

You might need to bind the /dev to /mnt/gentoo/dev for part of the
install - I had to do that with the cpqarray driver on some old Compaq
servers. Obviously, /mnt/gentoo/dev isn't running devfs yet, so many
of the devices that might be there once you get it running as /dev may
not be created yet.

Code:

mount -o bind /dev /mnt/gentoo/dev


Don't forget to umount it when you're finished.

--rtn
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
Page 1 of 1

 
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