Reply
Thread Tools
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#161
I would think the error results from no file systems found in /dev/mmcblk1, which should be no partition, but a full card. Linux does neither apply nor expect file systems in full devices.

The irritating fact that sfdisk does not note anything about the external card does not look good at all.
I would suggest to try the command once again after a full shutdown including the removal of the battery for a couple of seconds. After boot try to run the sfdisk command on that device only, again.
Code:
sudo gainroot 
sfdisk -l /dev/mmcblk1
If that still does not give any output, try to create the partition table and after a reboot try to create the file system
Code:
sudo gainroot
echo "unit: sectors
> /dev/mmcblk0p1 : start= 16, size= 7554080, Id=c" > table
This a crude estimate for a 4GB card. That size number might be too low, but will not give you an error. You might fine tune later. This command will give you a file, called 'table'. The name has no meaning, but will give you a clue what it is good for. Apply this file to the card as partition table:
Code:
sfdisk  --no-reread /dev/mmcblk1 < table
Any errors? If not, reboot to create the file system, either in HildonFileManager or in X-Terminal
Code:
sudo gainroot 
mkfs.vfat /dev/mmcblk1p1 -n microSD_4GB
You might skip the naming option, if you do not like a label for your devices.

Please interrupt for any errors in the command output!

Viel Erfolg!

Last edited by michaaa62; 2013-06-07 at 19:44.
 

The Following User Says Thank You to michaaa62 For This Useful Post:
misterc's Avatar
Posts: 1,625 | Thanked: 998 times | Joined on Aug 2010
#162
did anyone try TestDisk & PhotoRec yet?


EDIT: willi6868, if you have access to an *buntu PC, you might want to try to install those utilities there 1st (if you haven't yet)
__________________
information is a necessary though no sufficient condition to rationality...

Last edited by misterc; 2013-06-07 at 20:38.
 

The Following User Says Thank You to misterc For This Useful Post:
willi6868's Avatar
Posts: 548 | Thanked: 562 times | Joined on Aug 2011 @ Germany
#163
Originally Posted by michaaa62 View Post
I would think the error results from no file systems found in /dev/mmcblk1, which should be no partition, but a full card. Linux does neither apply nor expect file systems in full devices.

The irritating fact that sfdisk does not note anything about the external card does not look good at all.
I would suggest to try the command once again after a full shutdown including the removal of the battery for a couple of seconds. After boot try to run the sfdisk command on that device only, again.
Code:
sudo gainroot 
sfdisk -l /dev/mmcblk1
Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # sfdisk -l /dev/mmcblk1

Disk /dev/mmcblk1: 0 cylinders, 4 heads, 16 sectors/track

sfdisk: read error on /dev/mmcblk1 - cannot read sector 0
 /dev/mmcblk1: unrecognized partition table type
No partitions found
/home/user #
So he is recognizing the c but cant read it?

Originally Posted by misterc View Post
did anyone try TestDisk &amp; PhotoRec yet?


EDIT: willi6868, if you have access to an *buntu PC, you might want to try to install those utilities there 1st (if you haven't yet)
Already tried it on a Windows Vista PC but it is crashing/ have a timeout and doesn't recognizing the memory card after the timeout like every other program/windows explorer I tried..

Last edited by willi6868; 2013-06-07 at 21:51.
 

The Following User Says Thank You to willi6868 For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#164
Looks like a corrupted partition table.

Please try the commands from the earlier post to create the table, then apply it to the card, reboot and hope for the best result...
 

The Following User Says Thank You to michaaa62 For This Useful Post:
willi6868's Avatar
Posts: 548 | Thanked: 562 times | Joined on Aug 2011 @ Germany
#165
Badly got an error by applying the partitin table

Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # echo "unit: sectors
>  /dev/mmcblk0p1 : start= 16, size= 7554080, Id=c" > table
/home/user # sfdisk  --no-reread /dev/mmcblk1 < table

Disk /dev/mmcblk1: 0 cylinders, 4 heads, 16 sectors/track
read: Inappropriate ioctl for device

sfdisk: read error on /dev/mmcblk1 - cannot read sector 0
 /dev/mmcblk1: unrecognized partition table type
Old situation:
No partitions found
Warning: given size (7554080) exceeds max allowable size (0)

sfdisk: bad input
/home/user #
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#166
looks like /dev/mmcblk1 is only in RAM, the card seems not be connected or attached to this device node.
Please try to get some output from the kernel via HAL
Code:
sudo gainroot
lshal | grep volume
lshal | grep Volume
As this is case-sensitive and i am not sure which output to check for the external card please check this for both commands to find any reference to an external card.

Did you recently try to eject the card and re-insert it to avoid possible bad contacts of the card to the port?
 
willi6868's Avatar
Posts: 548 | Thanked: 562 times | Joined on Aug 2011 @ Germany
#167
Reinserted the memory card before running the commands and my N900 showed me the message 'Speicherkarte beschädigt / damaged memory card'

Here is the log:

Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # lshal | grep volume
  block.is_volume = false  (bool)
udi = '/org/freedesktop/Hal/devices/volume_part3_size_805306368'
  block.is_volume = true  (bool)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_part3_size_805306368'  (string)
  volume.block_size = 512  (0x200)  (int)
  volume.fstype = 'swap'  (string)
  volume.fsusage = 'other'  (string)
  volume.fsversion = '2'  (string)
  volume.is_disc = false  (bool)
  volume.is_mounted = false  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = ''  (string)
  volume.linux.is_device_mapper = false  (bool)
  volume.mount_point = ''  (string)
  volume.num_blocks = 1572864  (0x180000)  (uint64)
  volume.partition.flags = {} (string list)
  volume.partition.label = ''  (string)
  volume.partition.media_size = 32015122432  (0x774400000)  (uint64)
  volume.partition.number = 3  (0x3)  (int)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.start = 31142739968  (0x740408000)  (uint64)
  volume.partition.type = '0x82'  (string)
  volume.partition.uuid = ''  (string)
  volume.size = 805306368  (0x30000000)  (uint64)
  volume.uuid = ''  (string)
udi = '/org/freedesktop/Hal/devices/volume_uuid_9f274d7e_2306_4977_b3e6_079c43d03c46'
  block.is_volume = true  (bool)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_9f274d7e_2306_4977_b3e6_079c43d03c46'  (string)
  volume.block_size = 512  (0x200)  (int)
  volume.fstype = 'ext3'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fsversion = '1.0'  (string)
  volume.ignore = false  (bool)
  volume.is_disc = false  (bool)
  volume.is_mounted = true  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = ''  (string)
  volume.linux.is_device_mapper = false  (bool)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'acl', 'user_xattr', 'data='} (string list)
  volume.mount_point = '/home'  (string)
  volume.num_blocks = 4194304  (0x400000)  (uint64)
  volume.partition.flags = {} (string list)
  volume.partition.label = ''  (string)
  volume.partition.media_size = 32015122432  (0x774400000)  (uint64)
  volume.partition.number = 2  (0x2)  (int)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.start = 28995256320  (0x6c0408000)  (uint64)
  volume.partition.type = '0x83'  (string)
  volume.partition.uuid = ''  (string)
  volume.size = 2147483648  (0x80000000)  (uint64)
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.uuid = '9f274d7e-2306-4977-b3e6-079c43d03c46'  (string)
udi = '/org/freedesktop/Hal/devices/volume_uuid_4BB1_E781'
  block.is_volume = true  (bool)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_4BB1_E781'  (string)
  volume.block_size = 512  (0x200)  (int)
  volume.fstype = 'vfat'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fsversion = 'FAT32'  (string)
  volume.ignore = false  (bool)
  volume.is_disc = false  (bool)
  volume.is_mounted = true  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = 'Nokia N900'  (string)
  volume.linux.is_device_mapper = false  (bool)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'shortname=', 'codepage=', 'iocharset=', 'umask=', 'dmask=', 'fmask=', 'uid=', 'flush'} (string list)
  volume.mount_point = '/home/user/MyDocs'  (string)
  volume.num_blocks = 56631296  (0x3602000)  (uint64)
  volume.partition.flags = {} (string list)
  volume.partition.label = ''  (string)
  volume.partition.media_size = 32015122432  (0x774400000)  (uint64)
  volume.partition.number = 1  (0x1)  (int)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.start = 32768  (0x8000)  (uint64)
  volume.partition.type = '0x0c'  (string)
  volume.partition.uuid = ''  (string)
  volume.size = 28995223552  (0x6c0400000)  (uint64)
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.uuid = '4BB1-E781'  (string)
  block.is_volume = false  (bool)
/home/user # lshal | grep Volume
  info.product = 'Volume (swap)'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  info.product = 'Volume (ext3)'  (string)
  org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
/home/user #
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#168
Looks bad! None of the output is referring to an external card.
Do you have a second card to check the hardware of the N900 for full functionality?
This card seems to be at the end of its life.
 
willi6868's Avatar
Posts: 548 | Thanked: 562 times | Joined on Aug 2011 @ Germany
#169
Originally Posted by michaaa62 View Post
Looks bad! None of the output is referring to an external card.
Do you have a second card to check the hardware of the N900 for full functionality?
This card seems to be at the end of its life.
Nothing possible anymore?

Sure I have a second one.. Wich commands should I use for it?
__________________
Nokia N80 -> Nokia N900 -> Nokia N9 -> Jolla Phone & Jolla Tablet -> Sony Xperia XA2 (SFOS)
 
pichlo's Avatar
Posts: 6,453 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#170
No commands, just plug it in, close the lid and see if it works.

I am sorry about the loss of your data. It looked like that after your second post but I was secretly hoping I was wrong.
 

The Following User Says Thank You to pichlo For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:17.