I am using OpenSUSE 13.1 with XFCE DE. The problem is whenever I try to restart the system freezes either after BIOS or while loading the grub2 saying “Loading Initial ramdisk”. I have tried re installing the OS but it’s no use.
It does sound like memory issue, it could be RAM, the file system or the hard disk it self.
To test your RAM install memtest86+ and run a diagnostic
sudo zypper in memtest86+
memtest will add a new entry to grub, to test ram while in grub go to memtest86+
To test the filesystem run fschk.
If it’s a herddrive problem fsck is a fix id there are a few bad sectors, most hardware manufacturers offer dos tools for hdd diagnostics and repair (most of the time you can’t fix bad sectors).
depending on how you use fsck it might need exclusive access to your partition/hdd you might need to run it off a rescue/live CD/usb
Just to make sure it’s not some setting or an application eating up your resources why not create a new user in yast and use that account for a while, if the problem persists it’s probably your hard drive run fschk to try and find the bug it could be a corrupted file system or a bad sector in the disk the first is fixable the second not so much.
Most likely a hardware problem some where. A soft restart may leave some device/memory/cpu/motherboard/etc in a unknown state since it never actually powers down and the BIOS may not go trough the same setup functions as a power on start. Is the hardware new/old/or what? If newer have you checked on BIOS updates??
get a live or a recovery OS and run a file system check, **fsck **can not be run on a file system that is in use that’s why you need to boot from a usb or dvd and check the file system, another older but useful tool for checking the hard drive’s health is **badblocks.
**To properly run these tools you’d need exclusive acess to the hard drive’s partitions and it’s file system.
not knowing your hard drive’'s layout this is as much help you can be given, read badblocks and fsck’s manual’s