Solved

Linux : how to determine windows partition with sh

Posted on 2011-09-23
2
412 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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now