Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub Error Collection [Part 1001]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 19, 20, 21 ... 29, 30, 31  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
DONAHUE
Watchman
Watchman


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

PostPosted: Wed Nov 18, 2009 3:32 am    Post subject: Reply with quote

boot sysresccd mount the gentoo partitions and post the result of
Code:
lspci -k
fdisk -l
cat /mnt/gentoo/etc/fstab
cat /mnt/gentoo/boot/grub/grub.conf
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Wed Nov 18, 2009 5:54 pm    Post subject: Reply with quote

oops
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Wed Nov 18, 2009 10:28 pm    Post subject: error 22 Reply with quote

hi,

i have a very weird new problem with grub.
I have reinstalled my pc numerous times over the years successfully.
But today i had to recreate the bios-nvraid, and restore from a backup.
So i started sysrescuecd from my usb-stick, created 1 /boot and lvm-root, untarred the backup (which is working fine on another host), and chrooted to /mnt/gentoo.
Then i run
Code:

grub --device-map=/dev/null

grub> device (hd0,0) /dev/mapper/pdc_xxxxp1
grub> device (hd0) /dev/mapper/pdc_xxxx
grub> root (hd0,0)
grub> setup (hd0)
[b]here i get the error:[/b]
Running "install /boot/grub/stage1 (hd0) (hd0)1+18 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... failed
Error 22: No such partition


fdisk -l shows no errors...
anyone knows how to fix it?

[/b]
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Thu Nov 19, 2009 12:00 am    Post subject: Reply with quote

Hi.

I got gentoo to work. But not the booting part. When I boot up, the kernel panics, and says it can't mount on unknown block (0,2) or something. Could you tell me what to post?

The above message was at the very end of the last page. So it did not get picked up. Posting it again.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Nov 19, 2009 2:13 am    Post subject: Reply with quote

dragos:

boot sysresccd mount the gentoo partitions and post the result of

Code:
lspci -k
lspci -n
fdisk -l
cat /mnt/gentoo/etc/fstab
cat /mnt/gentoo/boot/grub/grub.conf
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Nov 19, 2009 2:15 am    Post subject: Reply with quote

Strowi:

What output did you get from
Quote:
grub> root (hd0,0)
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Thu Nov 19, 2009 3:54 am    Post subject: Reply with quote

DONAHUE wrote:
dragos:

boot sysresccd mount the gentoo partitions and post the result of

Code:
lspci -k
lspci -n
fdisk -l
cat /mnt/gentoo/etc/fstab
cat /mnt/gentoo/boot/grub/grub.conf


Eh... Nevermind. Genkernel fixed this for me.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Nov 19, 2009 4:20 am    Post subject: Reply with quote

Good work. As you have probably guessed you probably had a config problem with your hard drive controller.
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Thu Nov 19, 2009 7:57 am    Post subject: Reply with quote

DONAHUE wrote:
Strowi:

What output did you get from
Quote:
grub> root (hd0,0)


Code:

Filesystem type is ext2fs, partition type 0x83

_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Nov 19, 2009 10:22 pm    Post subject: Reply with quote

wierd indeed. chroot unmerge reemerge grub?? use grub from sysresccd to setup (hd0)??
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Fri Nov 20, 2009 8:44 am    Post subject: Reply with quote

yes, tried everything. chrooted , from sysrcd... i already tried grub2 only to see that dmraid seems not to be supported...
However... on a last desperate try i pulled the hd from my notebook, copied over the /boot/grub files and installed grub from there. I got some lvm-errors, but grub installed fine and works now.
Afterwards i tried again from the backup, but that destroyed the mbr again.
Must be sth. with the disks i guess... but i can't seem to find any error....
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Fri Nov 20, 2009 5:35 pm    Post subject: Reply with quote

at sysresccd command line type grub, no need to chroot. Apologies if I misunderstood the
Quote:
chrooted , from sysrcd...
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Sun Nov 22, 2009 7:05 pm    Post subject: Reply with quote

i did try both ways... same result.
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Wed Nov 25, 2009 2:53 pm    Post subject: Reply with quote

ok, a little update...
my problem seems to be related to dmraid/kernel-specifics.
The sysrescuecd as my desktop-installation both detect the partitions on the raid with the additional p for partitions (like /dev/mapper/pdc_raidsetp1).
My notebook-installation, although it should be as up2date as the desktop detected the raidpartitions oldstyle (without the p).
Only difference is the arch (x86 vs. x86_64).
I guess this makes it grub-unrelated and i have to investigate in dmraid and kernel-settings...

UPDATE: Found it, genkernel using dmraid-1.0.0_16 from source not the ebuild has the new nameing-scheme (with p), dmraid from ebuild on the system has the "undo-p"-patch applied.
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
Nonsense
n00b
n00b


