Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] strange: cannot mount /boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
midnite
Guru
Guru


Joined: 09 Apr 2006
Posts: 451
Location: Hong Kong

PostPosted: Fri Jul 13, 2007 8:04 am    Post subject: [SOLVED] strange: cannot mount /boot Reply with quote

i follow the setup in the installation manual
Code:
Partition     Filesystem     Size                Description
/dev/hda1     ext2           32M                 Boot partition
/dev/hda2     (swap)         512M                Swap partition
/dev/hda3     reiserfs       Rest of the disk    Root partition
but i used reiserfs for hda3 instead.

i used the grub bootloader and everything follows the manual also.

when i finished the installation, reboot, i see this:
Code:
 * Checking all filesystems ...                                  [ ok ]
/dev/hda1: clean, 34/10040 files, 4063/40128 blocks
 * Mount local filesystems ...
mount: wrong fs type, bad option, had superblock on /dev/hda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

 * Some local filesystem failed to mount                         [ !! ]

when i df -h, i see only /dev/hda3, udev & shm. Both hda1(boot) and hda2(swap) are missing.

i did not install syslog. When i dmesg | tail, also only see the information of hda3, no hda1 or hda2.

Then i try to mount it myself.
Code:
# mount /dev/hda1

mount: wrong fs type, bad option, had superblock on /dev/hda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
the same message appears.

It is very strange that the bootloader, kernel are all in /boot. It can boot smoothly but it says it cannot mount /boot!!
What is the problem? Will there be some bad sectors in my secondhand hard disk? How to check if there is some bad sectors?


Last edited by midnite on Fri Jul 13, 2007 8:36 am; edited 1 time in total
Back to top
View user's profile Send private message
mudrii
l33t
l33t


Joined: 26 Jun 2003
Posts: 789
Location: Singapore

PostPosted: Fri Jul 13, 2007 8:15 am    Post subject: Reply with quote

try to fsck and post your fstab and dmesg you an install syslog in LiveCD chroot env
_________________
www.gentoo.ro
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Fri Jul 13, 2007 8:16 am    Post subject: Reply with quote

My guess is a wrong configured /etc/fstab. Could you post that file please.

And it's normal, that swap is missing (at least in `df -h`). Try mount to see what is mounted.

cheers
V.
Back to top
View user's profile Send private message
midnite
Guru
Guru


Joined: 09 Apr 2006
Posts: 451
Location: Hong Kong

PostPosted: Fri Jul 13, 2007 8:34 am    Post subject: Reply with quote

Oops!! YOU GUYS ARE REAL GENIUS!!

i have also checked /etc/fstab and /boot/grub/grub.conf before posting the question. But may be i was so tired after hours of work. i cannot spot the error. When i was posting the /etc/fstab here, i double checked and found i have missed the "s" in "defaults":
Code:
/dev/hda1   /boot        ext2        defaults,noatime     1 2

Thanks very much!!
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Fri Jul 13, 2007 9:53 am    Post subject: Reply with quote

No Problem. We are here to help.

cheers
V.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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