| View previous topic :: View next topic |
| Author |
Message |
DONAHUE Advocate


Joined: 09 Dec 2006 Posts: 4341 Location: Goose Creek SC
|
Posted: Sat Feb 06, 2010 5:08 am Post subject: |
|
|
boot the cd/dvd
run
If you see something like
| Quote: | Device Boot Start End Blocks Id System
/dev/sda1 1 33 265041 83 Linux
|
Important part
If that is ok, run (to enter the chroot):
| Code: | mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1" |
Run (to check the sda1 file system):
Should produce something like:
| Quote: | | /dev/sda1 on /mnt/gentoo type ext2 (rw) |
If that is ok, run:
| Code: | emerge grub
grub
root (hd0,0)
setup (hd0)
|
If that is ok, run (To check the genkernel files are in the boot partition):
should contain boot grub initramfs-genkernel-x86_64-2.6.31-gentoo-r6 kernel-genkernel-x86_64-2.6.31-gentoo-r6 system.map-x86_64-2.6.31-gentoo-r6 (may be misspelled, working from old memory on this file name)
if these files are not present run
Then
| Code: | | nano /boot/grub/grub.conf |
| Quote: |
timeout 10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.31-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-2.6.31-gentoo-r6
|
Theory /dev/sda1 was not mounted at /boot.
If so at your convenience:
boot cd then run
| Code: | mount /dev/sda3 /mnt/gentoo
dir /boot |
if files are listed, theory confirmed, run
to eliminate them.
Last edited by DONAHUE on Sat Feb 06, 2010 4:18 pm; edited 1 time in total |
|
| Back to top |
|
 |
whiteghost Guru


Joined: 26 Jul 2009 Posts: 362 Location: north dakota
|
Posted: Sat Feb 06, 2010 5:43 am Post subject: Re: grub error: filesystem type unknown |
|
|
| hansman wrote: | Hello!
I make everything like in the gentoo handbook and get at "grub-install --no-floppy /dev/sda" the error message: the file /boot/grub/stage1 not read correctly
The stage1 file is in the directory /boot/grub/
So I make the manual grub installation and get following error after insert "root (hd0,0)":
Filesystem type unknown, partition type 0x83
I´m shure it´s the right partition, I have no other hard disk devices or solid state devices so it has to be sda1 = hd0,0 (also grub finds with pressing "TAB" no other devices).
I make 3 partitions
The first is my boot partition 32MB big and bootable. ex2 filesystem.
fstab:
/dev/sda1 /boot ext2 defaults 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext3 noatime 0 1
/dev/cdrom.....
grub.conf:
....
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.31-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-2.6.31-gentoo-r6
(the kernels files are at /boot and names are right)
My system:
250 GB usb hard disk
gentoo (amd64) minimal boot cd
Can it has something to do with the drivers for the exernal usb hard disk?
Please, please help me. I´m new at gentoo and working about 6 hours to resolve the problem and don´t get it. |
i've had this problem. don't remember how i fixed it.
if stage 1 file is in boot it may work.
| Quote: | | Filesystem type unknown, partition type 0x83 |
have you tried reformatting boot partition?
what install media are you using ? gentoo cd?
when i had this problem i tried installing grub with systemresuecd. no need to chroot in. don't remember if it worked.
output of fdisk -l shows device is sda?
is this a usb drive? when you get it working you may need to add rootdelay=10 to grub.conf
example:
title=linux usb
root (hd0,0)
kernel /2.6.24-r7/testing/kernel rootdelay=10 root=/dev/sdb2 _________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
| Back to top |
|
 |
hansman n00b

Joined: 06 Feb 2010 Posts: 7
|
Posted: Sat Feb 06, 2010 11:24 am Post subject: |
|
|
I´ve reformatted the boot partition but it changed nothing (yesterday I made the whole installation new).
Maybe at this point I should say that grub writes to all of my partitions: filesystem unknown
I´ve installed it with the gentoo minimal live cd (install-amd64-minimal-20100121.iso).
output of fdisk -l is something in this way (I´m not at home yet but I´m shure about to have the right partitions):
/dev/sda1 * 83 linux
/dev/sda2 82 swap
/dev/sda3 83 linux
Yes, it´s an usb drive... good to know, thank you. Maybe also this can cause the problem?
I think of wrong parameters in my bios set up. It´s not a standard bios like phoenix or something, it´s from HP so also a setting there can cause the error... |
|
| Back to top |
|
 |
hansman n00b

Joined: 06 Feb 2010 Posts: 7
|
Posted: Sat Feb 06, 2010 2:33 pm Post subject: |
|
|
@DONAHUE:
Thanks for your work but it doesn´t help me.
I´ve run through your points but all things work like they should.... but not the grub
/dev/sda1 is mounted correctly
and filesystem is ex2 (rw) |
|
| Back to top |
|
 |
