Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-09-2006, 09:10 PM   #1
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
mounting from stdin

i have this small, tar.gz'ed hard drive image and i want to mount it without unpacking the image file to my disk drive. i was thinking i could redirect the output of tar to standard output and then just pipe it to mount like this: "tar -xvzOf test.img.tar.gz|mount /mnt/hd" but it isn't working. i thought most linux programs, like mount or dd, looked to stdin if no input was specified. is there any way to make mount mount an image from stdin?
Old 03-10-2006, 01:55 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
The stream you're sending to stdin gets sent and then stops so it's not there anymore. So yes, you can send the output of one command to the input of another, but you need more than that to mount it as a file system.

Unfortunately, telling you that doesn't get the job done - I don't think you can mount a tar.gz file.
Old 03-10-2006, 02:33 PM   #3
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
thanks anyway, i guess i can always make use of my ramdisk.

Last edited by slinky2004; 03-10-2006 at 02:35 PM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unbuffered stdin Mike Davies Linux - Software 1 03-03-2006 12:13 AM
stdout stdin Furlinastis Linux - Newbie 3 08-11-2005 11:00 PM
Statistics from stdin? edeca Linux - Software 0 05-23-2005 10:03 AM
stdin and NUL. How ? Mike Davies Linux - Software 5 10-28-2004 07:06 AM
unbuffered stdin mvt Programming 7 05-17-2004 09:40 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:01 PM.

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