View previous topic :: View next topic |
Author |
Message |
millermiller n00b
Joined: 26 May 2005 Posts: 52
|
Posted: Tue Jun 07, 2005 8:11 am Post subject: kernel won't boot [Solved] |
|
|
I spent 2days on building the kernel (2.4.30 sparc64) on my workstation. Sun Ultra10. I got no luck.
My kernel won't boot.
Is there any successful .config for me to referece?
Thanks,
Miller _________________ Free as in Freedom
Last edited by millermiller on Mon Jun 13, 2005 4:34 am; edited 1 time in total |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Tue Jun 07, 2005 8:51 am Post subject: |
|
|
hi,
any error message maybe ?
that would be helpful .. _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
millermiller n00b
Joined: 26 May 2005 Posts: 52
|
Posted: Tue Jun 07, 2005 9:10 am Post subject: |
|
|
Thanks, for the quick reply. A moment ago, my box booted. I will try to get the error reported.
but still has problem:
My box failed at:
checking all filesystems....
/dev/hda1 is mounted. e2fsck: can't continue, aborting
* Fsck could not correct all errors, manul repair needed.
Give root passwd for maintence(or type.......)
Then, I manually, e2fsck /dev/hda1. But it doesn't work when I reboot again.
My /etc/fstab is the same as the handbook.
/dev/hda1 is ext2,
/dev/hda2 is swap
/dev/hda3 is Sun DIsklable the whold disk
/dev/hda4 is ext3 for /usr
/dev/hda5 is ext3 for /var
/dev/hda6 is ext3 for /home
Any suggestion?
Thanks,
MIller _________________ Free as in Freedom |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Tue Jun 07, 2005 9:12 am Post subject: |
|
|
do you have the ext2 support enabled ? (built-in) _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
millermiller n00b
Joined: 26 May 2005 Posts: 52
|
Posted: Wed Jun 08, 2005 1:58 am Post subject: |
|
|
Yes.
CONFIG_EXT2_FS=y _________________ Free as in Freedom |
|
Back to top |
|
|
robbyjo Guru
Joined: 06 Apr 2003 Posts: 462
|
Posted: Wed Jun 08, 2005 2:02 am Post subject: |
|
|
When you fsck, did you fsck by rebooting through the CD? What did the fsck program say? |
|
Back to top |
|
|
millermiller n00b
Joined: 26 May 2005 Posts: 52
|
Posted: Wed Jun 08, 2005 6:16 am Post subject: |
|
|
robbyjo wrote: | When you fsck, did you fsck by rebooting through the CD? What did the fsck program say? |
livecd root #fsck /dev/hda1
fsck 1.35 (28-Feb-2004)
e2fsck 1.35 (28-Feb-2004)
/dev/hda1 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/hda1: 2745/125416 files (1.1% non-contiguous), 59985/49973 blocks
Thanks,
Miller _________________ Free as in Freedom |
|
Back to top |
|
|
robbyjo Guru
Joined: 06 Apr 2003 Posts: 462
|
Posted: Wed Jun 08, 2005 1:23 pm Post subject: |
|
|
The last line shows something is really wrong:
59985/49973 blocks
The first number is supposed to be lower than the second number. This is more like a partition error... How did you do your partition? |
|
Back to top |
|
|
millermiller n00b
Joined: 26 May 2005 Posts: 52
|
Posted: Thu Jun 09, 2005 4:42 am Post subject: |
|
|
robbyjo wrote: | The last line shows something is really wrong:
59985/49973 blocks
The first number is supposed to be lower than the second number. This is more like a partition error... How did you do your partition? |
Sorry, I am really sorry. This is a typo here it should be 59985/499713. Thanks _________________ Free as in Freedom |
|
Back to top |
|
|
millermiller n00b
Joined: 26 May 2005 Posts: 52
|
Posted: Thu Jun 09, 2005 4:55 am Post subject: |
|
|
millermiller wrote: | robbyjo wrote: | The last line shows something is really wrong:
59985/49973 blocks
The first number is supposed to be lower than the second number. This is more like a partition error... How did you do your partition? |
Sorry, I am really sorry. This is a typo here it should be 59985/499713. Thanks |
Here is my partition table:
Device Flag Start End Blocks Id System
/dev/hda1 0 992 499968 83 Linux native
/dev/hda2 u 992 1488 249984 82 Linux swap
/dev/hda3 0 17660 8900640 5 Whole disk
/dev/hda4 1488 6332 2441376 83 Linux native
/dev/hda5 6332 9238 1464624 83 Linux native
/dev/hda6 9238 17660 4244688 83 Linux native _________________ Free as in Freedom |
|
Back to top |
|
|
millermiller n00b
Joined: 26 May 2005 Posts: 52
|
Posted: Thu Jun 09, 2005 8:32 am Post subject: |
|
|
millermiller wrote: | Thanks, for the quick reply. A moment ago, my box booted. I will try to get the error reported.
but still has problem:
My box failed at:
checking all filesystems....
/dev/hda1 is mounted. e2fsck: can't continue, aborting
* Fsck could not correct all errors, manul repair needed.
Give root passwd for maintence(or type.......)
|
My question is why /dev/hda1 has been mounted at this time?
Thanks, _________________ Free as in Freedom |
|
Back to top |
|
|
robbyjo Guru
Joined: 06 Apr 2003 Posts: 462
|
Posted: Thu Jun 09, 2005 3:51 pm Post subject: |
|
|
Since you said that your fstab is like what the handbook said, may I suggest you to change the options part to "0 0"? Example:
Change:
Code: | /dev/hda1 /boot ext2 defaults 1 2 |
To:
Code: | /dev/hda1 /boot ext2 defaults 0 0 |
All non "0 0" options should be changed to "0 0". This makes the boot partition susceptible to corruption, but it'll probably solve your problem.
Also, sometimes separating boot partition with root partition creates a problem like this. You may want to combine boot partition into root partition.
HTH. |
|
Back to top |
|
|
jrhodes n00b
Joined: 08 Jun 2005 Posts: 3
|
Posted: Thu Jun 09, 2005 4:59 pm Post subject: |
|
|
Todd has uploaded a 2.4.22 U10/5 config here that you could probably use with make oldconfig. |
|
Back to top |
|
|
millermiller n00b
Joined: 26 May 2005 Posts: 52
|
Posted: Mon Jun 13, 2005 1:36 am Post subject: |
|
|
Thanks for the ones who helped me.
My machine boots normally now after I change the /etc/fstab as below:
/dev/hda1 / ext2 defaults,noatime 1 2
/dev/hda2 none swap sw 0 0
/dev/hda4 /usr ext3 noatime 0 1
/dev/hda5 /var ext3 noatime 0 1
/dev/hda6 /home ext3 noatime 0 1
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs nodev,nosuid,noexec 0 0
The sparc version handbook is not bible for a new comer.
Thanks again. _________________ Free as in Freedom |
|
Back to top |
|
|
gfrench n00b
Joined: 24 Oct 2007 Posts: 1
|
Posted: Fri Nov 02, 2007 11:40 pm Post subject: e2fsck: Cannot continue, aborting |
|
|
same problem, the fstab above fixed it... thx |
|
Back to top |
|
|
|