DONAHUE Advocate


Joined: 09 Dec 2006 Posts: 4341 Location: Goose Creek SC
|
Posted: Sat Feb 06, 2010 5:59 pm Post subject: |
|
|
boot cd, enter chroot
| Code: | mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1" |
run:
| Code: | grub
find /boot/grub/stage1 |
the expected answer:
if you get another answer like:
(hd1,0)
run:
| Code: | root (hd1,0) #example, use the value returned by find
setup (hd1) #example, use the value returned by find
quit |
theory: you have at least one other hard drive or ssd, grub is misguessing the bios boot order
BTW your grub.conf kernel line will need a rootdelay=10 ( more or less, if you are booting a usb device); this is not your current problem though |
|
| Back to top |
|
 |
hansman n00b

Joined: 06 Feb 2010 Posts: 7
|
Posted: Sat Feb 06, 2010 6:47 pm Post subject: |
|
|
When I start grub and type in "find /boot/grub/stage1" I get an error message: "Error 15: File not found"
But this file IS in /boot/grub. |
|
| Back to top |
|
 |
DONAHUE Advocate


Joined: 09 Dec 2006 Posts: 4341 Location: Goose Creek SC
|
Posted: Sat Feb 06, 2010 8:16 pm Post subject: |
|
|
boot the cd, mount the gentoo partitions, run
| Code: | | ls -l /mnt/gentoo/boot |
should see an entry like:
| Quote: | | lrwxrwxrwx 1 root root 1 Sep 21 14:05 boot -> . |
If you don't see it, make the symlink:
| Code: | | ln -s /mnt/gentoo/boot /mnt/gentoo/boot/boot |
What version is grub?
enter the chroot:
| Code: | | emerge --search grub |
while in the chroot:
| Code: | grub
find /etc/fstab |
output is? |
|
| Back to top |
|
 |
whiteghost Guru


Joined: 26 Jul 2009 Posts: 362 Location: north dakota
|
Posted: Sat Feb 06, 2010 9:56 pm Post subject: |
|
|
this may help. there is a comment about removable disks.
| Quote: | Invoking grub-install
The program grub-install installs GRUB on your drive using the grub shell (see Invoking the grub shell). You must specify the device name on which you want to install GRUB, like this:
grub-install install_device
The device name install_device is an OS device name or a GRUB device name.
grub-install accepts the following options:
--help
Print a summary of the command-line options and exit.
--version
Print the version number of GRUB and exit.
--force-lba
Force GRUB to use LBA mode even for a buggy BIOS. Use this option only if your BIOS doesn't work properly in LBA mode even though it supports LBA mode.
--root-directory=dir
Install GRUB images under the directory dir instead of the root directory. This option is useful when you want to install GRUB into a separate partition or a removable disk. Here is an example in which you have a separate boot partition which is mounted on /boot:
grub-install --root-directory=/boot hd0
|
http://www.gnu.org/software/grub/manual/grub.html#Stage1-errors
you have external drive in a case? i would try taking it apart and connecting it with sata or ide just to see if grub would install. _________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
| Back to top |
|
 |
hansman n00b

Joined: 06 Feb 2010 Posts: 7
|
Posted: Sun Feb 07, 2010 1:18 pm Post subject: |
|
|
lrwxrwxrwx 1 root root boot 1 Feb 5 15:01 -> . is there
emerge --search grub:
...
app-admin/grubconfig
Latest version aviable: 1.28-r1
Latest version installed: not installed
...
kde-misc/kgrubeditor
Latest version aviable: 0.8.5
Latest version installed: not installed
...
sys-boot/grub
Latest version aviable: 0.97-r9
Latest version installed: 0.97-r9
...
sys-boot/grub-static
Latest version aviable: 0.97-r9
Latest version installed: not installed
...
grub
find /etc/fstab: Error 15: File not found
--force-lba option doesn´t exist in my version of grub
connect it with sata or ide is not possible
I´ve heard about a supergrub disk... should I try it with it?
It seems that my grub cannot read from the hard disk... |
|
| Back to top |
|
 |
whiteghost Guru


Joined: 26 Jul 2009 Posts: 362 Location: north dakota
|
Posted: Sun Feb 07, 2010 1:56 pm Post subject: |
|
|
did you try this
grub-install --root-directory=
i've used supergrub. should work, just have to navigate to kernel. and don't forget rootdelay, kernel takes a little while to initialize usb dev.
i went round and round with this problem sometime ago. writing new mbr with test disk. trying cfdisk. ... testing and formatting with hdd manufacturer software. _________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
| Back to top |
|
 |
DONAHUE Advocate


