Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
liveusb: mounting /dev/sda /newroot failed invalid argument
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
thinking
n00b
n00b


Joined: 22 May 2005
Posts: 46

PostPosted: Fri Apr 27, 2007 5:50 pm    Post subject: liveusb: mounting /dev/sda /newroot failed invalid argument Reply with quote

hiho@ll
currently i want my usbpen to boot using liveusb
i used the minimal x86 install iso from
http://adelie.polymtl.ca/releases/x86/2006.1/installcd/install-x86-minimal-2006.1.iso
using
Quote:

http://gentoo-wiki.com/HOWTO_Gentoo_LiveCD_and_LiveUSB
http://gentoo-wiki.com/HOWTO_SSHD_enabled_livecd

the problem is that the usbpen starts to boot but it halts with the message
Quote:
Could not find CD to boot, something else needed!

using dmesg it shows that a usb device is found on sda
during the boot process i get a message
Quote:

attempting to mount media: -/dev/sda
attempting to mount media: -/dev/sda1


at the boot: prompt i tried /dev/sda and i get:
/dev/sda[1] is available but i get "mount /dev/sda on /newroot failed: invalid argument"

any hints would be great

EDIT:
well it seems that the default install-x86-minimal-2006.1 kernel has no vfat support
what i would need is a howto compile the kernel for a liveusb
didn't find much about this here

thx@ll
Back to top
View user's profile Send private message
orkid
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2002
Posts: 94
Location: Toronto, Canada

PostPosted: Sun Apr 29, 2007 1:12 am    Post subject: Reply with quote

how do you figure it doesn't have vfat support? cat /proc/filesystems shows it there if I recall correctly. I have the same problem as you.
Back to top
View user's profile Send private message
thinking
n00b
n00b


Joined: 22 May 2005
Posts: 46

PostPosted: Tue May 01, 2007 7:29 am    Post subject: Reply with quote

i just supposed, cause it didn't work

currently i got it run
read the liveusb gentoo howto
at the bottom of the howto you find how to extract the gentoo.igz file
now compile a 2.6.17 kernel using genpatches-2.6.17-7.base.tar.bz2, genpatches-2.6.17-7.extras.tar.bz2 from http://dev.gentoo.org/~dsd/genpatches/tarballs/ and vfat, codepage 437 and iso8859-1 as module
cp the modules in the corresponding dir from your extracted gentoo.igz directory (/lib/modules/2.6.17-gentoo-r7/kernel/fs)
edit /etc/initrd.scripts
in function "modules_scan"
add
Quote:

modprobe /lib/modules/2.6.17-gentoo-r7/kernel/fs/nls/nls_cp437 -n -v
backup
modprobe /lib/modules/2.6.17-gentoo-r7/kernel/fs/nls/nls_iso8859-1 -n -v
backup

(don't add it within the for loop, well i didn't get it run using the loop, so i modprobe vfat before the loop)

in function "findcdmount"
change the iso filesystem to vfat within the mount command
now recreate gentoo.igz with your changes, cp gentoo.igz back to liveusb
now it should boot
:lol:
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