Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar

Command Line


  • Please log in to reply
23 replies to this topic

#1 blueicetwice

blueicetwice

  •  Avatar image
  • Members
  • 79 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:St Paul & Mpls - Maoisota
  • Local time:04:55 AM

Posted 26 January 2024 - 08:55 AM

Greeting Bleepers:

 

Is there a command line, in the terminal, which would show

where the OSs are located on a HDD.  I operate with three

HDDs and four Linux OSs and Mr Microgates.

 

I can use Disk Usage Analyer, however, it is a extended process

and a pain in the node.

 

Thank you for any help.


Edited by hamluis, 26 January 2024 - 11:18 AM.
Fixed typos - Hamluis.


BC AdBot (Login to Remove)

 


#2 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 35,304 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:10:55 AM

Posted 26 January 2024 - 12:49 PM

sudo parted -l

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#3 blueicetwice

blueicetwice
  • Topic Starter

  •  Avatar image
  • Members
  • 79 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:St Paul & Mpls - Maoisota
  • Local time:04:55 AM

Posted 26 January 2024 - 01:17 PM

The BIOS bootloader does indicate which HDD and partition the OS is on,

but not for Manjaro.

 

The Disk Usage Analyzer, gives different values.  I have never seen this

question axe before in a forum.  But then I have to examine the files, in order

to determine which OS it is, by volume.



#4 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 35,304 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:10:55 AM

Posted 26 January 2024 - 01:26 PM

I told

sudo parted -l

That will list all your partitions for all your drives

There is also

efibootmgr

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#5 blueicetwice

blueicetwice
  • Topic Starter

  •  Avatar image
  • Members
  • 79 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:St Paul & Mpls - Maoisota
  • Local time:04:55 AM

Posted 26 January 2024 - 01:30 PM

Tanks, Dan, it did not work. 

 

My rig is not a UEFI, butt a AARP.


Edited by blueicetwice, 26 January 2024 - 01:46 PM.


#6 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 35,304 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:10:55 AM

Posted 26 January 2024 - 02:46 PM

The command

sudo parted -l

should still work.

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#7 blueicetwice

blueicetwice
  • Topic Starter

  •  Avatar image
  • Members
  • 79 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:St Paul & Mpls - Maoisota
  • Local time:04:55 AM

Posted 26 January 2024 - 06:48 PM

The command

sudo parted -l

should still work.

Yes, it shows the HDDs, but there is no information regarding where

the OSs are and on which partitions.



#8 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 35,304 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:10:55 AM

Posted 26 January 2024 - 06:51 PM

It's by partition

NTFS windows
Fat32 windows
MSFTDATA windows
Ext4 linux
Ext3 linux
Ext2 linux
CIFS windows network
NFS unix/linux network file system

 

[cryptodan@alphacentauri discord-canary]$ sudo parted -l
[sudo] password for cryptodan: 
 
The below is my linux Drive 
Model: ATA Samsung SSD 840 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 
 
Number  Start   End     Size    File system     Name     Flags
 1      1049kB  525MB   524MB   fat32           bootesp  boot, esp
 2      525MB   462GB   462GB   ext4            arch
 3      462GB   924GB   462GB   ext4            misc
 4      924GB   1000GB  76.3GB  linux-swap(v1)  swap     swap
 
The below is my /home drive/partition
Model: ATA Samsung SSD 840 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 
 
Number  Start   End     Size    File system  Name  Flags
 1      1049kB  1000GB  1000GB  ext4         home
 
This is my shared drive so I can transfer it between Windows and Linux
Model: ATA Samsung SSD 840 (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 
 
Number  Start   End     Size    File system  Name                          Flags
 1      17.4kB  16.8MB  16.8MB               Microsoft reserved partition  msftres
 2      16.8MB  1000GB  1000GB  ntfs         Basic data partition          msftdata

Edited by cryptodan, 26 January 2024 - 11:32 PM.

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#9 Dominique1

Dominique1

    Bleepin Funny


  •  Avatar image
  • Members
  • 1,036 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:05:55 AM

Posted 27 January 2024 - 04:14 AM

If cryptodan's posts don't answer your question, could you clarify :

 

show where the OSs are located on a HDD.

 

Because for Linux, there are more than one directory, if this is what you want to know.



#10 blueicetwice

blueicetwice
  • Topic Starter

  •  Avatar image
  • Members
  • 79 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:St Paul & Mpls - Maoisota
  • Local time:04:55 AM

Posted 27 January 2024 - 09:08 AM

If cryptodan's posts don't answer your question, could you clarify :

 

show where the OSs are located on a HDD.

 

Because for Linux, there are more than one directory, if this is what you want to know.

Dan, posts show the file type, but not the particular Linux OSs.

 

I am trying to locate Mint 20, Mint 21, Manjaro 21 and Solus 39.  It would

also be helful, if it also contained the partition, as well.  Mr Softie, is not an

issue, as it is isolated on its own HDD.

 

I doubt there is a command for this, as I have spent considerable time cruising the Internet.



#11 blueicetwice

blueicetwice
  • Topic Starter

  •  Avatar image
  • Members
  • 79 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:St Paul & Mpls - Maoisota
  • Local time:04:55 AM

Posted 27 January 2024 - 11:23 AM

Through the use of "Disk Usage Analyzer", I was able to find the

location of three of the four Linux OSs; missing only Mint 20.1, which

I wish to replace with Fedora.

 

It is a pain to use DUA and time-consuming, but better than nothing.

It requires opening a lot of files or examining the colored circle looking

at the file system.

 

I should add, dat the best info is found on the bootloader, which I will

use to confirm the result from Disk Analyzer.


Edited by blueicetwice, 27 January 2024 - 12:20 PM.


#12 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 35,304 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:10:55 AM

Posted 27 January 2024 - 12:19 PM

You could open up the /etc directory and look at lsb-release for them if the file exists its ubuntu/debian based, if ppacman.conf exists irs manjaro, the last one would be solus.

You could always run

sudo update-grub

Post the output here.

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#13 blueicetwice

blueicetwice
  • Topic Starter

  •  Avatar image
  • Members
  • 79 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:St Paul & Mpls - Maoisota
  • Local time:04:55 AM

Posted 27 January 2024 - 09:14 PM

SOLVED   Thanks guys, I found the answer with Foxclone.

 

When one clones or does a backup, the OS(s) are shown !!

It gives the partition location, file type and the targeted OS.

 

What I do not understand, is why the HDD designations are always

changing; what was SDA becomes SDB, etc. I do not bic. 



#14 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 35,304 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:10:55 AM

Posted 27 January 2024 - 09:16 PM

Because it depends on which one is booted. If you're distrohopping I'd suggest using a VM like vmware or virtualbox and I gave you a solution without installing another bit of software.

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#15 blueicetwice

blueicetwice
  • Topic Starter

  •  Avatar image
  • Members
  • 79 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:St Paul & Mpls - Maoisota
  • Local time:04:55 AM

Posted 30 January 2024 - 03:29 PM

Because it depends on which one is booted. If you're distrohopping I'd suggest using a VM like vmware or virtualbox and I gave you a solution without installing another bit of software.

Oh, boy.  Well, Dan, then I will assign the OSs to their volume. Dat does not change, without

my knowledge.  I failed to install VB because it was too difficult.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users