|
2016-03-09
, 17:38
|
|
Posts: 6,447 |
Thanked: 20,981 times |
Joined on Sep 2012
@ UK
|
#2
|
files on MyDocs can be edited
Some pertinent <df>-results are as follows:
1966/2064 is approx. 95%, not 100%. Deleting files fromCode:Filesystem 1k-blocks Used Available Use% Mounted on /dev/mmcblk0p2 2064208 1966052 0 100% /home /home/opt 2064208 1966052 0 100% /opt (various /opt/pymaemo lines) ... 2064208 1966052 0 100% /usr/... /dev/mmcblk0p1 28312128 27012544 1299584 95% /home/user/MyDocs /dev/mmcblk1p1 15549952 14970720 579232 96% /media/mmc1
/home/user causes the 'Used' value to drop.
I'll confess I don't understand the duplication of numbers -
does the partition have different filesystems written on
different sections? Or are some mount-names *aliases*?
The first 500 bytes - the bootrecord - of </dev/mmcblk0p2>
are all '/x00' - it's been zeroed-out, somehow. The first 500
bytes on the other two mmcblk partitions aren't all zero.
Disk /dev/mmcblk0p2 doesn't contain a valid partition table
is malware the most likely reason?
Any tips on how to safely fix it?
|
2016-03-15
, 16:06
|
Posts: 35 |
Thanked: 13 times |
Joined on Apr 2013
@ N.A.
|
#3
|
Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mmcblk0p2 131072 68523 62549 53% /home /opt/pymaemo/... 131072 68523 62549 53% /usr/... /dev/mmcblk0p1 0 0 0 - /home/user/MyDocs /dev/mmcblk1p1 0 0 0 - /media/mmc1
Filesystem 1k-blocks Used Available Use% Mounted on /dev/mmcblk0p2 2064208 1860848 98504 95% /home /home/opt 2064208 1860848 98504 95% /opt (various /opt/pymaemo lines ...) 2064208 1860848 98504 95% /usr/... /dev/mmcblk0p1 28312128 27095872 1216256 96% /home/user/MyDocs /dev/mmcblk1p1 15549952 15335680 214272 99% /media/mmc1
Disk /dev/mmcblk1: 15.9 GB, 15931539456 bytes 255 heads, 63 sectors/track, 1936 cylinders, total 31116288 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/mmcblk1p1 8192 31116287 15554048 c W95 FAT32 (LBA) Disk /dev/mmcblk0: 32.0 GB, 32015122432 bytes 4 heads, 16 sectors/track, 977024 cylinders, total 62529536 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/mmcblk0p1 64 56631359 28315648 c W95 FAT32 (LBA) /dev/mmcblk0p2 56631360 60825663 2097152 83 Linux /dev/mmcblk0p3 60825664 62398527 786432 82 Linux swap / Solaris
|
2016-03-15
, 16:15
|
|
Posts: 6,447 |
Thanked: 20,981 times |
Joined on Sep 2012
@ UK
|
#4
|
|
2016-03-28
, 16:14
|
Posts: 35 |
Thanked: 13 times |
Joined on Apr 2013
@ N.A.
|
#5
|
Tags |
nokia-n900, partition-table |
|
inode problem.
Recently, when I try to edit a file on </home/user> with
nano, it refuses to save the file, saying 'Error 22: No
space left on device'
When I close nano, the file is truncated to zero length
(fortunately, nano backed-up copies to the SD card). The
</home/user> files are still there, and readable, as long
as I don't edit them.
If I try to copy a file from </home/user/MyDocs> to
</home/user>, I get the same error message (but the file
isn't truncated - files on MyDocs can be edited).
Some pertinent <df>-results are as follows (sorry about the formatting collapse):
================================================== =================
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mmcblk0p2 2064208 1966052 0 100% /home
/home/opt 2064208 1966052 0 100% /opt
(various /opt/pymaemo lines) ... 2064208 1966052 0 100% /usr/...
/dev/mmcblk0p1 28312128 27012544 1299584 95% /home/user/MyDocs
/dev/mmcblk1p1 15549952 14970720 579232 96% /media/mmc1
================================================== =================
1966/2064 is approx. 95%, not 100%. Deleting files from
/home/user causes the 'Used' value to drop.
I'll confess I don't understand the duplication of numbers -
does the partition have different filesystems written on
different sections? Or are some mount-names *aliases*?
The first 500 bytes - the bootrecord - of </dev/mmcblk0p2>
are all '/x00' - it's been zeroed-out, somehow. The first 500
bytes on the other two mmcblk partitions aren't all zero.
Here are some <fdisk> listings:
================================================== ==============
Disk /dev/mmcblk0p1: 29.0 GB, 28995223552 bytes
4 heads, 16 sectors/track, 884864 cylinders, total 56631296 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
.................................................. .............
Disk /dev/mmcblk0p2: 2147 MB, 2147483648 bytes
4 heads, 16 sectors/track, 65536 cylinders, total 4194304 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mmcblk0p2 doesn't contain a valid partition table
================================================== ==============
I had recently been installing and uninstalling programs
downloaded from the Net, by both direct compiling/installing,
and by dpkg or apt-get, often as root; also I may have
attempted to copy-in files too large for the available space.
What might have caused this bootrecord-erasure - is malware
the most likely reason? Any tips on how to safely fix it?
I can't run <fsck> because I don't know how to unmount
</dev/mmcblk0p2> (it says "device or resource busy").
Could a regular contributor please post a link to the first 500
bytes of N900's /dev/mmcblk0p2? Maybe writing that back is all
that's needed?