LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2014, 10:18 PM   #1
Sfenerin
LQ Newbie
 
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
UBUNTU --- Grep command help needed


So, I happen to run a dual boot of Windows 7 and Ubuntu (mostly for fixing windows problems) and I noticed windows 10 is coming out and downloaded the WIP version of it. I installed it alright but it fails on boot with error code 0x0000359. You may be thinking "This has nothing to do with linux, GTFO n00b" Well, I am using ubuntu to follow the instructions in this:http://support2.microsoft.com/kb/2008373 and I need to translate the findstr /i /c:"iastor" %windir%/inf/oem*.inf into the linux equivalent. I happened to find that Grep is the replacement for the findstr and I cannot translate it myself.

Basically, I need to be able to find references to iastor in files inside of a directory, additionally, I need to be able to reference a source outside of my linux installation, eg; my windows installation.

In short, translation of the above findstr command into linux terminal, and targetting of my C:/windows/inf directory.

I am mostly n00bs when it comes to linux.

Additionally I run ubuntu 12.04, and windows 10(used to be 7).
 
Old 10-01-2014, 11:00 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

you need to mount your "C:" drive somewhere. Perhaps Ubuntu has already done it automatically. We can probably find out if you post the output of the following "diagnostic" commands.

Code:
df -h
mount
lsscsi
Assuming it has mounted it somewhere, eg at /mnt I think the equivalent command you need is as follows:
Code:
grep -i iastor /mnt/windows/inf/oem*.inf
Note that I'm not a windows user and not familiar with "findstr", so I read the documentation (hint!).

If it is not mounted (or you don't know where) the output of the "diagnostic" commands should provide the information needed to move forward.

HTH,

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grep output help needed pinga123 Linux - Newbie 8 05-23-2011 01:10 PM
Grep help needed ZAMO Linux - General 2 03-03-2009 05:37 PM
Help needed in grep for .tar.gz ZAMO Linux - General 2 07-28-2008 12:45 PM
grep option needed ziox Linux - General 7 01-05-2005 12:02 AM
Grep help needed Dirt Linux - Newbie 4 08-03-2003 06:49 PM


All times are GMT -5. The time now is 04:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration