Active Topics

 


Reply
Thread Tools
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#11
sorry . i wrote df -k


and here is the output

/home/user # df -k
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 233344 152984 76080 67% /
ubi0:rootfs 233344 152984 76080 67% /
tmpfs 1024 60 964 6% /tmp
tmpfs 256 72 184 28% /var/run
none 10240 72 10168 1% /dev
tmpfs 65536 4 65532 0% /dev/shm
/dev/mmcblk0p2 2064208 213008 1746344 11% /home
/home/user #
 
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#12
sorry . i also added the df -k and here is the total code :


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+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-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # sfdisk -1
sfdisk version 3.08 (aeb@cwi.nl, 040824) from util-linux-2.12r
Usage: sfdisk [options] device ...
device: something like /dev/hda or /dev/sda
useful options:
-s [or --show-size]: list size of a partition
-c [or --id]: print or change partition Id
-l [or --list]: list partitions of each device
-d [or --dump]: idem, but in a format suitable for later input
-i [or --increment]: number cylinders etc. from 1 instead of from 0
-uS, -uB, -uC, -uM: accept/report in units of sectors/blocks/cylinders/MB
-T [or --list-types]:list the known partition types
-D [or --DOS]: for DOS-compatibility: waste a little space
-R [or --re-read]: make kernel reread partition table
-N# : change only the partition with number #
-n : do not actually write to disk
-O file : save the sectors that will be overwritten to file
-I file : restore these sectors again
-v [or --version]: print version
-? [or --help]: print this message
dangerous options:
-g [or --show-geometry]: print the kernel's idea of the geometry
-G [or --show-pt-geometry]: print geometry guessed from the partition table
-x [or --show-extended]: also list extended partitions on output
or expect descriptors for them on input
-L [or --Linux]: do not complain about things irrelevant for Linux
-q [or --quiet]: suppress warning messages
You can override the detected geometry using:
-C# [or --cylinders #]:set the number of cylinders to use
-H# [or --heads #]: set the number of heads to use
-S# [or --sectors #]: set the number of sectors to use
You can disable all consistency checking with:
-f [or --force]: do what I say, even if it is stupid
/home/user # df -k
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 233344 152984 76080 67% /
ubi0:rootfs 233344 152984 76080 67% /
tmpfs 1024 60 964 6% /tmp
tmpfs 256 72 184 28% /var/run
none 10240 72 10168 1% /dev
tmpfs 65536 4 65532 0% /dev/shm
/dev/mmcblk0p2 2064208 213008 1746344 11% /home
/home/user #
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#13
Code:
sudo gainroot
sfdisk --list
 
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#14
here is the output




BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+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-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # sfdisk --list

Disk /dev/mmcblk0: 977024 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 1 884864 884864 28315648 c W95 FAT32 (LBA)
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 0 - 0 0 0 Empty
/home/user #
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#15
Okay, now try to mount the partition after checking the filesystem
Code:
fsck -f /dev/mmcblk0p1
Most of the times fsck guesses the right tweaks the filesystem needs. Sometimes the '-r' option might be necessary instead of '-f'.
Then mount MyDocs
Code:
mount MyDocs
.
All must be done by root (sudo gainroot)
 
James_Littler's Avatar
Posts: 820 | Thanked: 436 times | Joined on May 2010 @ Portsmouth, UK.
#16
Is this a 'read only file system' error?
Were you downloading anything large or using transmission by any chance when this first occurred?
 
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#17
i dont know if it is read only or anythin.i dont remember exactly wt i was doing but i think i was sending a movie from my laptop .

here is the out put of michaaa62's code


/home/user # fsck -f /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 3.0.1, 23 Nov 2008, FAT32, LFN
Logical sector size is zero.
/home/user # mount MyDocs
mount: mounting /dev/mmcblk0p1 on /home/user/MyDocs failed: Invalid argument
/home/user # mount MyDocs
mount: mounting /dev/mmcblk0p1 on /home/user/MyDocs failed: Invalid argument
/home/user #
 
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#18
i tried fsck -r but online one line is given
wt else should i do ?? .
 
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#19
by the way. when i connect it to the computer it shows the drive but when i click on it it says , please enter Drive (E) .
 
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#20
Originally Posted by awahmohamad View Post
by the way. when i connect it to the computer it shows the drive but when i click on it it says , please enter Drive (E) .
but i can browse the internet and i can install someprograms from the app magaer.

please tell if it is going to be fine . please . i realy want to get it back
 
Reply


 
Forum Jump


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