Solved

Linux : how to determine windows partition with sh

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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 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.:
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.

813 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

17 Experts available now in Live!

Get 1:1 Help Now