chroot

dalek

ADSM.ORG Member
Joined
Apr 10, 2007
Messages
3
Reaction score
0
Points
0
I need to do a restore of a linux from a tsm server. So, I
booted off a centos livecd and mounted all the partitions of the hard
drive into a directory, as in

# ls /machinename/
home usr var

and then do stuff like

# mount /dev/cciss/c0d0p1 /machinename
# mount /dev/VolGroup00/LogVol06 /machinename/home
[...]

Now, from what I understood I have to lie through my teeth and make the machine think that /machinename is / when it goes about restoring (well, if there is a clever way to do tell it to install into that directory, I am all
years). Would chroot do the trick? If so, how? Something like

# chroot /machinename

would suffice? If so, what about dsmc? How would I run it?
 
The restore operation lets you restore to a different directory.

dsmc restore "/*" /machinename/ -subd=y

You'll need the quotes and note the trailing slash on /machinename/.
 
Back
Top