LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-06-2010, 08:31 AM   #1
lolrabbits
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Rep: Reputation: 0
Mounting ext4 drives on Ubuntu 9.10


Hi all,

Wonder if anyone can help me out here.

I need to examine a hard drive that came from another system running Ubunut Server (not sure what version). I know the drive has LVM on it, so as far as I understand that means the drive will be treated as EXT4 for mounting. I can't boot from the actual disk, but I have used a IDE to USB connector to make a binary copy of the drive, which I've mounted as a loopback device. However, when I try to mount the loopback device properly, I get this:

root@~je:/# mount -o ro -t ext4 /dev/loop0 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

I tried using -t ext4dev too, but that just gives an unknown filesystem error.

The file I've got mounting in /dev/loop0 is a .dd file, created by imaging the drive using dcfldd on the server drive while it was mounted (as /dev/sdb).

System I'm working on is running Ubuntu 9.10.

All I need is to be able to mount the server drive so I can traverse the file directories, there's a few things I need to check on it. If needed I can dispense with the whole loopback setup and just directly connect the server hard drive again using the IDE to USB cable, but I'd rather not do that; it's imperative that the drive doesn't get altered, or at least as little as possible.

Cheers in advance.
 
Old 03-06-2010, 08:42 AM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
Quote:
I know the drive has LVM on it
http://www.linuxquestions.org/questi...4/#post2407972
Quote:
so as far as I understand that means the drive will be treated as EXT4 for mounting
why? may be any fs over lvm.

Last edited by troop; 03-06-2010 at 08:44 AM.
 
Old 03-06-2010, 08:56 AM   #3
lolrabbits
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by troop View Post
why? may be any fs over lvm.
I could easily be wrong Going off what I was told by someone else who had looked at the drive a while ago.
 
Old 03-06-2010, 08:59 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
There is no relationship between LVM and ext4. The volume may be formatted as ext4. LVM can not be mounted as a regular partition.

I found a couple of web pages that will provide some insight on how to mount an LVM partition from an image.
http://blog.ncsa.uiuc.edu/aashish/20...vm-disk-image/
http://www.thegibson.org/blog/archives/467

Last edited by michaelk; 03-06-2010 at 09:01 AM.
 
Old 03-06-2010, 09:16 AM   #5
lolrabbits
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
There is no relationship between LVM and ext4. The volume may be formatted as ext4. LVM can not be mounted as a regular partition.

I found a couple of web pages that will provide some insight on how to mount an LVM partition from an image.
http://blog.ncsa.uiuc.edu/aashish/20...vm-disk-image/
http://www.thegibson.org/blog/archives/467


The first link looks excellent, will give that a go. Thanks all!
 
Old 03-06-2010, 11:22 AM   #6
lolrabbits
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Got it working. Simple problem, the offset I was using the for the loopback mount was screwed up, rookie error . Thanks again.
 
  


Reply



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
mounting ntfs drives in ubuntu 6.10 lplasc Linux - Newbie 3 04-24-2007 02:25 AM
CD and DVD drives not mounting with ubuntu SeanWcisel Linux - General 1 04-04-2007 03:19 PM
Mounting Hard Drives In Ubuntu MSBeckman Linux - Hardware 8 03-13-2005 07:41 PM
Help Mounting Hard Drives on Ubuntu! MSBeckman Linux - Newbie 3 03-13-2005 05:37 PM
mounting sata drives in ubuntu linux nathj72 Linux - Hardware 0 01-16-2005 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:43 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
Open Source Consulting | Domain Registration