I suggest you search on Google on how to safely root your device. You should choose the one that is appropriate for your device (it should have the same model number).
Also, install a Custom Recovery (CWM or TWRP) and please do a NANDROID Backup first, so you can easily restore your phone if something bad happens ...
UPDATE:
Disclaimer: I am not responsible for rooting your Android device in any way. Before performing any of these steps make sure you back up your Android device completely ...
Please proceed at your own risk!
There are a number of ways on how to root a specific device, so you should know your Model Number, because they vary on the Model Number.
Model Number
To find your model number, (I'm assuming that your device is Android 4.4-kitkat):
- Open Settings, scroll down and tap on About Phone.
- The Model Number should be there.
Custom Recovery
Your phone must be rooted, in order to install a Custom Recovery.
To install a Custom Recovery:
- Enable
USB Debugging
on your phone:
- Open Settings, scroll down, and tap on About Phone.
- Tap on the Build Number 7 times.
- Go back to the Main Settings Screen, and tap on Developer Options.
- Scroll down, and find USB Debugging. Enable it.
- Download the recovery you want for your device (CWM or TWRP)
- The recovery that you will download should be compatible with your device.
- Download and install Odin on your computer, as well as USB Drivers.
- Extract the downloaded recovery file.
- On your Android device, go to Download Mode.
- Connect your device to your computer, and make sure it detects your device.
- On Odin, tap
AP
and locate the extracted recovery file.
- Click
Start
.
Just wait a minute or less, and the Custom Recovery should be installed on your device.
NOTE: To check if the Custom Recovery is successfully installed, go to Recovery Mode:
- Power off your phone.
- Hold Volume Up, Home, and Power Buttons at the same time.
- Release your fingers on the buttons when the Manufacturer Logo (the first screen that appears during boot, usually Samsung ...) appears.
NANDROID Backup
To perform a nandroid Backup of your phone, you must have a Custom Recovery installed on your phone (which you have done earlier).
- Boot into Recovery Mode.
- Go to Backup and Restore for CWM, or Backup for TWRP.
- Follow the instructions on how to make a NANDROID Backup of your phone.
- Usually, you only need to backup
System
, Data
, and Boot
. But, it's up to you if you want to backup all partitions, as long as you have enough Storage Space.