Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Background:

  • 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

Question:

  • 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
add comment

3 Answers

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
1  
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
add comment

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 http://alok.fossguru.in/content/rescuing-system-chroot

share|improve this answer
add comment

Try:

service --status-all

or:

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
add comment

Your Answer

 
discard

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.