How to mount ext3 filesystem
hi all
I am creating initrd.gz file for that I was creating ext2 fs and mount that its working fine but when i try mount ext3 fs then it is giving error. for ext2 fs I am running these commands: # dd if=/dev/zero of=/boot/initrd bs=1M count=4 # mke2fs -F -m 0 1024 /boot/initrd # mount -t ext2 -o loop /boot/initrd /mnt/initrd/ for ext3 fs what I will do? Regards KKPAL |
the only difference between ext2 and ext3 is ext3's journal. you don't want a journal in an initrd.
|
hi
when I was using ext2 fs to make initrd.gz image when I am booting with it the boot process ends up with this error message : "No filesystem could mount root, tried:cramfs squashfs romfs. kernel panic- not syncing: VFS:unable to mount root fs on unknown block(1,0)" thats why i am trying it with ext3 fs. what is going wrong? regards kkpal |
i would guess you left ext2 out of the kernel config of the kernel that you are doing this with.
|
Hi,
can you try with this one #mke2fs -j /boot/initrd #mount -t ext3 -o remount,ro /boot/initrd |
its working fine for ext3 fs but it not solve my problem.
same error come at boot time. I do not left ext2 out of the kernel config. some lines of kernel config file: # CONFIG_EXT2_FS=m # CONFIG_EXT2_FS_XATTR is not set # CONFIG_EXT2_FS_XIP is not set I changed last two lines # CONFIG_EXT2_FS_XATTR=y # CONFIG_EXT2_FS_XIP=y |
Quote:
Code:
CONFIG_EXT2_FS=y |
Hi,
Quote:
If you don't have the filesystem support compiled in the kernel then you will need to create a 'initrd'. I'm not sure what the OP is trying to do at this point. Code:
from Slackware 12; Quote:
|
Quote:
|
Hi,
Quote:
The '# CONFIG_EXT2_FS=m' was commented out as you indicated. I was responding about the initrd and support. There are advantages to using a initrd for the filesystem and support modules. |
I am giving you details of my building process for embedded target (I am using T2 SDE):
1. I downloaded t2-7.0-rc2.tar.bz2 and extract it in my root directory. 2. # cd t2-7.0-rc2 3 # ./script/Config -cfg new 4 then I choose: - Target Distribution (embedded) Generic Embedded -Target Style (dietlibc) diet libc (less is more) -Architecture, CPU and Optimisation (x86) x86 (AMD, Intel, VIA and compatible) (i486) Optimised for intel 486 (isolinux) Use Syslinux/isolinux as CD loader 5 # ./script/Build-Target -cfg new 6. Some packages are failed to build, I removed those from config/new/package file. (i.e. libtool, cpio, coreutils, findutils, ppp, zile, popt, util-linux, psmisc. tftp-hpa, clockspeed) and add cramfs. and continue rerun ./script/Build-Target -cfg new 7. Build process completed. 8. # dd if=/dev/zero of=/boot/initrd bs=1M count=20 9. # mke2fs -F -m 0 -b 1024 /boot/initrd 10. # mkdir /mnt/test 11. # mount -t ext2 -o loop /boot/initrd /mnt/test 12 and copy the contents of /root/t2-7.0-rc2/build/new-7.0-rc2-embedded-x86-i486/TOOLCHAIN/rootfs into /mnt/test directory. 13. # umount /mnt/test 14. # gzip -9 /boot/initrd 15. initrd.gz file is created 16. I copied initrd.gz, vmlinuz (/root/t2-7.0-rc2/build/new-7.0-rc2-embedded-x86-i486/boot/vmlinuz_2.6.21.7-dist) and syslinux.cfg in Compact Flash. 17. # syslinux /dev/sdb1 (to make CF bootable). 18. syslinux.cfg contain: default vmlinuz root=/dev/ram0 initrd=initrd.gz ide=nodma PMEDIA=ideflash PKEYS=us 19. when I boot my system with CF support. It ended with these errors: No filesystem could mount root, tried: cramfs squashfs romfs kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) I am sorry. By mistake I commented lines in my previous post. actually these are the lines. CONFIG_EXT2_FS=m # CONFIG_EXT2_FS_XATTR is not set # CONFIG_EXT2_FS_XIP is not set I changed last two lines CONFIG_EXT2_FS_XATTR=y CONFIG_EXT2_FS_XIP=y |
CONFIG_EXT2_FS=m
doesn't that need to be "y" to be able to mount the initrd at boot time? That's all i can think of. |
Quote:
|
How to mount ext3 in RAM?
Hey Guyz! I was just wondering if its possible to mount an ext3 file system in RAM which I can later scan it. For example... JFFS2 can be mounted and I have tried that and have been successful - http://wiki.buici.com/wiki/Mounting_...esystem_in_RAM It gives some information as how to mount a JFFS2 in RAM, I tried using similar commands for ext3 but then I get the following error: ERROR: Module ext3 is in use when I check /proc/modules I get the following abt ext3 ext3 110281 1 - Live 0xf887c000 So ext3 is already in use but then how can mount another ext3 file system in RAM? Thanks Vik |
All times are GMT -5. The time now is 06:06 PM. |