Hi! > I have an issue with busybox-1.16.0 (from buildroot-2010.02) with mount. > I had partitioned a flash and set up fat 16 and fat 32 filesystems > there. Then I decided to change them to ext2 ... How did you change the filesystem type? How did you create the ext2 filesystem? Which type is the partition marked in the partition table (fdisk -l YOUR_DISK_DEVICE)? Which filesystem type is set in /etc/fstab (cat /etc/fstab)? which kernel versions do you use busybox system/upstream?
At this point I can acknowledge, that busybox mount does not every time chose (or better tries to chose) the same filesystem type as upstream versions, but only if there are any doubts which one to chose. That means busybox likes to stick on fat or vfat filesystem, if you forget to write a correct filesystem on the partition. The upstream versions seam to depend on the filesystem type in the partition table and prefere to chose ext2/3/4 if there is set a linux type (0x81). But anyway, the mistake is to try mounting a partition with an incorrect or unprepared filesystem. I never had any trouble with busybox mounting, as soon as the filesystems had bean created correctly. Currently I do know only one case when busybox mount may fail disastrously, that is, when you try to mount an unprepared filesystem, that is not included in the kernel (it gets mounted sometimes without any notable error message - you need to do dmesg to see the error message/warning) . busybox mount seem to be buggy sometimes in that case, but I didn't track that down yet. The problem in your situation may be more an issue with different kernel versions or configurations, as the real mount is done in the kernel. The mount call (either busybox or upstream) does set a parameter block with the mount options specified and then calls the kernel interface to do the mount. Setting up those call parameters should be correct in busybox. Real bugs at this point would have otherwise led to major troubles. ... but there have to be some differences (see above). Harald _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
