We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

ubuntu linux

JeffBeall
JeffBeall asked
on
Medium Priority
553 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?
Comment
Watch Question

Daniel McAllisterPresident, IT4SOHO, LLC
CERTIFIED EXPERT

Commented:
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
Maciej Ssysadmin
CERTIFIED EXPERT

Commented:
Run "fdisk -l /dev/sda" and paste output here.
Maciej Ssysadmin
CERTIFIED EXPERT

Commented:
I meant "fdisk -l /dev/sdb" :) not /dev/sda of course.

Author

Commented:
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'

sysadmin
CERTIFIED EXPERT
Commented:

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
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?
Daniel McAllisterPresident, IT4SOHO, LLC
CERTIFIED EXPERT

Commented:
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
Maciej Ssysadmin
CERTIFIED EXPERT

Commented:
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.

Author

Commented:
"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?
Daniel McAllisterPresident, IT4SOHO, LLC
CERTIFIED EXPERT
Commented:
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

Author

Commented:
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?

Author

Commented:
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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.