Active Topics

 


Reply
Thread Tools
Posts: 150 | Thanked: 3 times | Joined on Jan 2007
#81
Ok, I think I've been able to isolate the problem a bit.
Running dmesg prints out following:

Code:
[ 1105.062469] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[ 1109.425537] EXT2-fs error (device mmcblk0p2): ext2_check_page: bad entry in directory #2: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0
[ 1109.426086] EXT2-fs error (device mmcblk0p2): ext2_readdir: bad page in #2
[ 1110.415252] EXT2-fs error (device mmcblk0p2): ext2_readdir: bad page in #2
[ 1120.740539] EXT2-fs error (device mmcblk0p2): ext2_readdir: bad page in #2
[ 1122.880798] EXT2-fs error (device mmcblk0p2): ext2_readdir: bad page in #2
Got several "error blocks" like this, assume every time I try to mount the ext2 partition. Do I have a bad SD card? In sfdisk I used:

Code:
# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,45000,6
/dev/mmcblk0p2:45001,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
Still not sure whether I should have switched the "active" flag on or not.
 
sebastian.linux's Avatar
Posts: 91 | Thanked: 2 times | Joined on Jan 2007 @ Spain
#82
Originally Posted by DCr33P View Post
While partitioning my SD card with sfdisk it asks me whether I want to mark the Fat16 partition as active or not. I chose yes (to mark as active). Was this decision ok?
I think you shouldn't. Because the vfat partition is not bootable.
 
Posts: 150 | Thanked: 3 times | Joined on Jan 2007
#83
I just did the partitioning again and did not set the active flag. Then I made a vfat and ext2 fs, again. After rebooting and mounting ext2, there is still the same data as before when typing "df" but no visible data. How can I format the partiton?

And there is something very wrong:

Code:
/media/mmc2 # mkdir test
mkdir: Cannot create directory `test': Input/output error

Last edited by DCr33P; 2007-02-24 at 15:38.
 
Posts: 150 | Thanked: 3 times | Joined on Jan 2007
#84
Ok, I am stalled right now and don't know what to do next.
 
Posts: 150 | Thanked: 3 times | Joined on Jan 2007
#85
Grr... I am going crazy
I flushed the sd card with dd if=/dev/null ... stuff. Then I created a whole FAT16 parition with sfdisk:

Code:
sfdisk /dev/mmcblk0 << EOF 
;
EOF
Then again with sfdisk:

Code:
..blk0p1:1,45000,6
..blk0p2:45001,,
...
Then I had a 500mb linux partiton and 1.5 gig fat16.

Now again I did the dd if=/dev/null stuff to /dev/mmcblk0p2, because there were some problems reported, that mkfs.ext2 did not format he partiton right.
Then:

mkdosfs /dev/mmcblk0p1
(REBOOT)
(insmod mbcache/ext2)
mkfs.ext2 /dev/mmcblk0p2
(REBOOT)

and when I mount the ext2 partiton, "df" shows me:

Code:
/dev/mtdblock4            2048      1772       276  87% /mnt/initfs
none                       512        64       448  13% /mnt/initfs/tmp
/dev/mtdblock4          257536    120884    136652  47% /
none                       512        64       448  13% /tmp
none                      1024        68       956   7% /dev
/dev/mmcblk1p1          122912     17392    105520  14% /media/mmc1
/dev/mmcblk0p2          499014    194165    279085  41% /opt
I erased the partiton a few times with dd, deleted partitions and crated them, erased them egain with dd and format it with mkfs.ext2 and still have those 41% of data on it?

cd /opt ; mkdir test -> again with input/output error.

Somethig is veeeeeeeeeery wrong...

Please, need help
 
sapporobaby's Avatar
Posts: 355 | Thanked: 9 times | Joined on Feb 2007 @ Helsinki, Finland
#86
Why would anyone want to do this?
 
Posts: 150 | Thanked: 3 times | Joined on Jan 2007
#87
ehhhhhhem...???
 
sapporobaby's Avatar
Posts: 355 | Thanked: 9 times | Joined on Feb 2007 @ Helsinki, Finland
#88
Originally Posted by DCr33P View Post
ehhhhhhem...???
Was that a very feeble attempt at humor or an answer?
 
Posts: 150 | Thanked: 3 times | Joined on Jan 2007
#89
Ehhhhhheeeem....??? An Answer to what, exactly?
 
sapporobaby's Avatar
Posts: 355 | Thanked: 9 times | Joined on Feb 2007 @ Helsinki, Finland
#90
I asked why would anyone want to do this. To boot from an MMC? What is the advantage or need?
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:29.