View previous topic :: View next topic |
Author |
Message |
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Tue Nov 29, 2005 4:09 am Post subject: [HELP] Failed to start /etc/init.d/hostname |
|
|
I had do the following command to setup my gentoo
#emerge gentoo-sources
(didn't use genkernel)
#make menuconfig
#make dep && make clean bzImage modules modules_install
#cp arch/i386/boot/bzImage /boot
#cp .config /boot/config-2.6.14-gentoo-r2
..
..
------------------
network setting
------------------
..
..
#emerge grub
#grub
grub>root (hd0,0)
grub>setup (hd0)
grub>quit
#nano -w /boot/grub/grub.conf
Code: |
#/boot/grub/grub.conf
default 0
timeout 5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Server 2.6.14-r2
root (hd0,0)
kernel /boot/kernel-2.6.14-r2 root=/dev/hda3
|
#exit
#reboot
then i just stop at
vesafb: scrolling: redraw
what can i do?
Last edited by june on Fri Dec 02, 2005 8:51 am; edited 2 times in total |
|
Back to top |
|
|
Frodg l33t
Joined: 11 Feb 2004 Posts: 761
|
Posted: Tue Nov 29, 2005 4:12 am Post subject: |
|
|
you appear to have:
#cp arch/i386/boot/bzImage /boot
but then in your grub.conf you have:
kernel /boot/kernel-2.6.14-r2 root=/dev/hda3
this should be
kernel /boot/bzImage root=/dev/hda3 _________________ Aerosolo ergo sum - I spray therefore I am
Gentoo - Registered Linux User # 361400
Last edited by Frodg on Tue Nov 29, 2005 4:16 am; edited 1 time in total |
|
Back to top |
|
|
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Tue Nov 29, 2005 4:13 am Post subject: |
|
|
after that i had found some thread here
and try to take some action to solve the problem
i had try to
Hi I after trying several things my gentoo finaly booted but I made many changes and cannot tell which one fixed the problem. And by the way I used lilo as bootloader.
--compiled vesafb support as module
--changed to vesafb instead of vesafb-tng(changed it before but didn't worked)
--enable vga 16 color
--didn't use buffer frame support
but still the same problem.
there is 2 error after i compile as following:
Code: |
include/linux/jiffies.h: In function 'jiffies_64_to_cloc_t';
include/linux/jiffies.h:425: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org.? for insructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: *** [arch/i386/ernel/axpi/sleep.o] Error 1
make[1]: *** [arch/i386/ernel/acpi] Error 2
make: *** [arch/i386/kernel] Error 2
|
|
|
Back to top |
|
|
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Tue Nov 29, 2005 4:14 am Post subject: |
|
|
Frodg wrote: | you appear to have:
#cp arch/i386/boot/bzImage /boot
but then in your grub.conf you have:
kernel /boot/kernel-2.6.14-r2 root=/dev/hda3
this should be
kernel /boot/bzImage /boot |
i had try to change to kernel /boot/bzImage root=/dev/hda3 in my grub.conf
but still same problem. |
|
Back to top |
|
|
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Tue Nov 29, 2005 4:39 am Post subject: |
|
|
Anybody help?
What should i do?
I had setup my gentoo for 10days.
1st time success to boot but fail to emerge samba.
2nd time is this time fail to boot. |
|
Back to top |
|
|
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Tue Nov 29, 2005 5:15 am Post subject: |
|
|
i had solve the problem but then another problem again.
Code: |
UDF-fs: No VRS found
Mount JFS Failure: -22
XFS: bad magic number
XFS: SB validate failed
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,3)
|
|
|
Back to top |
|
|
Blitzace Tux's lil' helper
Joined: 16 Nov 2005 Posts: 82 Location: Norwich, England
|
Posted: Tue Nov 29, 2005 2:52 pm Post subject: |
|
|
is you root partition set right in grub?
root (hd0,0) |
|
Back to top |
|
|
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Tue Nov 29, 2005 3:25 pm Post subject: |
|
|
Blitzace wrote: | is you root partition set right in grub?
root (hd0,0) |
yup. i set correctly. |
|
Back to top |
|
|
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Wed Nov 30, 2005 12:50 am Post subject: |
|
|
what should i do? |
|
Back to top |
|
|
augury l33t
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Wed Nov 30, 2005 2:07 am Post subject: |
|
|
june wrote: |
there is 2 error after i compile as following:
Code: |
include/linux/jiffies.h: In function 'jiffies_64_to_cloc_t';
include/linux/jiffies.h:425: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org.? for insructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: *** [arch/i386/ernel/axpi/sleep.o] Error 1
make[1]: *** [arch/i386/ernel/acpi] Error 2
make: *** [arch/i386/kernel] Error 2
|
|
You can just run make again. This is a compiler error that sometimes occurs from gcc overloading itself. It won't effect the outcome of the kernel. |
|
Back to top |
|
|
augury l33t
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Wed Nov 30, 2005 2:11 am Post subject: |
|
|
june wrote: | i had solve the problem but then another problem again.
Code: |
UDF-fs: No VRS found
Mount JFS Failure: -22
XFS: bad magic number
XFS: SB validate failed
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,3)
|
|
Where you able to load this kernel before? Or any kernel that used this root on its own? |
|
Back to top |
|
|
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Wed Nov 30, 2005 2:25 am Post subject: |
|
|
augury wrote: | june wrote: | i had solve the problem but then another problem again.
Code: |
UDF-fs: No VRS found
Mount JFS Failure: -22
XFS: bad magic number
XFS: SB validate failed
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,3)
|
|
Where you able to load this kernel before? Or any kernel that used this root on its own? |
I had untick JFS & XFS and then recompile.
then got the following results
Code: |
UDF-fs: No VRS found
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,3) |
Where you able to load this kernel before? Or any kernel that used this root on its own?
i cant catch u. |
|
Back to top |
|
|
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Wed Nov 30, 2005 3:47 am Post subject: |
|
|
I got such error while i recompile my kernel.
Is that the cause i cant boot my gentoo?
Code: |
include/linux/signal.h: In function 'signotset'
include/linux/signal.h:145: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if ppropriate.
See <URL:http://bugs.gentoo.org/> for instrutions.
The bug is not reporducible, so it is likely a hardware or OS problem.
make[1]: *** [mm/filemap.o] Error 1
make: *** [mm] Error 2
|
|
|
Back to top |
|
|
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Wed Nov 30, 2005 4:39 am Post subject: |
|
|
i thought i had found out the point.
i used dmesg
and found the problem
Code: |
VFS: Can't find ext3 filesystem on dev hdb.
VFS: Can't find an ext2 filesystem on dev hdb.
|
below is my grub.conf
Code: |
...
root (hd0,0)
kernel /boot/kernel-2.6.14-r2 root/dev/hda3
...
|
my /etc/fstab
Code: |
/dev/hda1 /boot ext2 noauto,noatime 1 1
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauoto,ro 0 0
/dev/fd0 /mnt/floppy auto
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
|
Why there is hdb been using? |
|
Back to top |
|
|
djpharoah Apprentice
Joined: 24 Nov 2004 Posts: 186 Location: Irvine, California USA
|
Posted: Wed Nov 30, 2005 5:07 am Post subject: |
|
|
dude all I can say is ditch your current install.
Sit down and Read the Gentoo Manual. It is there for a reason! |
|
Back to top |
|
|
dnamroud Guru
Joined: 01 Jun 2005 Posts: 346 Location: Canada
|
Posted: Wed Nov 30, 2005 7:14 pm Post subject: |
|
|
I had the same problem and I found the solution by selecting the right file system and loading the right options in my kernel...
Try to use a genkernel command instead of compiling it manually.
http://www.gentoo.org/doc/en/genkernel.xml
Good luck
Dany |
|
Back to top |
|
|
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Thu Dec 01, 2005 3:52 am Post subject: |
|
|
dnamroud wrote: | I had the same problem and I found the solution by selecting the right file system and loading the right options in my kernel...
Try to use a genkernel command instead of compiling it manually.
http://www.gentoo.org/doc/en/genkernel.xml
Good luck
Dany |
OK.
Thanks.
Let me try to use genkernel. |
|
Back to top |
|
|
augury l33t
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Fri Dec 02, 2005 5:28 am Post subject: |
|
|
june wrote: | augury wrote: | june wrote: | i had solve the problem but then another problem again.
Code: |
UDF-fs: No VRS found
Mount JFS Failure: -22
XFS: bad magic number
XFS: SB validate failed
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,3)
|
|
Where you able to load this kernel before? Or any kernel that used this root on its own? |
I had untick JFS & XFS and then recompile.
then got the following results
Code: |
UDF-fs: No VRS found
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,3) |
Where you able to load this kernel before? Or any kernel that used this root on its own?
i cant catch u. |
well the live-cd loads its ramdisk for a root system and then you chroot to the root system youre building, where you able to access this root w/ a kernel?
Code: |
Mount JFS Failure: -22
XFS: bad magic number
XFS: SB validate failed
|
this is the kernel trying filesystems on something (maybe its imagination). it has to determine the filesystem on its own since the boot command in the grub.conf didnt tell it.
post lspci and your kernel config. |
|
Back to top |
|
|
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Fri Dec 02, 2005 6:02 am Post subject: |
|
|
i had solve abt problem by using genkernel.
thanks.
Now, i face another problem.
i got this error.
Code: | Failed to start /etc/init.d/hostname |
i had follow the handbook.
but still same result.
what should i do? |
|
Back to top |
|
|
augury l33t
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Fri Dec 02, 2005 6:25 am Post subject: |
|
|
echo 'HOSTNAME="{your hostname}"' >> /etc/env.d/01hostname
echo 'HOSTNAME="{your hostname}"' >> /etc/conf.d/hostname
echo '{your hostname}' >> /etc/HOSTNAME
hostname {your hostname}
/etc/init.d/hostname restart
env-update
source /etc/profile |
|
Back to top |
|
|
june n00b
Joined: 29 Nov 2005 Posts: 24
|
Posted: Fri Dec 02, 2005 7:21 am Post subject: |
|
|
augury wrote: | STEP 1: echo 'HOSTNAME="{your hostname}"' >> /etc/env.d/01hostname
STEP 2: echo 'HOSTNAME="{your hostname}"' >> /etc/conf.d/hostname
STEP 3: echo '{your hostname}' >> /etc/HOSTNAME
STEP 4: hostname {your hostname}
STEP 5: /etc/init.d/hostname restart
STEP 6: env-update
STEP 7: source /etc/profile |
my /etc/init.d/hostname contain is as below
is that correct?
while i doing until STEP 5 , it's the result
Code: | #/etc/init.d/hostname restart
-bash: /etc/init.d/hostname: Permission denied |
so i cant continue the following step.
while i reboot i got this error message:
Code: |
..
..
/sbin/rc: line 416: start: command not found
Failed to start /etc/init.d/hostname
..
..
* Could not get dependency info for "hostname"!
* Please run:
* # /sbin/depscan.sh
* to try and fix this.
..
..
INIT: Entering runlevel 3
hostname
* ERROR: Some services needed are missing. Run
* './sysklogd broken' for a list of those
services. "sysklogd" was not started.
hostname
* ERROR: Some services needed are missing. Run
* './domainname broken' for a list of those
services. "sysklogd" was not started.
|
then i try to do
Code: |
#/sbin/depscan.sh
* Cashing service dependencies
* Can't find service 'hostname' needed by 'modules'; continuing...
* Can't find service 'hostname' needed by 'domainname'; continuing...
* Can't find service 'hostname' needed by 'syslogd'; continuing... [ok]
|
What should i do? |
|
Back to top |
|
|
augury l33t
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Fri Dec 02, 2005 10:35 am Post subject: |
|
|
No
/etc/conf.d/hostname should be HOSTNAME="gserver"
/etc/conf.d/* is the config's for /etc/init.d/*
you would run /etc/init.d/hostname w/ an arguement
Code: |
/etc/init.d/hostname start
|
Code: |
/etc/init.d/hostname restart
|
Code: |
/etc/init.d/hostname stop
|
this is a boot run level service
you add services like
# rc-update add hostname boot
# rc-update del hostname
to see all the services and their status'
# rc-update -a
You need to emerge baselayout
that will fix you. if you have to you can start the livecd, mount your disk, chroot to your mount point, # env-update, # source /etc/profile, # emerge baselayout, # exit, # reboot |
|
Back to top |
|
|
augury l33t
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Fri Dec 02, 2005 10:43 am Post subject: |
|
|
you're supposed to mount /proc but that shouldn't be needed for this package. |
|
Back to top |
|
|
augury l33t
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Fri Dec 02, 2005 10:48 am Post subject: |
|
|
You can also edit these files manually and actually, I'm sorry
echo 'HOSTNAME="{your hostname}"' > /etc/env.d/01hostname
echo 'HOSTNAME="{your hostname}"' > /etc/conf.d/hostname
echo '{your hostname}' > /etc/HOSTNAME
should only use one arrow since we want to over-write the contents of these files
the newer value should have precidence in the conf.d file but the env.d variable might be additive.
use nano -w to check these files /etc/env.d/01hostname and /etc/conf.d/hostname (/etc/HOSTNAME isn't really needed) |
|
Back to top |
|
|
augury l33t
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Fri Dec 02, 2005 10:57 am Post subject: |
|
|
For some reason it can be tough to get the host name correct. running hostname should have corrected some of the errors I made you do . if you log out (# exit) and log back in, your prompt should have your hostname. # uname -a should also have it. it wobbles to its feet but it'll iron itself out easily since its self generating. just so long as you don't do something weird like reformat your disks or # r#m -fr / it should be good forever. its always gentoo never genthree. |
|
Back to top |
|
|
|