Solved

how can I mount my freebsd or windows partition from linux box?

Posted on 2002-03-21
7
403 Views
Last Modified: 2010-04-20
I installed linux , windows ,and freebsd all at a hard disk , In my linux box , Can I mount my freebsd and windows partition ? I can find the list of linux partition from /etc/fstab , but for example I can not know how what device is my freebsd 's /usr/local or /usr .
where can I find the info ? how can I mount it?
0
Comment
Question by:csdnchen
7 Comments
 

Expert Comment

by:0xDEADBEEF
ID: 6886207
Try

mount /dev/hdaX <mountpoint> (Where X is the number of the Win/FreeBSD partition(s))

If you forgot the numbers, use fdisk.

Hope this helps.
0
 
LVL 4

Expert Comment

by:MFCRich
ID: 6886278
You will probably need to specify the filesystem type for the mount command. For the Windoze fs:

mount -t vfat <partition> <mountpoint>

I don't know what file system FreeBSD uses but I'm sure its supported.

Check out 'man 5 fstab' if you want to have these mounts done at boot time.
0
 

Author Comment

by:csdnchen
ID: 6888869
This is the output of fdisk

# fdisk -l /dev/hda
 devic     boot     start     end  block      ID  system
/dev/hda1             1       260   2088418+   6  FAT16
/dev/hda2           261       293    265072+  83  Linux
/dev/hda3           294      4180  31222327+   f  Win95 (LBA)
/dev/hda4   *      4181      5005   6626812+  a5  BSD/386
/dev/hda5           294       489   1574338+  83  Linux
/dev/hda6           490       620   1052226   83  Linux
/dev/hda7           621       669    393561   83  Linux
/dev/hda8           670       702    265041   83  Linux
/dev/hda9           703       735    265041   82  Linux swap
/dev/hda10          736       752    136521   83  Linux
/dev/hda11          753      2409  13309821    c  Win95 FAT32 (LBA)
/dev/hda12         2410      4180  14225526    7  HPFS/NTFS

I can mount hda1 but cannot mount /hda4
using the command like:
# mount /dev/hda4 -t ufs -o ufstype=44bsd /mnt/wherever
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 5

Accepted Solution

by:
jdfox earned 20 total points
ID: 6890956
Hello csdnchen,

Linux "fdisk" won't display all the BSD partitions in your FreeBSD slice from that main menu that you're using in your post above, but it will display BSD disklabel information if you use the command `b'.

However, most standard Linux installations don't include UFS support in the kernel.  What error msg do you get, when you try the mount command that you posted?

> using the command like:
> # mount /dev/hda4 -t ufs -o ufstype=44bsd /mnt/wherever

If your kernel was in fact built without UFS support, then you'll need build a new one. Please read the "Linux Kernel HOWTO" if you've never rebuilt your kernel before:

http://www.linuxdoc.org/HOWTO/Kernel-HOWTO.html

It's not that hard if you follow the steps carefully.  It's easier than upgrading KDE, in fact! :-)

When you do the kernel rebuild, you'll need to include both UFS filesystem support (read only) and BSD disklabel support (FreeBSD partition tables):

--quote--

UFS filesystem support (read only) (CONFIG_UFS_FS) [N/y/m/?] y
BSD disklabel (FreeBSD partition tables) support (CONFIG_BSD_DISKLABEL) [N/y/?]
(NEW) y

--end-quote--

Please also read the drive section in the "Linux+FreeBSD HOWTO":
http://www.linuxdoc.org/HOWTO/mini/Linux+FreeBSD-2.html



HTH,

--
JF
0
 

Expert Comment

by:CleanupPing
ID: 9089112
csdnchen:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 9

Expert Comment

by:majorwoo
ID: 9680813
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area to:
Accept jdfox's answer
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

majorwoo
EE Cleanup Volunteer
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
LINUX, CPANEL & WHM 5 44
Access_log 17 100
AWS - HAProxy- KeepAlived 5 15
Setting up static IP - Ubuntu server 16.04 12 25
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now