From: Eric S. <e.s...@in...> - 2006-04-04 16:47:05
|
Wing, What you need is add the ext2.o kernel module to the initrd package to moun= t an ext2 fs. The kernel module can be found in the kernel tarball. http://leaf.sourceforge.net/doc/guide/buci-downmod.html Initrd_ide contains all necessary modules to boot from a fat fs, but if you= need ext2, ext3, vfat, reiser, ... you have to add the modules. Including = them all by default will make the initrd very big. Minix is used for the initrd so that will work out-of-the-box. It's also po= ssible to mount fat32 fs, but the contents will be truncated to 8.3. You ne= ed the vfat.o module for full fat32 support. You can also add the ext2 module to modules.lrp if the fs is not used in th= e early boot process. Eric -----Original Message----- From: "wing newton" <win...@ya...> To: "Eric Spakman" <e.s...@in...>; "leaf" <lea...@li...urce= forge.net> Sent: 4-4-06 18:05 Subject: RE: [leaf-user] Bering-uClibc-2.4 mount problem Eric, Which kernel module ? I am using initrd_ide.lrp.=20 Does initrd_ide.lrp include all the necessary modules ? I did a few experiments with it. What I found are:=20 1) mount /dev/hda1 /mnt on an existing/working Linux (83) partition=20 > Mounting /dev/hda1 on /mnt failed: Invalid argument 2) mount -t ext2 /dev/hda1 /mnt > Mounting /dev/hda1 on /mnt failed: No such device Note that /dev/hda1 is an existing/working Linux ext2 FS. 3. I "lrpkg -i hdsupp" and then did a fsck.ext2 on /dev/hda1. It worked fine as I expected - implies the FS on hda1 is an ext2.=20 4. I got a new disk and did a fdisk to create a new partition. If I label it fat16 and do a mkfs.msdos on it, I can "mount /dev/hda1 /mnt or mount -t msdos /dev/hda1 /mnt" - no problem. It also works fine with a new vfat or minix partition too.=20 If I re-label the same partition as Linux partition i.e. 83 and do mkfs.ext2, surprisingly I can "mount /dev/hda1 /mnt" correctly. However, the same trick works only sometimes. Why ? Note that this is a new fdisk not the existing Linux partition. =20 =20 I need to mount an existing/working Linux partition.=20 Any hint ? Thank you for your help. =20 mount /dev/hda1=20 --- Eric Spakman <e.s...@in...> wrote: > Hello, >=20 > You have to include and load the ext2 kernel module > to mount an ext2 fs. >=20 > Eric >=20 > -----Original Message----- > From: "wing newton" <win...@ya...> > To: lea...@li... > Sent: 4-4-06 4:28 > Subject: [leaf-user] Bering-uClibc-2.4 mount problem >=20 > Greetings, >=20 > I installed initrd_ide.lrp and dmesg showed that > hda1 > and hda2 were detected. >=20 > However, when I tried to mount -t ext2 /dev/hda1 > /mnt=20 > , it returns No such device. >=20 > I also tried hdsupp.lrp. fdisk works fine but the > mounting problem is still there. >=20 > I can mount /dev/fd0 fine but not any harddisk > partitions.=20 >=20 > Any hint ? Any problem with the busybox's mount ?=20 >=20 > Thanks. >=20 >=20 >=20 >=20 >=20 > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around=20 > http://mail.yahoo.com=20 >=20 >=20 >=20 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcas= t and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D1= 21642 ------------------------------------------------------------------------ leaf-user mailing list: lea...@li... https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/ |