LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 03-10-2010, 11:32 PM   #1
woodmaster
Member
 
Registered: Jan 2010
Location: PA
Distribution: Karmic Koala
Posts: 49

Rep: Reputation: 15
Question Dual Boot Ubuntu Karmic and PCBSD?


Ok. so I searched for this and got sent to documentation on PCBSD's forums that say I need to manually edit /boot/grub/menu.lst to get Grub to load BSD. sudo update-grub didn't see BSD partition and there is no menu.lst??? Furthermore, I can't mount my BSD partition. I get this error:
Code:
Error mounting: mount exited with exit code 32: mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Code:
dmesg | tail
[14127.602295] You didn't specify the type of your ufs filesystem
[14127.602298] 
[14127.602299] mount -t ufs -o ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextstep|nextstep-cd|openstep ...
[14127.602301] 
[14127.602302] >>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old
[14127.603749] ufs_read_super: bad magic number
[14637.434606] ufs was compiled with read-only support, can't be mounted as read-write
[14659.430753] ufs was compiled with read-only support, can't be mounted as read-write
[14673.102535] ufs was compiled with read-only support, can't be mounted as read-write
[15374So what gives? What am I missing here? I know this should be able to be done. Using GRUB1.97 beta BTW(I refuse to call it 2.0 if it's not-IDK why it is commonly called that?) Thank-you for any help. I'd really like to try BSD..675222] ufs was compiled with read-only support, can't be mounted as read-write
So what gives? What am I missing here? I know this should be able to be done. Using GRUB1.97 beta BTW(I refuse to call it 2.0 if it's not-IDK why it is commonly called that?) Thank-you for any help. I'd really like to try BSD.
 
Old 03-11-2010, 01:04 AM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Code:
#fdisk -l
Sample output:
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa8a8a8a8

Device Boot Start End Blocks Id System
/dev/sda1 1 2423 19455880+ a5 FreeBSD
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 2423 4801 19101696 83 Linux
/dev/sda3 4801 4864 512000 82 Linux swap / Solaris

Edit grub manually:

Sample:
title FreeBSD i386 8.0
rootnoverify (hd0,0)<-- Make this what your output is on fdisk
chainloader +1 <-- loads the freebsd or pcbsd bootloader
Code:
mount -t ufs -o ufstype=ufs2 -o ro /dev/sda1 /mnt
ls /mnt
bin   cdrom   COPYRIGHT  entropy  home  libexec  mnt   rescue  sbin  tmp  var
boot  compat  dev        etc      lib   media    proc  root    sys   usr
Use the corresponding fdisk output for your partition.
Unmount with
Code:
umount /dev/sda1
You won't be able to read home directories from Linux.
Also, reading ext4 from FreeBSD won't be easy. I hope you used ext3 or are up to some patching.

Last edited by Mr-Bisquit; 03-11-2010 at 01:11 AM.
 
Old 03-11-2010, 06:45 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Ubuntu uses GRUB2 while the description you quote (and also the one above from Mr-Bisquit) is for the old GRUB. Here is some information on GRUB2:

http://ubuntuforums.org/printthread.php?t=1195275
http://www.dedoimedo.com/computers/grub-2.html

I don't use it, so I can't help you.

Furthermore you should change your /etc/fstab. This error from your post

Code:
mount -t ufs -o ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextstep|nextstep-cd|openstep ...
shows how to do it.
 
  


Reply

Tags
boot, bsd, dual, grub, karmic koala, menulst



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
How do I unify the Ubuntu Karmic 9.10 boot splash screens? lupusarcanus Linux - Newbie 11 02-28-2010 03:33 AM
Can't run Python code at Boot - Ubuntu Karmic micksulley Linux - Kernel 1 01-29-2010 08:38 PM
Slow Boot in Linux in Ubuntu Karmic route277 Linux - Newbie 8 12-19-2009 02:39 AM
Dual boot issue: WinXP/Karmic Koala on two separate HDDs kivi Ubuntu 5 11-30-2009 12:56 PM
Can't get Karmic & XP to dual boot von Stalhein Linux - Newbie 20 11-28-2009 05:03 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:36 PM.

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