LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-23-2006, 08:41 PM   #1
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
mount partition from copied block device


Sorry, couldn't think of a better title :/

I'm doing some work porting a custom distro over to a new init system and as such I'm constantly rebooting the machine, seeing what happens this time then rebooting into a live CD to make changes, rebuild the initial userspace blah blah. In a moment of genious I made an image of the disk using cat, scp'd that to my main machine and figured I could do my testing in qemu and mount it as a loopback device to make my changes.

The problem is my lack of forethought, I used this command to make my image:
Code:
cat /dev/hdb > /stmp/clinux.loop
hdb had two partitions on it, is there a way I can specify which partition I'm trying to mount or did I hit another wall? Obviously clinux.loop1 & clinux.loop2 won't work Could I use the offset option to mount? If so, where would I find the values to use?

Any ideas would be very much appreciated
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount: /dev/sda4 is not a valid block device ADJ Linux - Hardware 4 08-01-2006 05:53 AM
mount USB2: no valid block device crackinggear Linux - Hardware 4 01-03-2006 10:32 AM
/dev/cdrom is not a valid block device cannot mount eatmars Linux - Hardware 1 10-02-2005 08:50 AM
mount: /dev/cdrom1 is not a valid block device ludwig W Linux - Newbie 1 04-20-2003 06:47 AM
Can't mount cd-rom drive (not a valid block device) patrickdepingui Linux - Hardware 3 04-14-2003 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration