Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2002 19:21:20 +0000
From:      Simon Siemonsma <s.siemonsma@hccnet.nl>
To:        "Joe & Fhe Barbish" <barbish@a1poweruser.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: mounting msdos partition under FBSD
Message-ID:  <200201051816.TAA11828@smtp.hccnet.nl>
In-Reply-To: <LPBBIGIAAKKEOEJOLEGOEEGICLAA.barbish@a1poweruser.com>
References:  <LPBBIGIAAKKEOEJOLEGOEEGICLAA.barbish@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
It is not a trial and error method. I DID NOT GUESS ANY NAMES. What I tried 
to do is to describe the logic that FreeBSD uses to name hard-disk devices. I 
found out about this logic by researching the internet, and was able to mount 
my NTFS partition as well as my FAT partition without problems one I 
understood it.

As another example my cd-rom players are: acd0c and acd1c respectively.
The first is the master, the second the slave. For SCSI the first letters are 
different again. Once you understand the logic it's actually quit straight 
forward. It didn't give me much problems.

You are totally free to give the mount point a name which makes sence to you. 
 You can use the same names as the non-FBSD are called outside FBSD.
As far as I know FBSD will not see the names. This is also logical.
Look at it this way: to be able to see anything on the non BSD partitions 
they need to be mounted first. When the name is stored in the partition it is 
also impossible for FBSD to see it at the time you mount them.

Once you mounted your FAT partition you can use it as if it was a normal FBSD 
partition. So commands like ls, cp etc will work without any problem.
Some examples where I used my FAT partition for make it more clear:
	When reinstalling FBS at a time I made a backup of some important file at 
the FAT partition.
	I copied some outlook dll to my FAT partition to edit it with vi on FBSD.
	I converted my outlook mailbox to MBOX, placed the result on my FAT 
partition and copied it to the location of Kmails mailbox.

You don't need anything special for this.

Simon Siemonsma

On Saturday 05 January 2002 17:58, you wrote:
> Thank you very much for the detailed description,
> But let me clear up a point.
> Are you saying there is no way from FBSD to get the names
> of the non-FBSD partitions?
> You just described the way FBSD would name them if it knew
> about them and by using those names you got access.
> Did this trial and error method of guessing the names in any
> way hurt the original non-FBSD partitions or data?
> The long winded mount command format has to be used until one
> gets the names correct, and then /etc/fstab can be customized
> to short cut the mount command.
>
> Once access is achieved does the cd, pwd, ls, and cp commands work
> on the msdos data ok?
> Does Unix2dos and dos2unix have to be used to make text files
> interchangeable?
>
>
> -----Original Message-----
> From: Simon Siemonsma [mailto:s.siemonsma@hccnet.nl]
> Sent: Saturday, January 05, 2002 1:08 PM
> To: Joe & Fhe Barbish
> Subject: Re: mounting msdos partition under FBSD
>
> It is not to difficult to find out.
> I will explain it with my machine as an example:
> I have to IDE hard-drives.
> The primairy contains Windows NT and the slave FreeBSD.
> The name of the primairy hard disk is ad0 an of the secudairy ad1. (ad
> stands
> for IDE drive and it starts counting at 0)
> My primairy drive has two partitions. The first partition is a NTFS
> partion, the second a FAT partion. This make respectively slice1 and slice
> 2. So the NTFS partition is ad0s1. The fat partition is ad0s2.
> For some reason which I don't understand yet you have to ad a c to this.
> So my NTFS partion is on /dev/ad0s1c and my FAT partition at /dev/ad0s2c.
>
> The easiest way to mount is to make an entry in /etc/fstab, and make sure
> to make a directory with the name of the mount point. (I used /mnt/fat) It
> can be automounted at bootup or else you say mount <<mountpoint>>.
>
> I hope you understand the logic and will be able to figure everything out
> for
> your system yourself.
>
> Simon Siemonsma
>
> On Saturday 05 January 2002 11:50, you wrote:
> > I have a duel boot hard drive win98/FBSD.
> > I want to mount the win98 partition under FBSD.
> > What command do I use to find out what device FBSD
> > calls the win98 partition/slice?
> > Is this the commands to mount and umount?
> > mount -t msdos /dev/xxxxxx /mnt/win_d
> > umount /mnt/win_d
> >
> >
> >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201051816.TAA11828>