JeffBeall
asked on
ubuntu linux
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?
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?
Run "fdisk -l /dev/sda" and paste output here.
I meant "fdisk -l /dev/sdb" :) not /dev/sda of course.
ASKER
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'
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'
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
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?
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
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
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.
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.
ASKER
"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?
yes, it was from a mirrored raid, how do i force mount to treat it as ext3?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
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?
ASKER
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
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