Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HELP] Failed to start /etc/init.d/hostname
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
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Tue Nov 29, 2005 4:09 am    Post subject: [HELP] Failed to start /etc/init.d/hostname Reply with quote

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
View user's profile Send private message
Frodg
l33t
l33t


Joined: 11 Feb 2004
Posts: 761

PostPosted: Tue Nov 29, 2005 4:12 am    Post subject: Reply with quote

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
View user's profile Send private message
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Tue Nov 29, 2005 4:13 am    Post subject: Reply with quote

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
View user's profile Send private message
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Tue Nov 29, 2005 4:14 am    Post subject: Reply with quote

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
View user's profile Send private message
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Tue Nov 29, 2005 4:39 am    Post subject: Reply with quote

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
View user's profile Send private message
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Tue Nov 29, 2005 5:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Blitzace
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2005
Posts: 82
Location: Norwich, England

PostPosted: Tue Nov 29, 2005 2:52 pm    Post subject: Reply with quote

is you root partition set right in grub?

root (hd0,0)
Back to top
View user's profile Send private message
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Tue Nov 29, 2005 3:25 pm    Post subject: Reply with quote

Blitzace wrote:
is you root partition set right in grub?

root (hd0,0)


yup. i set correctly.
Back to top
View user's profile Send private message
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Wed Nov 30, 2005 12:50 am    Post subject: Reply with quote

what should i do?
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Wed Nov 30, 2005 2:07 am    Post subject: Reply with quote

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
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Wed Nov 30, 2005 2:11 am    Post subject: Reply with quote

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
View user's profile Send private message
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Wed Nov 30, 2005 2:25 am    Post subject: Reply with quote

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
View user's profile Send private message
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Wed Nov 30, 2005 3:47 am    Post subject: Reply with quote

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
View user's profile Send private message
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Wed Nov 30, 2005 4:39 am    Post subject: Reply with quote

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
View user's profile Send private message
djpharoah
Apprentice
Apprentice


Joined: 24 Nov 2004
Posts: 186
Location: Irvine, California USA

PostPosted: Wed Nov 30, 2005 5:07 am    Post subject: Reply with quote

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
View user's profile Send private message
dnamroud
Guru
Guru


Joined: 01 Jun 2005
Posts: 346
Location: Canada

PostPosted: Wed Nov 30, 2005 7:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Thu Dec 01, 2005 3:52 am    Post subject: Reply with quote

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
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Fri Dec 02, 2005 5:28 am    Post subject: Reply with quote

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
View user's profile Send private message
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Fri Dec 02, 2005 6:02 am    Post subject: Reply with quote

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
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Fri Dec 02, 2005 6:25 am    Post subject: Reply with quote

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
View user's profile Send private message
june
n00b
n00b


Joined: 29 Nov 2005
Posts: 24

PostPosted: Fri Dec 02, 2005 7:21 am    Post subject: Reply with quote

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
Code:

HOSTNAME="gserver"


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
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Fri Dec 02, 2005 10:35 am    Post subject: Reply with quote

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
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Fri Dec 02, 2005 10:43 am    Post subject: Reply with quote

you're supposed to mount /proc but that shouldn't be needed for this package.
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Fri Dec 02, 2005 10:48 am    Post subject: Reply with quote

You can also edit these files manually and actually, I'm sorry :oops:

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
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Fri Dec 02, 2005 10:57 am    Post subject: Reply with quote

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 :oops: . 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
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