LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems mounting Ubuntu HD in Gentoo (https://www.linuxquestions.org/questions/linux-newbie-8/problems-mounting-ubuntu-hd-in-gentoo-438797/)

future_boy 04-25-2006 06:04 PM

Problems mounting Ubuntu HD in Gentoo
 
A little background. After using Ubuntu on a second HD and dual booting it with XP for a while, i found i was never using XP and ubuntu just wasn't configurable enough SO... i installed gentoo on my XP(80gig primary) HD with the view to getting my files off the Ubuntu disk (10gig slave) and then installing Win2k purely for gaming.

BUT i seem to be having problems getting the Ubuntu drive to mount

# mount -t ext2 /dev/hdb2 /mnt/ubuntu
gives

mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
missing codepage or other error
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
In some cases useful info is found in syslog - try
dmesg | tail or so

fdisk gives me this:

Disk /dev/hdb: 10.0 GB, 10005037056 bytes
255 heads, 63 sectors/track, 1216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 31 248976 83 Linux
/dev/hdb2 32 1216 9518512+ 5 Extended
/dev/hdb5 32 1216 9518481 8e Linux LVM

I originally just created an entry for it in fstab which reads:

# <fs> <mountpoint> <type> <opts> <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot reiserfs noauto,noatime,notail 0 2
/dev/hda3 / reiserfs noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
/dev/hdb2 /mnt/ubuntu ext3 auto,user 0 1

I'm probably just trying to do something really stupid and obvious, i know but any help would be appreciated...

tells 04-25-2006 08:21 PM

You cannot mount an extended partition. It looks like you are using LVM in Ubuntu. You would need to import the LVM configuration on the new system.

Here is a link:
http://www.linux.com/howtos/LVM-HOWT...tonewsys.shtml

Penguin of Wonder 04-25-2006 08:23 PM

Well the error says "mount: wrong fs type, bad option, bad superblock on /dev/hdb2, missing codepage or other error." Are you sure /dev/hdb2 has the ext2 filesystem? You can mount paritions without specifing the filesystem type, try that.

Nevermind, not only did tells beat me to it, his answer is alot better :)


All times are GMT -5. The time now is 01:04 AM.