Link to home
Start Free TrialLog in
Avatar of RayRider
RayRider

asked on

Re-installing Ubuntu Server with Samba Question

I have a Ubuntu 12.04 server that has gotten totally out of sync with the kernal upgrades. So far, none of the apt-get package commands will clean up the system. I have decided to blow the system away and start with a fresh install.

My main question has to do with the Samba server. If I keep the RAID intact, and therefore my Samba data stores, /srv/samba/share/xxx, when I reinstall the O/S and Samba, will Samba be able to see my shared volumes as before?
Avatar of gheist
gheist
Flag of Belgium image

You can upgrade system in place to a supported kernel:
https://wiki.ubuntu.com/Kernel/LTSEnablementStack
No, it is not so easy with samba shares, you need databases from /var/lib/samba too. I'd start installing a new server instead of messing with existing one.
Avatar of RayRider
RayRider

ASKER

Gheist:

Tell me this: If I do a clean install of  server version 14.01.1 LTS, and do NOT repartition the RAID, therefore keeping my Samba stores, can I simply point the smb.conf share stanzas to the pre-install share directories, and keep my old share points?

I am forced to do a clean install. This problem started out with /boot filling up. I am unable to say what I did wrong in freeing up space. But, none of any package updates would work. I followed every suggestion in the blogs, etc., to clean up. But, every package upgrade would complain about dependencies. In other words, the upgrades were looking for kernel level xxx, but I had yyy. I finally, manually deleted the series of files in /boot related to old kernels, i.e., config*, initrd* and system*. However the upgrade to 14 LTS seemed to be flowing along OK until near the end, but failed and left the box in an unusual state where many things no longer work. I am forced to do a clean install, but would like to keep my Samba shares if possible.
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Gheist:

'apt-get autoremove' failed to clean out any old kernels. After looking for a solution for so long, it became apparent to me that I didn't have the expertise to "fix this beast", and decided that a clean install was my best move. It would be nice to keep the old Samba shares. But, I probably have the data in other places, but will be a pain to find it all, and restore after the rebuild.

This server has been such a stable and reliable machine, not requiring me to spend much time with it. Therefore, I lose my expertise after so long. Actually, it will be fun to go through a complete rebuild.

Thanks for your help. I will award the points to close this out.
Thanks again!!
you can boot off a livecd and copy shares .