Solved

Linux : how to determine windows partition with sh

Posted on 2011-09-23
2
416 Views
Last Modified: 2013-12-16
My bash programming skills are non existant but this is how I think it should go:
Get list of physical drives with fdisk -l
Read first few bytes to determine which is any windows partition (but I don't want to target mbr or the recovery partition)

Any thoughts on how to do is, or if you are exceptionally kind, perhaps a bash script please:)
0
Comment
Question by:themrrobert
2 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
ID: 36591222
fdisk -l | grep NTFS | awk '{print $1}'

Open in new window

0
 
LVL 13

Author Closing Comment

by:themrrobert
ID: 36594180
thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question