Joined: 03 Dec 2009
Posts: 74

PostPosted: Fri Dec 04, 2009 6:23 am    Post subject: Problem installing Gentoo in VMWare Reply with quote

was installing install-x86-minimal-2007.0-r1 into VMWare

after all the configuration

# > reboot

the system unable to complete reboot but it shows [scroll lock : on/off] endlessly.

need help. thank you
Back to top
View user's profile Send private message
luqas
Guru
Guru


Joined: 02 Jan 2004
Posts: 588
Location: /US/Texas/Beaumont

PostPosted: Fri Dec 04, 2009 3:49 pm    Post subject: Reply with quote

Weird because I am typing this from Gentoo inside VMWare. Of course I used the 10.1 livedvd.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Fri Dec 04, 2009 4:20 pm    Post subject: Reply with quote

Nonsense,

Welcome to Gentoo.

That light flashing is a kernel panic. It means you did something wrong with your kernel configuration.
Possibly your made the hard drive controller for your real motherboard hardware instead of the emulated hardware provided by VMware.

There are lots of other things too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
luqas
Guru
Guru


Joined: 02 Jan 2004
Posts: 588
Location: /US/Texas/Beaumont

PostPosted: Fri Dec 04, 2009 4:26 pm    Post subject: Reply with quote

Yea I found it easier to configure with an IDE controller than SCSI when I create my virtual machine just as an FYI. By default vmware-server defaults to a SCSI controller on the creation. The bad thing is you just cannot change this without going through the whole install process again.
Back to top
View user's profile Send private message
luispa
Guru
Guru


Joined: 17 Mar 2006
Posts: 359
Location: España

PostPosted: Fri Dec 04, 2009 6:58 pm    Post subject: Reply with quote

As mention, it's a kernel config problem. I have it running without any problem.

Luis
Back to top
View user's profile Send private message
OnlyTux
Apprentice
Apprentice


Joined: 15 Mar 2007
Posts: 174

PostPosted: Fri Dec 04, 2009 7:47 pm    Post subject: Reply with quote

Hello,

I am setting up a demonstration machine with 4 operating systems. Probably it is not the best partitioning in the world, but I have only one hard disk available:

- /dev/sda1 ext3 openSUSE / 20GB
- /dev/sda2 ext3 Gentoo hardened / 20GB
- /dev/sda3 ufs2 FreeBSD 20GB
- /dev/sda5 ext3 Gentoo desktop / 38GB
- /dev/sda6 ext3 openSUSE /var 20GB
- /dev/sda7 ext3 Gentoo hardened /var 20GB
- /dev/sda8 ext3 backups not mounted 100GB
- /dev/sda9 swap 2GB

I am having problems in getting at least one Grub to boot each of the systems properly.
Every system has its own Grub in its / partition. I tried putting the 3 linux grubs in the MBR alternatively but none of them works as expected:

- openSUSE's grub can only start openSUSE. Every attempt to boot Gentoo returns "Error 13: Invalid or unsupported executable format";
- The Gentoos' grubs can boot openSUSE and the respective Gentoo / partition, but not the other Gentoo. Same error 13;
- I did not play around with FreeBSD's boot loader. It boots fine via the Gentoo's grubs though.

I am surely missing something, but I can't figure what. Anyway, here is the Gentoo desktop's grub.conf. The hardened's one changes only the 'default' line:
Code:
default 0
timeout 30
splashimage=(hd0,6)/boot/grub/splash.xpm.gz

title Gentoo Desktop 2.6.31-r6
root (hd0,6)
kernel /boot/2.6.31-gentoo-r6 root=/dev/sda7

title OpenSUSE 11.2
rootnoverify (hd0,0)
chainloader +1

title Gentoo hardened 2.6.28-r9
rootnoverify (hd0,1)
chainloader +1

title FreeBSD 8-RELEASE
rootnoverify (hd0,2)
chainloader +1


If it can be useful, my device.map only shows:
Code:
(hd0)   /dev/sda


Thanks in advance for any help.
Cheers
_________________
ANTONIO: How every fool can play upon the world! I think the best grace of wit will shortly turn into silence, and discourse grow commendable in none only but parrots...

Shakespeare, The Merchant of Venice
Back to top
View user's profile Send private message
Nonsense
n00b
n00b


Joined: 03 Dec 2009
Posts: 74

PostPosted: Sat Dec 05, 2009 9:39 pm    Post subject: Reply with quote

Thanks for the feedback everybody.

I did what you had adviced by re-configuring the kernel but fail many times, using the 7.e.kernel modules.

I followed the guide :-
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap7

I appreciate someone who is able to give me advices as i needed this up desperately ( i had a print screen concerning the problem)



your kind immediate assistance is appreciated.Thank You


Last edited by Nonsense on Sun Dec 06, 2009 6:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sat Dec 05, 2009 10:02 pm    Post subject: Reply with quote

Nonsense,

The handbook only covers the generalities. Neither it not genkernel will provide a kernel that works on VMware.
In your vmware, when you are running the liveCD, what does lspci show ?

With that information we can tell you how to make a kernel that will boot in your VMware.

Note, all the helpers here are volunteers, your problem may be urgent to you but its no more urgent than any other problem here. Plese don't post your email, it will be harvested by spambots. Turn on email notification for responses to the thread.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Nonsense
n00b
n00b


Joined: 03 Dec 2009
Posts: 74

PostPosted: Sun Dec 06, 2009 7:14 pm    Post subject: Reply with quote

Thank you for your advice. (This is my first time using forum )

[ 1 . 987138] md: if you don't use raid , use raid=noautodetect
[ 1 . 987325] md: Autodetecting RAID arrays
[ 1 . 987364] md: scanned 0 and added 0 devices.
[ 1 . 987403] md: autorun . . .
[ 1 . 987442] md: . . . autorun DONE.
[ 1 . 987382] Root-NFS: No NFS server available. giving up
[ 1 . 987521] VFS: Unable to mount roof fs via NFS, trying floppy
[ 1 . 987677] VFS:Cannot open root device"sda3" ort unknown-block(2,0)
[ 1 . 987716] Please append a correct "root=" boot option; here are the available paritions:
[ 1 . 987756] 0b00 1048575 sr0 driver: sr
[ 1 . 987795] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[ 1 . 988498] Pid: 1, comm: swapper Nopt tainted 2.6.31-gentoo-r6
[ 1 . 988537] Call Trace:
[ 1 . 988577] [<c14573ee>] ? printk+0xf/0x11
[ 1 . 988616] [<c1457344>] panic+0x39/0xd4
[ 1 . 988655] [<c16e1bbb>] mount_block_root+0x163/0x172
[ 1 . 988694] [<c1002930>] ? sys_sigsuspend+0x94/0xa4
[ 1 . 988733] [<c16e1c30>] mount_root+0x66/0x84
[ 1 . 988772] [<c16e1d93>] prepare_namspace+0x145/0x16c
[ 1 . 988811] [<c16e1335>] kernel_init+0x16e/ox17d
[ 1 . 988850] [<c16e11c7>] ? kernel_init+0x0/0x17d
[ 1 . 988889] [<c100354d>] kernel_thread_helper+0x7/0x10


listed above are some loading messages when i try rebooting my vmware. Hope you can give me some advices on this problem.

Your kind immediate assistance is appreciated. Thank you
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Dec 06, 2009 8:00 pm    Post subject: Reply with quote

Nonsense,

Boot the CD you used to install in VMware with VMware, like you were going to install again.
in a terminal run the command
Code:
lspci
and post the output so we can tell when your emulated hardware is,

We need all of the IDE lines, SCSI lines and SATA lines. You may not have all three sorts of interfaces, depending on how you configuted your Virtual Machine.

The dmesg output you pasted does not help as the thing you need in your kernel is missing and dmesg cannot tell us what the missing thing is.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
luqas
Guru
Guru


Joined: 02 Jan 2004
Posts: 588
Location: /US/Texas/Beaumont

PostPosted: Sun Dec 06, 2009 8:01 pm    Post subject: Reply with quote

Nonsense, That error usually indicates you don't have the correct driver for your disk controller. I don't remember which one you need to use for the SCSI one but I can get you the drive I am using for the IDE one.

Like I said earlier you can't just switch to IDE from SCSI in your VM as you will have to do a full reinstall. I had the same issue with the SCSI and didn't feel like researching it too much (I had alot of time on my hands to do a reinstall).

I found this from http://en.gentoo-wiki.com/wiki/VMware_Guest and if I remember correctly that was the driver that I was trying to use, but I didn't enable the SYM53C8XX low level driver like this says.

Code:
Device Drivers  --->
   [*]  Fusion MPT device support  --->
         <*> Fusion MPT ScsiHost drivers for SPI
         <*> Fusion MPT ScsiHost drivers for FC
         <*> Fusion MPT ScsiHost drivers for SAS
   SCSI device support  --->
         <*> SCSI device support
         <*> SCSI disk support
         SCSI low-level drivers  --->
             <*> SYM53C8XX Version 2 SCSI support
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3 ... 19, 20, 21 ... 29, 30, 31  Next
Page 20 of 31

 
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