I am trying to repartition my harddisk, to have two partitions:
- the first ( HDD3 ) - as VFAT, about 2 GB and
- the second ( HDD4 ?) - as EXT2 or EXT3
I do the following as root:
- umount /ext/hda3
- fdisk /ext/hda3
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101349\"][{POST_SNAPBACK}][/a][/div]
The names you're using there look odd. On my 3100 device /dev/hda3 is mounted at /hdd3 -- I have no /ext directory. Maybe that's a cacko thing, but the fdisk line is very fishy. fdisk should be given a device node to work on.
/dev/hda3 is the device name for the third partition on the first (IDE) device. You would normally run fdisk by pointing it at the whole disc (not just one partition):
fdisk /dev/hda
I wouldn't proceed if the fdisk banner didn't look right (a message about the cylinders on the disk being set to 7936, for instance), nor if "p" in fdisk didn't show the partitions I expected. On a stock 3100 there should be three partitions. The first two are very small (about 10Mb each) and contain disk images (I think the ROM can use these to recover a Z that would otherwise be bricked, so best leave them alone!). The third one contains all the user data.
Once "p" shows the three partitions you expect you could use "d" to delete the third one, and then "n" to add two new partitions, which would be /dev/hda3 and /dev/hda4.
You didn't ask this, but you might like to know that it's possible to resize /dev/hda3 dynamically (that is, without losing the files that are on it). I have done this to my own 3100 using GNU Parted (I had to compile it first -- drop me a line if you want the binary).