Hi there,
I have some troubles while resizing my vfat partition with fdisk. First it
was strange because in fdisk the partitions were fine as following:
-----------------
*debian-lap:~# fdisk -l /dev/sdb
Disk /dev/sdb: 4022 MB, 4022337536 bytes
29 heads, 28 sectors/track, 9675 cylinders
Units = cylinders of 812 * 512 = 415744 bytes
Disk identifier: 0x04030201
Device Boot Start End Blocks Id System
/dev/sdb1 1 1928 782754 b W95 FAT32
/dev/sdb2 1929 9675 3145282 b W95 FAT32
debian-lap:~#
debian-lap:~# fdisk -l /dev/sdb1
Disk /dev/sdb1: 801 MB, 801540096 bytes
29 heads, 28 sectors/track, 1927 cylinders
Units = cylinders of 812 * 512 = 415744 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
debian-lap:~#
debian-lap:~# fdisk -l /dev/sdb2
Disk /dev/sdb2: 3220 MB, 3220768768 bytes
29 heads, 28 sectors/track, 7747 cylinders
Units = cylinders of 812 * 512 = 415744 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
debian-lap:~# *
-----------------
But the system was recognizing a different size like:
-----------------
*debian-lap:~# df -h /dev/sdb1 /dev/sdb2
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 3.8G 395M 3.4G 11% /media/disk
/dev/sdb2 3.0G 4.0K 3.0G 1% /mnt/flash
debian-lap:~# *
-----------------
After I tried to fix it using the gparted (but my goal is to do that using
fdisk tool) and now the number of cylinders seems decreased from 9675 to
489, look:
-----------------
*debian-lap:~# fdisk -l /dev/sdb
Disk /dev/sdb: 4022 MB, 4022337536 bytes
255 heads, 63 sectors/track, 489 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x04030201
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 489 3927861 b W95 FAT32
debian-lap:~# *
-----------------
Any idea ?
Thanks.
--
Rodrigo Hashimoto
"...Ser feliz não é ter uma vida perfeita, sem dor e sem lágrimas; mas saber
usar as lágrimas para regar a esperança e a alegria de viver..."
"...Ser feliz é ser como a raiz da árvore que passa a vida toda escondida
para poder sustenta-la. Ser feliz é não deixar que a tristeza apague o seu
sorriso; é não permitir que o rancor elimine o perdão; que as decepções
eliminem a confiança; que o fracasso vença o desejo da vitória; que os erros
vençam os acertos; que a ingratidão te faça parar de ajudar; que a velhice
elimine em você o animo da juventude; que a mentira sufoque a verdade..."
"...Ser feliz é não precisar ficar se justificando; pois os amigos não
precisam de explicações e os inimigos não acreditam nelas..."
"... Ser feliz é amar a Deus e ao próximo..." - (Prof. Felipe Aquino)