maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   SDHC Card Trouble - Transcend 8GB SDHC (https://talk.maemo.org/showthread.php?t=16546)

fanoush 2008-02-13 18:26

Re: SDHC Card Trouble - Transcend 8GB SDHC
 
1 Attachment(s)
When system boots my card is detected as
mmcblk0: mmc0:b368 SDC 7879168KiB
this can be found by typing 'dmesg' in osso-xterm right after boot. If your card is same, here is zipped MBR. unzip it and write it to card as root
Code:

dd if=8GBSDHC.bin of=/dev/mmcblkX
partition layout in both sectors and cylinders is here
Code:

Nokia-N800-26:~$ sfdisk -uS -l 8GBSDHC.bin
...
Warning: The partition table looks like it was made
  for C/H/S=*/233/20 (instead of 0/0/0).
For this listing I'll assume that geometry.
Units = sectors of 512 bytes, counting from 0

  Device Boot    Start      End  #sectors  Id  System
8GBSDHC.bin1          8192  15758335  15750144  b  W95 FAT32
                start: (c,h,s) expected (1,176,13) found (0,130,3)
                end: (c,h,s) expected (1023,232,20) found (980,232,20)
8GBSDHC.bin2            0        -          0  0  Empty
8GBSDHC.bin3            0        -          0  0  Empty
8GBSDHC.bin4            0        -          0  0  Empty
Nokia-N800-26:~$ sfdisk -l 8GBSDHC.bin
...
Warning: The partition table looks like it was made
  for C/H/S=*/233/20 (instead of 0/0/0).
For this listing I'll assume that geometry.
Units = cylinders of 2385920 bytes, blocks of 1024 bytes, counting from 0

  Device Boot Start    End  #cyls    #blocks  Id  System
8GBSDHC.bin1          1+  3381-  3380-  7875072    b  W95 FAT32
                start: (c,h,s) expected (1,176,13) found (0,130,3)
                end: (c,h,s) expected (1023,232,20) found (980,232,20)
8GBSDHC.bin2          0      -      0          0    0  Empty
8GBSDHC.bin3          0      -      0          0    0  Empty
8GBSDHC.bin4          0      -      0          0    0  Empty


fanoush 2008-02-13 18:37

Re: SDHC Card Trouble - Transcend 8GB SDHC
 
Quote:

Originally Posted by GeraldKo (Post 142032)
What does one do to "save a master boot record with partition table"?

It is the first sector on disk/card. As root copy it to file like:
Code:

dd if=/dev/mmcblk0 of=my4gbsandisk.bin bs=512 count=1
This makes copy of master boot record of card in internal slot to my4gbsandisk.bin file (1 sector of 512 bytes), store it somewhere safe (not to the card itself :-)

you can later restore it by switching if (input file) and of (output file) arguments in the dd command above


All times are GMT. The time now is 15:57.

vBulletin® Version 3.8.8