Solutions of equations governing nonlocal in time processes depend on history of the processes that may be unknown in various situations. In this paper, a method to exclude the unknown history in identification problems making use of non-analyticity of an input is proposed. The method is applied to inverse problems for a diffusion equation containing a generalized fractional derivative. It is assumed that a source f is unknown for time values t in ( 0 , t(0)), vanishes for t is an element of ( t (0) , t(1)) and has nonzero (generated) values for t is an element of ( t (1) , T). Provided that f| (()(t1)(,T)) satisfies certain restrictions, it is proved that product of a kernel of the derivative with an elliptic operator as well as the history of f for t is an element of ( 0 , t(0)) are uniquely recovered by a measurement of a state u in ( t( 0) , T). In case of less restrictions on f the uniqueness of the kernel and the history off is shown. Moreover, in a case when a functional of u in ( t (0) , T) is given the uniqueness of the kernel is proved under unknown history.