Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39755 - Mounting /dev/hda3 on /newroot failed: Invalid argument !
Summary: Mounting /dev/hda3 on /newroot failed: Invalid argument !
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
: 41803 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-29 06:11 UTC by Gabriel Iovino
Modified: 2004-02-21 13:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Iovino 2004-01-29 06:11:59 UTC
My error on reboot is this: 

Code: 

Gentoo initrd startup... 
STEP 1: Command line parsing 
STEP 2: Module loading 
---- Scanning for uhci...skipping usbscore, module already loaded by us 
---- Scanning for hid...no such module found 
---- Scanning for usb-storage...no such module found 
---- Scanning for sbp2...no such module found 
STEP 3: Mounting necessary filesystems per boot options 
Started divice managment daemon v1.3.25 for /dev 
STEP 4: Determining root device 
STEP 4a: Mounting root 
mount : Mounting /dev/hda3 on /newroot failed: Invalid argument 
Could not mount specifited ROOT, try again 
Root block device uncpecifited or not detected. 
Please specify a device to boot, or "shell" for a shell.

Note:

The install instructions say: 

Quote: 
If you're using genkernel 1.4 or newer from a GRP set, there's no need to specify a kernel: 
# genkernel 
 
Running the command genkernel by itself did not do anything. I was forced to run: 

Code: 
# genkernel all 

My fstab files looks like: 

Code: 

# /etc/fstab: static file system information. 
# 
# noatime turns off atimes for increased performance (atimes normally aren't 
# needed; notail increases performance of ReiserFS (at the expense of storage 
# efficiency).  It is safe to drop the noatime options if you want and to 
# switch between notail and tail freely. 

# <fs>           <mount point>   <type>   <opts>          <dump/pass> 

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. 

/dev/hda1                    /boot            ext2         noauto,noatime   1 1 
/dev/hda3                    /                 reiserfs     noatime              0 0 
/dev/hda2                    none           swap         sw                     0 0 
/dev/cdroms/cdrom0   /mnt/cdrom  iso9660     noauto,ro,user     0 0 

#NOTE: The next line is critical for boot! 

none                          /proc             proc         defaults              0 0 

#glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for 
#POSIX shared memory (shm_open, shm_unlink). 
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will 
# use almost no memory if not populated with files) 
# Adding the following line to /etc/fstab should take care of this: 

none                          /dev/shm      tmpfs        defaults              0 0 

My grub.conf looks like this: 

Code: 

default 0 
timeout 30 
splashimage=(hd0,0)/boot/grub/splash.xpm.gz 

title=Gentoo Linux (genkernel 3.01beta8) 
root (hd0,0) 
kernel (hd0,0)/boot/kernel-2.4.22-gentoo-r5 root=/dev/ram0 real_root=/dev/hda3 init=/linuxrc 
initrd (hd0,0)/boot/initrd-2.4.22-gentoo-r5 
 
I see these other threads that discuss the same problem: 

http://forums.gentoo.org/viewtopic.php?t=129627&highlight=newroot+failed 

http://forums.gentoo.org/viewtopic.php?t=127619&highlight=newroot+failed 

http://forums.gentoo.org/viewtopic.php?t=129574&highlight=newroot+failed 

http://forums.gentoo.org/viewtopic.php?t=129223&highlight=newroot+failed 

http://forums.gentoo.org/viewtopic.php?t=126058&highlight=newroot+failed 

http://forums.gentoo.org/viewtopic.php?t=128215&highlight=newroot+failed

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Gabriel Iovino 2004-01-29 07:00:30 UTC
Forgot to specify version in the bug report:

Version = 3.0.1_beta8
Comment 2 Brad House 2004-01-29 17:17:00 UTC
reiserfs not enabled in your kernel ??
Comment 3 Amy 2004-02-02 03:49:41 UTC
I have had this problem too. The only way I could fix it was to run "genkernel --menuconfig all" and compile in reiserfs support directly, rather than as a module. Then everything was fine.
Comment 4 giovanni.bobbio 2004-02-09 09:27:44 UTC
I have the exact same problem and I think reiserfs is correctly compiled in the kernel:

nukien linux # grep REISER .config
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
CONFIG_REISERFS_PROC_INFO=y

Sources: /usr/src/linux-2.6.1-gentoo-r1/
Genkernel: 3.0.1_beta11
Comment 5 Brad House 2004-02-14 20:10:31 UTC
hmm, maybe busybox isn't properly detecting the FS type in a mount,
I think I may have heard that ... if that's the case, I'll have to
look into it further.
Comment 6 giovanni.bobbio 2004-02-15 07:17:02 UTC
Just tried the newly unmasked (for stable x86) genkernel-3.0.1_beta12 and I still get the same problem.
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2004-02-19 10:41:00 UTC
*** Bug 41803 has been marked as a duplicate of this bug. ***
Comment 8 Brad House 2004-02-21 13:51:54 UTC
busybox in _beta12 is good
if it's still happening, it's because you didn't compile 
reiserfs into your kernel.