LinuxQuestions.org
Visit Jeremy's Blog.
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 05-08-2005, 04:50 PM   #1
ruleman
LQ Newbie
 
Registered: Feb 2004
Distribution: Slackware 9.1
Posts: 22

Rep: Reputation: 15
Creating ufs (freebsd) Partitions


Hello, my system currently has two harddrives i just want to use secondary hdd on my another FreeBSD 5.3 system.

root@trinity [~]# fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 14479 116198145 83 Linux
/dev/hda3 14480 14593 915705 82 Linux swap

Disk /dev/hdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb2 14 14479 116198145 a5 FreeBSD


Previously /dev/hdb2 was ext2 then i used fdisk /dev/hdb and changed filesystem to a5 (FreeBSD). But unfortunately i can't mount that partition under linux.

Here what i got:

root@trinity [~]# mount -t ufs -o ufstype=44bsd /dev/hdb2 /home2
mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
or too many mounted file systems
root@trinity [~]# mount -t ufs -o ufstype=ufs /dev/hdb2 /home2
mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
or too many mounted file systems
root@trinity [~]# mount -t ufs -o ufstype=ufs2 /dev/hdb2 /home2
mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
or too many mounted file systems
root@trinity [~]# mount -r -t ufs -o ufstype=ufs2 /dev/hdb2 /home2
mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
or too many mounted file systems
root@trinity [~]# mount -t ufs /dev/hdb2 /home2
mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
or too many mounted file systems

Is there way to mount it ? Or did i miss something to make it work.

Thank you for replies.
 
Old 05-08-2005, 05:35 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Moved: More suitable in our BSD forum.
 
Old 05-08-2005, 05:40 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,333

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
"Is there way to mount it ? Or did i miss something to make it work."

You have to format the partition before it can be mounted. I suggest that you boot freeBSD and format the partition. Then you should be able to mount it as ufs in Linux.

---------------------------
Steve Stites
 
Old 05-13-2005, 09:19 AM   #4
ruleman
LQ Newbie
 
Registered: Feb 2004
Distribution: Slackware 9.1
Posts: 22

Original Poster
Rep: Reputation: 15
can't i format that disk from linux ?
 
Old 05-13-2005, 10:14 AM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,333

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
"can't i format that disk from linux ?"

Yes, if you have mkfs.ufs installed. Try:
which mkfs.ufs
to see if that is installed on your system. If it is then use mkfs.ufs to format the BSD partition.

---------------------------
Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot mount FreeBSD UFS from linux bulliver *BSD 8 09-08-2008 04:05 PM
Problem Creating UFS Partition gnu noob Solaris / OpenSolaris 10 10-14-2005 12:31 PM
creating partitions simcox1 Mandriva 1 04-22-2005 05:49 AM
creating image on FreeBSD radus *BSD 2 02-17-2005 01:25 PM
Partitions in FreeBSD Slack_Master *BSD 7 02-21-2003 05:13 PM

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

All times are GMT -5. The time now is 06:48 AM.

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