Joined: 09 Dec 2006 Posts: 4341 Location: Goose Creek SC
|
Posted: Sun Feb 07, 2010 4:22 pm Post subject: |
|
|
Apparently grub cannot read the partition table or file systems on your usb drive at all.
What is the manufacturer and model of the usb hard drive?
The manufactures claims and specifications may be interesting.
Enter the chroot and run:
then press Tab key to see if grub finds any drives
results? |
|
| Back to top |
|
 |
hansman n00b

Joined: 06 Feb 2010 Posts: 7
|
Posted: Mon Feb 08, 2010 10:44 pm Post subject: |
|
|
Sorry it makes no sense. I´ve seen a review on amazon: The disk cannot boot... I´ve never heard something like this before but it is not possible (has to do with the size of the disk, the model and manufacturer). Thank you all for your help. Next time I search for this before I ask.
fyi: Samsung S2 Portable 250GB... the 120GB model can boot. Never buy the mud of them again. |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27780 Location: 56N 3W
|
Posted: Wed Feb 10, 2010 8:59 pm Post subject: |
|
|
hansman,
Do you have a link to that review?
I've not heard of such a thing either _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
whiteghost Guru


Joined: 26 Jul 2009 Posts: 362 Location: north dakota
|
|
| Back to top |
|
 |
hansman n00b

Joined: 06 Feb 2010 Posts: 7
|
Posted: Sat Feb 13, 2010 2:55 am Post subject: |
|
|
Sorry, the only reviews I´ve found are in german. But there are three persons who recognized this. One of them wrote to Samsung but get no clear answer why it´s not possible.
Before I give up I´ve tried it with extlinux without success... also a friend of mine tried it with disk dump from another disk... no chance. |
|
| Back to top |
|
 |
whiteghost Guru


Joined: 26 Jul 2009 Posts: 362 Location: north dakota
|
Posted: Sat Feb 13, 2010 3:14 am Post subject: |
|
|
| Quote: | | Before I give up I´ve tried it with extlinux without success... also a friend of mine tried it with disk dump from another disk... no chance. |
no chance
sorry... _________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
| Back to top |
|
 |
Drone4four Apprentice


Joined: 09 May 2006 Posts: 213
|
Posted: Wed Feb 24, 2010 11:58 pm Post subject: |
|
|
I have two partitions toggled as a bootable flag:
| Code: | localhost ~ # fdisk -l
Disk /dev/sda: 320.0 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00087335
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 313236 83 Linux
/dev/sda2 40 4780 38082082+ 83 Linux
/dev/sda3 * 4781 9521 38082082+ 7 HPFS/NTFS
/dev/sda4 9522 38913 236091240 5 Extended
/dev/sda5 9522 14493 39937558+ 83 Linux
/dev/sda6 14494 15003 4096543+ 82 Linux swap / Solaris
/dev/sda7 15004 38913 192057043+ 7 HPFS/NTFS
localhost ~ # |
I searched through the "m" option with fdisk set to /dev/sda but the options presented don't match what I'm looking for. How do I toggle just the one part at /dev/sda1 (/boot) as bootable? _________________ Gigabyte GA-P45T-ES3G LGA 775 Intel P45
Intel Core 2 Quad Q9650 @ 3.0GHz
16.384GB RAM DDR3 1333MHz
EVGA nVidia GeForce GTX 560 Ti 2GB |
|
| Back to top |
|
 |
whiteghost Guru


Joined: 26 Jul 2009 Posts: 362 Location: north dakota
|
Posted: Thu Feb 25, 2010 12:14 am Post subject: |
|
|
press p
scroll down to sda3
press a
and press p again to check
if it is what you want press w to write _________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
| Back to top |
|
 |
Drone4four Apprentice


Joined: 09 May 2006 Posts: 213
|
Posted: Thu Feb 25, 2010 12:20 am Post subject: |
|
|
whiteghost: that more or less worked. Except fdisk is saying it can't re read the partition table:
| Code: | localhost ~ # fdisk /dev/sda
The number of cylinders for this disk is set to 38913.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): p
Disk /dev/sda: 320.0 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00087335
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 313236 83 Linux
/dev/sda2 40 4780 38082082+ 83 Linux
/dev/sda3 * 4781 9521 38082082+ 7 HPFS/NTFS
/dev/sda4 9522 38913 236091240 5 Extended
/dev/sda5 9522 14493 39937558+ 83 Linux
/dev/sda6 14494 15003 4096543+ 82 Linux swap / Solaris
/dev/sda7 15004 38913 192057043+ 7 HPFS/NTFS
Command (m for help): a
Partition number (1-7): 3
Command (m for help): p
Disk /dev/sda: 320.0 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00087335
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 313236 83 Linux
/dev/sda2 40 4780 38082082+ 83 Linux
/dev/sda3 4781 9521 38082082+ 7 HPFS/NTFS
/dev/sda4 9522 38913 236091240 5 Extended
/dev/sda5 9522 14493 39937558+ 83 Linux
/dev/sda6 14494 15003 4096543+ 82 Linux swap / Solaris
/dev/sda7 15004 38913 192057043+ 7 HPFS/NTFS
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
localhost ~ # | Is it possible that Gentoo won't load when I reboot my computer now? _________________ Gigabyte GA-P45T-ES3G LGA 775 Intel P45
Intel Core 2 Quad Q9650 @ 3.0GHz
16.384GB RAM DDR3 1333MHz
EVGA nVidia GeForce GTX 560 Ti 2GB |
|
| Back to top |
|
 |
