LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-02-2012, 08:16 PM   #1
Paraply
Member
 
Registered: Jun 2007
Posts: 53

Rep: Reputation: 15
How do I determine current partition


I have several linux root partitions - copied from my default root partition. My default root now refuses to boot (due to a stupid error of mine). However, another root partition will boot, but I have not been able to determine which. blkid and others list partitions by device letters and UUID, but I need to be sure which partition I am working on/from. Funny thing is fstab is referencing my default root partition, but the one being booted is a copy. Is there a (CLI) way to find the UUID (preferable) or the /dev/sd? currently active?
 
Old 10-02-2012, 08:35 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,619
Blog Entries: 2

Rep: Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076
Code:
mount
shows all currently mounted partitions and their mountpoints. The one mounted to / is obviously the current running system.
 
1 members found this post helpful.
Old 10-04-2012, 10:59 AM   #3
Paraply
Member
 
Registered: Jun 2007
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TobiSGD View Post
Code:
mount
Of course...! Thanks a lot.
 
  


Reply

Tags
partition


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] C++ determine if current user is member of a specific group - Mikey0727 Programming 3 01-13-2011 11:21 AM
using stat to determine last file access and comparing to current date in IF statemnt danpaluska Linux - Newbie 2 02-16-2010 12:52 PM
Determine current MySQL privileges ? elfoozo Linux - Server 3 07-02-2009 05:43 AM
how to determine the current sub routine in a perl code ? kshkid Programming 5 03-19-2007 07:47 AM
How do I determine my current kernel? Brnzwngs Debian 5 08-17-2005 03:48 PM


All times are GMT -5. The time now is 04:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration