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.

I was not able to determine by searching whether this question has already been asked and answered. My search always turned up some other 32 versus 64 bit question.

I want to know if it is possible to determine whether an inactive Ubuntu install, that is, on a drive you did not boot from, is the 32-bit or 64-bit version. I cannot use uname -m because the Ubuntu I want to know about is not the Ubuntu which is running.

For example, if Ubuntu is installed on the hard drive of a desktop PC and the PC is booted from a Live CD/USB version of Ubuntu is it possible to tell what is installed on the hard drive just by looking at the file system of the Ubuntu on the hard drive?

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

Mount the partition where Ubuntu is installed on and run this command:

file /media/ubuntu-disk/sbin/init

Where /media/ubuntu-disk is the path to where Ubuntu is mounted...

share|improve this answer
    
Thanks! Makes sense (once I'm told what to do). –  irrational John Apr 19 '12 at 19:42
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.