i have a USB Stick, and this stick has some problems, how to set up for it proper geometry
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <[email protected]>
http://www.cgsecurity.org
Disk /dev/sda - 4009 MB / 3824 MiB - CHS 1018 124 62
Warning: the current number of heads per cylinder is 124
but the correct value may be 255.
You can use the Geometry menu to change this value.
It's something to try if
- some partitions are not found by TestDisk
- or the partition table can not be written because partitions overlaps.
$ sudo fdisk
Disk /dev/sda: 3.8 GiB, 4009754624 bytes, 7831552 sectors
Disk model: USB Flash Disk
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2be3e15c
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 7831551 7829504 3.8G b W95 FAT32
after http://damnsmalllinux.org/wiki/setting_the_proper_geometry_on_your_usb_pendrive.html is manual about it, however i do not feel like i have all important information from step 2
equation
total_sectors / 32 / number_of_heads = no_of_cylinders.
it is written (fdisk) no_of_sectors = 7831552 it is said (testdisk) that no_of_heads suppose to be= 255
and according to equation above it suppose to be 7831552 / 32 = 244736 244736 / 255 = is 959.79401.... which is not round
other counting is round, but not proper, because it suppose to be 255... 244736 / 256 = 956
i am missing something simple, am i?