Solved

Linux : how to determine windows partition with sh

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

932 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

13 Experts available now in Live!

Get 1:1 Help Now