Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


  • want to move from 32-bit to 64-bit environment (taking advantage of >4GB RAM)
  • bought new HDD and installed new OS
  • mounted old HDD as a secondary device


  • How can I determine all services I had installed and running on the old system?
share|improve this question
this is related to my previous question about packages – warren May 9 '13 at 15:56
the question shown as a duplicate (How do you get a list of all starting services?) is interesting - but not at all a duplicate. That question does not deal with how to find what were the services running before a new install (as this question clearly indicates). That question is about what services are running. – warren May 9 '13 at 17:52
up vote 1 down vote accepted

You can use the chroot command on your partition on which you had old OS. Once you're done with chroot, do anything you want like you are using your old OS again. you can see list of installed packages or you can see the content of /etc/init.d to see list of services.

To do chroot you can can see up to 6th step in

share|improve this answer


service --status-all


ls /etc/init.d
share|improve this answer
the service command won't work - that will show me what is running now ... not what was running :) – warren May 9 '13 at 18:50

you can list all the service with sudo initctl list | sort. Give your password after typing the command.

hope that helps.

share|improve this answer
if I had not already installed the new OS, yes - but without chroot, I don't think this would work – warren May 13 '13 at 15:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.