BusyBox v1.20.0 (Debian 1.20.0power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.
~ $ root
BusyBox v1.20.0 (Debian 1.20.0power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.
Nokia-N900:~# umount /dev/mmcblk0p1
umount: can't umount /dev/mmcblk0p1: Invalid argument
Nokia-N900:~# fsck -a /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
65:01/00
Copying backup to original
Cluster 5 out of range (251658240 > 442378). Setting to EOF.
/
Contains a free cluster (2). Assuming EOF.
FAT32 root dir starts with a bad cluster!
Nokia-N900:~#
Nokia-N900:~# umount-f /dev/mmcblk0p1
sudo gainroot sfdisk -l
mkfs.vfat -n MyDocs /dev/mmcblk0p1
fsck -af /dev/mmcblk0p1 fsck -r /dev/mmcblk0p1 fsck -n -v /dev/mmcblk0p1
Nokia-N900:~# umount-f /dev/mmcblk0p1
Nokia-N900:~# umount -f /dev/mmcblk0p1 umount: can't forcibly umount /dev/mmcblk0p1: Invalid argument Nokia-N900:~#
sudo gainroot sfdisk -l
mkfs.vfat -n MyDocs /dev/mmcblk0p1
fsck -af /dev/mmcblk0p1 fsck -r /dev/mmcblk0p1 fsck -n -v /dev/mmcblk0p1
/home/user # sfdisk -l Disk /dev/mmcblk1: 60352 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/mmcblk1p1 0+ 47999 48000- 1535999+ c W95 FAT32 (LBA) /dev/mmcblk1p2 48000 60351 12352 395264 83 Linux /dev/mmcblk1p3 0 - 0 0 0 Empty /dev/mmcblk1p4 0 - 0 0 0 Empty 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 #
/home/user # fsck -af /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
65:01/00
Copying backup to original
Cluster 5 out of range (251658240 > 442378). Setting to EOF.
/
Contains a free cluster (2). Assuming EOF.
FAT32 root dir starts with a bad cluster!
/home/user #
/home/user #
/home/user # fsck -r /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
65:01/00
Copying backup to original
Cluster 5 out of range (251658240 > 442378). Setting to EOF.
/
Contains a free cluster (2). Assuming EOF.
FAT32 root dir starts with a bad cluster!
/home/user #
/home/user # fsck -n -v /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Checking we can access the last sector of the filesystem
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
65:01/00
Copying backup to original
Boot sector contents:
System ID "Maemo"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
65536 bytes per cluster
126 reserved sectors
First FAT starts at byte 64512 (sector 126)
2 FATs, 32 bit entries
1769984 bytes per FAT (= 3457 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 3604480 (sector 7040)
442377 data clusters (28991619072 bytes)
32 sectors/track, 64 heads
0 hidden sectors
56631296 sectors total
Cluster 5 out of range (251658240 > 442378). Setting to EOF.
/
Contains a free cluster (2). Assuming EOF.
FAT32 root dir starts with a bad cluster!
/home/user #
| The Following User Says Thank You to michaaa62 For This Useful Post: | ||
| The Following User Says Thank You to michaaa62 For This Useful Post: | ||
| The Following User Says Thank You to peterleinchen For This Useful Post: | ||
mkfs.vfat -n MyDocs /dev/mmcblk0p1