Drone4four Apprentice


Joined: 09 May 2006 Posts: 213
|
Posted: Thu Feb 25, 2010 12:21 am Post subject: |
|
|
Aww shit. I just realized I posted int he Grub error collection thread and not the get help with partitioning thread. Can a mod please move my forum posts? _________________ Gigabyte GA-P45T-ES3G LGA 775 Intel P45
Intel Core 2 Quad Q9650 @ 3.0GHz
16.384GB RAM DDR3 1333MHz
EVGA nVidia GeForce GTX 560 Ti 2GB |
|
| Back to top |
|
 |
whiteghost Guru


Joined: 26 Jul 2009 Posts: 362 Location: north dakota
|
Posted: Thu Feb 25, 2010 12:50 am Post subject: |
|
|
| Quote: | | Is it possible that Gentoo won't load when I reboot my computer now? |
it says it will write new table on reboot
| Quote: | | The new table will be used at the next reboot. |
edit:
when is a bootable partition required ?
i just toggled mine off and it works. _________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
| Back to top |
|
 |
Drone4four Apprentice


Joined: 09 May 2006 Posts: 213
|
Posted: Thu Feb 25, 2010 1:57 am Post subject: |
|
|
| whiteghost wrote: | | Quote: | | Is it possible that Gentoo won't load when I reboot my computer now? |
it says it will write new table on reboot
| Quote: | | The new table will be used at the next reboot. |
edit:
when is a bootable partition required ?
i just toggled mine off and it works. |
To answer your question, I'm not sure especially if you just turned it off and it works. Maybe someone else here can give a better answer to your question.
Now for my problem with Grub. I installed Ubuntu 9.10 after I installed Gentoo. The Ubuntu installer over road the default MBR already set on /dev/sda1. I was surprised at first to see that Gentoo was given a place in the Ubuntu's Grub menu and it actually loaded Gentoo when I selected it. Now I want to use the Grub I installed when I installed Gentoo in order to set up fbsplash.
How do I get Gentoo's Grub back from Ubuntu's Grub? _________________ Gigabyte GA-P45T-ES3G LGA 775 Intel P45
Intel Core 2 Quad Q9650 @ 3.0GHz
16.384GB RAM DDR3 1333MHz
EVGA nVidia GeForce GTX 560 Ti 2GB |
|
| Back to top |
|
 |
whiteghost Guru


Joined: 26 Jul 2009 Posts: 362 Location: north dakota
|
Posted: Thu Feb 25, 2010 2:14 am Post subject: |
|
|
you could remove ubuntus files from grub folder or you can rename the folder grub.ubuntu or so.
if you have enough space on boot partition.
then emerge and install grub per hand book. _________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
| Back to top |
|
 |
Drone4four Apprentice


Joined: 09 May 2006 Posts: 213
|
Posted: Thu Feb 25, 2010 2:34 am Post subject: |
|
|
| whiteghost wrote: | you could remove ubuntus files from grub folder or you can rename the folder grub.ubuntu or so.
if you have enough space on boot partition.
then emerge and install grub per hand book. |
So what you're saying is that I have two options:
1. Rename Ubuntu's Grub folder to grub.bak. This then would make Gentoo, Ubuntu and Windows XP inaccessible. I would have to chroot with the Gentoo LiveCD with my Dad's laptop next to me with the Gentoo Handbook open. This would be a hastle.
2. Re-emerge Grub according to the Handbook.
Must I go through option 1 before doing option 2? Or could I go straight to the 2nd option? _________________ Gigabyte GA-P45T-ES3G LGA 775 Intel P45
Intel Core 2 Quad Q9650 @ 3.0GHz
16.384GB RAM DDR3 1333MHz
EVGA nVidia GeForce GTX 560 Ti 2GB |
|
| Back to top |
|
 |
whiteghost Guru


Joined: 26 Jul 2009 Posts: 362 Location: north dakota
|
Posted: Thu Feb 25, 2010 2:49 am Post subject: |
|
|
from your gentoo install. don't need livecd.
rename grub folder
emerge grub and install. that should make new grub folder.
write grub.conf
reboot _________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
| Back to top |
|
 |
|