LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-01-2007, 02:46 AM   #16
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47

How does /etc/resolv.conf look like?

I figured you wont need to :
cp -L /etc/resolv.conf /mnt/mdv2007/etc/resolv.conf

since that should already be there from the original install
 
Old 02-01-2007, 03:01 AM   #17
fopetesl
Member
 
Registered: Jan 2005
Location: Yorkshire Dales, UK
Distribution: Ubuntu 5.10; Mandriva 2007; Debian Lenny
Posts: 147

Original Poster
Rep: Reputation: 15
Wink

Quote:
Originally Posted by crashmeister
How does /etc/resolv.conf look like?

I figured you wont need to :
cp -L /etc/resolv.conf /mnt/mdv2007/etc/resolv.conf

since that should already be there from the original install
Yeah. Did that, i.e. checked resolv.conf was identical before and after chroot-ing.
Have just downloaded 2.6.20 rpm via XP and written to ext3 '/' partition. Will try to install either tonight or tomorrow. More later (have to earn some ££s )
 
Old 02-02-2007, 11:44 AM   #18
fopetesl
Member
 
Registered: Jan 2005
Location: Yorkshire Dales, UK
Distribution: Ubuntu 5.10; Mandriva 2007; Debian Lenny
Posts: 147

Original Poster
Rep: Reputation: 15
Exclamation

Two steps forward, one back.
I downloaded and put a kernel 2.6.20 rpm in /dev/sda4/tmp.
When I run urpmi on it and bypass check warnings the 'build' stops because it cannot find a valid boot file/directory.

My /grub directory is in its own /boot partition: /dev/sda7

So I did this
Code:
sh-3.1# mkdir /mnt/mdv2007
sh-3.1# mount /dev/sda4 /mnt/mdv2007
sh-3.1# mount -t proc none /mnt/mdv2007/proc
sh-3.1# mount -o bind /dev /mnt/mdv2007/dev
sh-3.1# mkdir /mnt/mdv2007boot
sh-3.1# mount /dev/sda7 /mnt/mdv2007boot
sh-3.1# mount -o bind /boot /mnt/mdv2007boot
mount: Mounting /boot on /mnt/mdv2007boot failed: No such file or directory
sh-3.1#
Well, of course it failed finding /mnt/mdv2007boot, the only directories in partition /boot are grub, etc.
So I have misunderstood mount -o bind

So how do I tell urpmi that my /boot directory is actually /mnt/mdv2007boot?
 
Old 02-02-2007, 12:57 PM   #19
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
You need to do (with the /boot partition):

sh-3.1# mkdir /mnt/mdv2007
sh-3.1# mount /dev/sda4 /mnt/mdv2007
sh-3.1# mount /dev/sda7 /mnt/mdv2007/boot

when you mount mdv2007 there should be a /mdv2007/boot there already - all you need to do is mount it.
and then:

sh-3.1# mount -t proc none /mnt/mdv2007/proc
sh-3.1# mount -o bind /dev /mnt/mdv2007/dev

and after that chroot.
 
Old 02-02-2007, 01:05 PM   #20
fopetesl
Member
 
Registered: Jan 2005
Location: Yorkshire Dales, UK
Distribution: Ubuntu 5.10; Mandriva 2007; Debian Lenny
Posts: 147

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by crashmeister
You need to do (with the /boot partition):

sh-3.1# mkdir /mnt/mdv2007
sh-3.1# mount /dev/sda4 /mnt/mdv2007
sh-3.1# mount /dev/sda7 /mnt/mdv2007/boot

when you mount mdv2007 there should be a /mdv2007/boot there already - all you need to do is mount it.
and then:

sh-3.1# mount -t proc none /mnt/mdv2007/proc
sh-3.1# mount -o bind /dev /mnt/mdv2007/dev

and after that chroot.
Yes there is a /mnt/mdv2007/boot directory but it's empty. You are saying that
sh-3.1# mount /dev/sda7 /mnt/mdv2007/boot
overrides/bypasses the original (empty) /boot directory?
Of course I'll try tomorrow anyway but am interested
 
Old 02-03-2007, 07:00 AM   #21
fopetesl
Member
 
Registered: Jan 2005
Location: Yorkshire Dales, UK
Distribution: Ubuntu 5.10; Mandriva 2007; Debian Lenny
Posts: 147

Original Poster
Rep: Reputation: 15
Thumbs down About to give up ..

About to give up.
I got /boot partition to mount OK but now when I urpmi the new kernel 2.6.20 it trashes out with a message about not finding /boot/vmlinuz.
Except /boot/vmlinuz is there, at least a symlink to a kernel 2.6.20 is there _and_ the symlinked file is there also.
I'm really p*ss*d off about this especially since bl**dy XP ran the new hardware without a hitch.

What chance has LINUX against Windoze got when it refuses to load just because there are some hardware issues that cannot be resolved without a lot of grief.

Thanks guys for your input, at least I know the learning curve is still on the steep bit and I have learned something
 
Old 02-03-2007, 10:00 AM   #22
el amigo*
Member
 
Registered: Dec 2006
Location: República Dominicana
Distribution: CentOS, Scientific Linux
Posts: 122

Rep: Reputation: 15
-how about reinstaling MDV without formating ?

Then you would have a new system, without loosing your datas ?

(it worked for me with Blag, based on FC5, various times...)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A64 rig, what to use? abcdefg Linux - Newbie 3 08-20-2005 06:32 PM
Hint: Wanna try Linux, so wanna rig your Windows system to dual-boot? sundialsvcs Linux - Newbie 2 08-16-2005 02:56 PM
new rig frostedthorns Linux - Hardware 1 08-27-2004 01:49 PM
fedora core 2 (FC2) freezes while running. Cannot boot into KDE it freezes mraswan Fedora 0 05-25-2004 07:46 PM
Kernel 2.6 does NOT like my rig! unts Linux - Hardware 0 05-23-2004 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration