?
Solved

ubuntu linux

Posted on 2009-02-18
12
Medium Priority
?
501 Views
Last Modified: 2013-12-16
i'm trying to mount a fedora ( i think core 6) on  a ubuntu box. it's all sata drives and if i run
sudo cat /proc/partition    i get
8   0   245117376   sda
8   1   237906553   sda1
8   2                   1   sda2
8   5    7295121      sda5
8   16   78125000   sdb
8   17    104391      sdb1
8   18   78011648   sdb2
i'm guessing that the fedora drive i want to mount is sdb, but when i
sudo mount /dev/sdb /home/jeff/olddrive
i get
you must specify a filesystem type
i tried
sudo mount -t ext3 /dev/sdb /home/jeff/olddrive
but then i get
wrong fs type, bad option, bad superblock on /dev/sdb
i could have sworn fedora was ext3, i tried ext2 also, with the same results. any ideas?
0
Comment
Question by:JeffBeall
  • 5
  • 4
  • 3
12 Comments
 
LVL 21

Expert Comment

by:Daniel McAllister
ID: 23674251
You are specifying a DRIVE to your mount command... what is called for is a PARTITION...

My guess is that /dev/sdb1 contains the ROOT of your Fedora install, while /dev/sdb2 contains your "user data" (usually /home).

So, you want your command to look like this:
sudo mount -t ext3 /dev/sdb2 /home/jeff/olddrive

I hope this helps!

Dan
IT4SOHO
0
 
LVL 23

Expert Comment

by:Maciej S
ID: 23674301
Run "fdisk -l /dev/sda" and paste output here.
0
 
LVL 23

Expert Comment

by:Maciej S
ID: 23674332
I meant "fdisk -l /dev/sdb" :) not /dev/sda of course.
0
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
LVL 1

Author Comment

by:JeffBeall
ID: 23674352
i tried
fdisk -l /dev/sdb   ( i'm pretty sure sda is my ubuntu drive, sdb is my fedora drive ) and got this
Device            Boot     Start          End                Blocks           ID        System
/dev/sdb1        *           1                13                 104391         83        linux
/dev/sdb2                     14            9725           78011640         8e       linux lvm

what the heck is file type 8e? when i run
sudo mount /dev/sdb2 /home/jeff/olddrive
i get
mount:  unknown filesystem type  'lvm2_member'

0
 
LVL 23

Accepted Solution

by:
Maciej S earned 1000 total points
ID: 23674415
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 23674765
WOW! that link is exactly what I want to do. As always, I run into a glitch. I went step by step and the first two commands run great, but when I try
sudo vgscan
i get "command not found"
I tried
sudo updatedb, and locate  vgscan, but apparently, vgscan doesn't exist on my ubuntu box? is there something else i should install?
0
 
LVL 21

Expert Comment

by:Daniel McAllister
ID: 23674838
Disk type 8e is a Linux "Logical Volume" -- which means that the partition is purportedly part of a RAID array.

If that RAID array is/was a RAID-1 array, you can simply FORCE the mount command to treat it as an ext3 filesystem. If it is/was part of virtually any other type of RAID array, you'll have to find the other parts (RAID types 0, 3, 5, & 6 -- as well as 10 -- all "stripe" data across multiple disks... if you only have 1 disk, you CANNOT rebuild the data. (If you are MISSING just 1 disk, you CAN rebuild the data -- that's what RAID is for!)

Finally, the command you're missing (vgscan)  is part of the LVM2 package -- it is a "Volume Group Scan" command... but there won't be any additional members of the volume group (you've only brought over the 1 drive, right?), so you don't need that command after all.

I hope this helps...

Dan
IT4SOHO
0
 
LVL 23

Expert Comment

by:Maciej S
ID: 23674870
Are you sure, that you have successfully installed lvm2 package? vgscan comes with it.
Try: dpkg -l | grep lvm
Or just run again: sudo apt-get install lvm2

Just tried that on my testbox with ubuntu - I installed only lvm2 package, and I have vgscan available.
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 23674930
"If that RAID array is/was a RAID-1 array, you can simply FORCE the mount command to treat it as an ext3 filesystem."

yes, it was from a mirrored raid, how do i force mount to treat it as ext3?
0
 
LVL 21

Assisted Solution

by:Daniel McAllister
Daniel McAllister earned 1000 total points
ID: 23675130
Assuming my earlier command:

   sudo mount -t ext3 /dev/sdb2 /home/jeff/olddrive

Failed, I'd force the partition type to be the expected EXT3 (type 83). To do that, use the fdisk program:

# sudo fdisk /dev/sdb  # no partition here!
... stuff...
Command (m for help): t
Partition number (1-2): 2
Hex code (type L to list codes): 83
Command (m for help): w
Command (m for help): q

Then re-try the mount command:
sudo mount -t ext3 /dev/sdb2 /home/jeff/olddrive

That should do ya! -- however, if it still maintains that the filesystem is not ext3, or the superblock is bad, then we'll need to do more (possibly re-create the LV setup)

I hope this helps

Dan
IT4SOHO
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 23675388
all the fdisk stuff completed successfully, then i  printed the partition table and i get
device      boot     start       end         blocks      id     system
/dev/sdb1  *          1            13          104391    83     linux
/dev/sdb2             14        9725       78011640  83    linux

so i thought everything was all good, so i
sudo mount -t ext3 /dev/sdb2 /home/jeff/olddrive    and i get
mount: unknown filesystem type  'lvm2_member'   !!
so i try
sudo apt-get install lvm2
again and get
couldn't find package lvm2
then i feel like a complete idiot because i realize i don't have the network cable plugged in, however i try
sudo apt-get install lvm2
again after plugging in the network cable and ifconfiging to make sure i have an address, i even pinged www.yahoo.com to be sure i'm getting out, and pinged successfully but still get
couldn't find package lvm2
could it be that my apt-get is not pointing to the correct location?
0
 
LVL 1

Author Closing Comment

by:JeffBeall
ID: 31548438
never mind, i rebooted and then was able to apt-get lvm2, then i could mount the volume and get the files i needed. Thanks for the help
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month16 days, 11 hours left to enroll

864 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