Posts: 860
Joined: Aug 2008
Reputation:
3
2011-10-02, 01:06
Hi there,
My C: drive is getting low on space. Checked my xbmc userdate folder (under users\username\appdata\xbmc) and its at about 10GB !
I don't want to lose all that, and I'd rather not have to re-generate thumbs all again (yes, my xbmc install is old in the tooth (since march this year)), but it's solid.
My system needs more freespace on C: Is it possible to re-locate the userdata folder to another drive?
cheers.
Posts: 17,859
Joined: Jul 2011
Reputation:
371
2011-10-02, 01:09
(This post was last modified: 2011-10-02, 01:12 by Martijn.)
Yes. The easiest way is to install xbmc on the other drive and run it in portable mode. This way the userdata will be kept on that drive to. After install don't.start xbmc. First edit the shortcut and put ' -p ' in the command line and run it one time. Close it and.now copy all userdata inside the portable-data folder that is located in the install folder.
Posts: 7,256
Joined: Nov 2008
Reputation:
121
If you install XBMC to e.g. D:\XBMC then when you run it normally it will just be using the same data as the installation on C: - so far so good.
Now modify the XBMC shortcut(s) to add -p to the command line. Start XBMC from the shortcut and it will start up with a new default setup. Close XBMC then copy everything in %appdata%\xbmc to D:\XBMC\portable_data. Now when you open XBMC from the "portable mode" shortcut it should look just like the old version. Note that any changes you make will now only be saved in D:\XBMC\portable_data and won't apply to your original installation.
This should be a pretty safe process. At the worst you might accidentally start the new XBMC without the -p and it will simply use your old profile data.
JR
Posts: 485
Joined: Jan 2009
Reputation:
8
Or you could just move the XBMC folder from you're appdata folder to another drive then replace it with a symbolic link which is a kind of shortcut, this would mean that as far as xbmc was concerned the userdata folder would still be in the same location but in actual fact it would be on another drive e.g.
move c:\users\%USERNAME%\appdata\Roaming\XBMC to say d:\XBMC
then create a symbolic link:
mklink /d c:\users\%USERNAME%\appdata\roaming\xbmc d:\xbmc
and your C Drive space issues will be solved without any alterations to xbmc.
Posts: 31,445
Joined: Jan 2011
You can also use pathsubstitution on the pre-Eden nightlies for things like the Thumbnails folder, which is probably the biggest offender in taking up space. You can even do this to a network share (or just do it to another local drive). For example:
http://forum.xbmc.org/showpost.php?p=837103&postcount=2
Posts: 45
Joined: Dec 2008
Reputation:
0
Arcko
Junior Member
Posts: 45
Good instruction, thanks everyone for sharing this.