Same fdisk errors even after running fsck.ext4 on 16GB or 32GB microSD cards
11.04 natty and all kernels up to 2.6.38-7-generic.
Regards
Sid.
--
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks
root@sdrbox:/usr/src/ubuntu-natty-alpha3-r0-minimal-armel# ./setup_sdcard.sh --mmc /dev/sdd -uboot beagle --rootfs ext4 --swap_file 1000 --debug
I see...
sfdisk -l:
Disk /dev/sda: 19457 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdd: 32000 cylinders, 64 heads, 32 sectors/track
mount:
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
Are you 100% sure, on selecting [/dev/sdd] (y/n)? y
2 / 9: Unmountting Partitions
3 / 9: Creating Boot Partition
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): Command action
e extended
p primary partition (1-4)
Partition number (1-4): First cylinder (1-32000, default 1): Last cylinder, +cylinders or +size{K,M,G} (1-32000, default 32000):
Command (m for help): Selected partition 1
Hex code (type L to list codes): Changed system type of partition 1 to e (W95 FAT16 (LBA))
Command (m for help):
Disk /dev/sdd: 33.6 GB, 33554432000 bytes
64 heads, 32 sectors/track, 32000 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d3d04
Device Boot Start End Blocks Id System
/dev/sdd1 1 65 66544 e W95 FAT16 (LBA)
Command (m for help): The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
6 / 9: Formatting ext4 Partition
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=rootfs
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
2044000 inodes, 8175360 blocks
408768 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
250 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624
8 / 9: Populating rootfs Partition
Be patient, this may take a few minutes
mount: wrong fs type, bad option, bad superblock on /dev/sdd2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Unable to mount /dev/sdd2 at /tmp/tmp.GvquWTpaLd/disk to complete populating rootfs Partition
Please retry running the script, sometimes rebooting your system helps.
root@sdrbox:/usr/src/ubuntu-natty-alpha3-r0-minimal-armel# fsck.ext4 /dev/sdd2
e2fsck 1.41.14 (22-Dec-2010)
Superblock has an invalid journal (inode 8).
Clear<y>? yes
*** ext3 journal has been deleted - filesystem is now ext2 only ***
Superblock has_journal flag is clear, but a journal inode is present.
Clear<y>? yes
rootfs was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Journal inode is not in use, but contains data. Clear<y>? yes
*** journal has been re-created - filesystem is now ext3 again ***
rootfs: ***** FILE SYSTEM WAS MODIFIED *****
rootfs: 11/2044000 files (0.0% non-contiguous), 173324/8175360 blocks
root@sdrbox:/usr/src/ubuntu-natty-alpha3-r0-minimal-armel# fsck.ext4 /dev/sdd2
e2fsck 1.41.14 (22-Dec-2010)
Superblock has an invalid journal (inode 8).
Clear<y>? yes
*** ext3 journal has been deleted - filesystem is now ext2 only ***
Superblock has_journal flag is clear, but a journal inode is present.
Clear<y>? yes
rootfs was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Journal inode is not in use, but contains data. Clear<y>? yes