Re: Resizing vfat partition with fdisk ??

2009-01-31 Thread Rodrigo Hashimoto
On Fri, Jan 30, 2009 at 7:30 PM, Adrian Levi adrian.l...@gmail.com wrote:

 2009/1/31 Rodrigo Hashimoto rodh...@gmail.com:
  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:

 Is there data on the disc that you are intending on keeping or are you
 just wanting to end up with 2 partitions of particular sizes?


Yes, there's data but if I loose it no problem, I'm using my usb flash drive
to test this partition resize.



  But the system was recognizing a different size like:
 
  -
  debian-lap:~# df -h /dev/sdb1 /dev/sdb2
  FilesystemSize  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 you finished fdisk, did fdisk tell you that it was using the new
 or old partition table and to reboot?
 If this is a USB disc then instead of rebooting you can unplug and replug.


Yes, it's a USB disc and I tried to unplug and replug.


 Adrian

 --
 24x7x365 != 24x7x52 Stupid or bad maths?
 erno hm. I've lost a machine.. literally _lost_. it responds to
 ping, it works completely, I just can't figure out where in my
 apartment it is.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org



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)


Re: Resizing vfat partition with fdisk ??

2009-01-31 Thread Adrian Levi
2009/1/31 Rodrigo Hashimoto rodh...@gmail.com:

 Yes, there's data but if I loose it no problem, I'm using my usb flash drive
 to test this partition resize.

Like Ron said, gparted is the correct tool to use if there is dada you
want to keep.
I'd suggest that at least some of your data is toast from playing with fdisk.
If you want to delete and recreate the partitions (then filesystems
later) using fdisk it will work.

I think what you are doing isn't working because possibly some inodes
exist beyond the new partition boundary and thengs are getting
confused.

Adrian

-- 
24x7x365 != 24x7x52 Stupid or bad maths?
erno hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Resizing vfat partition with fdisk ??

2009-01-30 Thread Rodrigo Hashimoto
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   11928  782754b  W95 FAT32
/dev/sdb219299675 3145282b  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: 0x

 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: 0x

 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
FilesystemSize  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 3927861b  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)


Re: Resizing vfat partition with fdisk ??

2009-01-30 Thread Adrian Levi
2009/1/31 Rodrigo Hashimoto rodh...@gmail.com:
 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:

Is there data on the disc that you are intending on keeping or are you
just wanting to end up with 2 partitions of particular sizes?

 But the system was recognizing a different size like:

 -
 debian-lap:~# df -h /dev/sdb1 /dev/sdb2
 FilesystemSize  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 you finished fdisk, did fdisk tell you that it was using the new
or old partition table and to reboot?
If this is a USB disc then instead of rebooting you can unplug and replug.

Adrian

-- 
24x7x365 != 24x7x52 Stupid or bad maths?
erno hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Resizing vfat partition with fdisk ??

2009-01-30 Thread Ron Johnson

On 01/30/2009 01:39 PM, Rodrigo Hashimoto wrote:

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:




gparted is the correct tool for resizing partitions.

--
Ron Johnson, Jr.
Jefferson LA  USA

I am not surprised, for we live long and are celebrated poopers.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org