Z4Root will not work with 2.2. Use The SuperOneClick found here:
http://forum.xda-developers.com/showthread.php?t=803682 When you use this program select the rageagainstthecage option. If you plan on flashing a custom ROM I would suggest using Odin to flash back to stock 2.1 then root... there can be some problems with clockworkmod recovery when coming from 2.2.
Ok, I finally got Super One Click to find my phone (it was a driver issue), but it still won't root it properly, it says that there is no space available (there's plenty, Sammy just restored it to default before returning it). Here's what happens, could you help me out?
SuperOneClick v1.7.0.0
Killing ADB Server...
OK
Starting ADB Server...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
OK
Waiting for device...
OK
Pushing rageagainstthecage...
56 KB/s (5392 bytes in 0.094s)
OK
chmod rageagainstthecage...
OK
Running rageagainstthecage...
ROOTED
Pushing busybox...
1647 KB/s (1062992 bytes in 0.630s)
OK
chmod busybox...
OK
Getting mount path...
/dev/block/stl9
OK
Reading OS Version properties...
Version: 2.2
OK
Remounting system with read-write access...
OK
Pushing su-v2...
failed to copy 'C:\Users\Frank\Downloads\SuperOneClick\su-v2' to '/system/bin/su': No space left on device
OK
chmod su...
Unable to chmod /system/bin/su: No such file or directory
OK
Creating /system/xbin...
mkdir failed for /system/xbin, File exists
OK
Copying busybox (/system/xbin/)...
OK
chmod busybox (/system/xbin/)...
OK
Installing busybox (/system/xbin/)...
busybox: /system/xbin/script: No space left on device
busybox: /system/xbin/scriptreplay: No space left on device
busybox: /system/xbin/sed: No space left on device
busybox: /system/xbin/sendmail: No space left on device
busybox: /system/xbin/seq: No space left on device
OK
Pushing Superuser.apk...
failed to copy 'C:\Users\Frank\Downloads\SuperOneClick\Superuser.apk' to '/system/app/Superuser.apk': No space left on device
OK
Pushing Superuser.apk... (/data/app)
1585 KB/s (196521 bytes in 0.121s)
OK
Remounting system with read-only access...
OK
Running a SU test...
Test failed!
FAILED
ro.wifi.channels=
ro.product.cpu.abi=armeabi-v7a
ro.product.model=SGH-T959
ro.build.tags=release-keys
ro.build.version.release=2.2
ro.build.description=SGH-T959-user 2.2 FROYO UVKA6 release-keys
ro.product.brand=Samsung
ro.product.device=SGH-T959
ro.build.version.incremental=UVKA6
ro.build.type=user
ro.build.date.utc=1295355203
ro.board.platform=s5pc110
ro.product.name=SGH-T959
ro.product.board=SGH-T959
ro.build.user=jaeyoon.yoon
ro.build.display.id=FROYO.UVKA6
ro.build.version.codename=REL
ro.build.product=SGH-T959
ro.build.id=FROYO
ro.build.version.sdk=8
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=Samsung
ro.product.locale.region=US
ro.build.date=2011. 01. 18. (???) 21:53:23 KST
ro.product.locale.language=en
ro.build.host=SEP-05
ro.build.fingerprint=Samsung/SGH-T959/SGH-T95