Results 1 to 4 of 4
What are some command line commands I can use to figure out from which device I am currently booting from/logged in to/manipulating?
For example, I have the exact same linux ...
- 06-01-2009 #1Just Joined!
- Join Date
- Jan 2009
- Posts
- 17
Where am I booting from?
What are some command line commands I can use to figure out from which device I am currently booting from/logged in to/manipulating?
For example, I have the exact same linux on a CD and HDD. Once I am booted up into a system. It all looks the exact same. How can i tell if I am actually running from the CD?
I am trying to implement the command into a script that is dangerous if run from anything except a CD. Currently it happily runs on a HDD and proceeds to mess everything up.
Thanks
- 06-01-2009 #2
The dmesg command gives the kernel log. Search the line with "Kernel command line:".
Debian GNU/Linux -- You know you want it.
- 06-01-2009 #3Just Joined!
- Join Date
- Jan 2009
- Posts
- 17
- 06-01-2009 #4Just Joined!
- Join Date
- Jan 2009
- Posts
- 17
losetup -a gives me something pretty decent... where the modules are getting loaded from. Might be specific to Slax though.


Reply With Quote
