Re: How To create msdosfs on HD?

2010-04-30 Thread Fbsd1

Fbsd1 wrote:

On Thu, 29 Apr 2010 09:29:35 -0300, Fbsd1 fb...@a1poweruser.com wrote:

I know mount_msdosfs command is used to mount a HD formated with 
fat, but

I could not find a FBSD command to create a msdos file system on a hard
drive. Native dos fdisk/format is no good because it's not USB 
aware. Is
there any FBSD command or port I can use to reformat the UFS hard 
drive with

msdosfs?



dd if=/dev/zero of=/dev/da0 bs=512k count=10
fdisk -i /dev/da0
newfs_msdos -F32 /dev/da0s1



Thank you very much.
Thats the answer I was hoping for.





For the archives here is a detailed explanation.

Create MS/Windows file system on a Hard Drive so it will be recognized 
on an MS/Windows system.


The goal here is to initialize a hard drive that was previous 
initialized with a non-Microsoft Windows file system, with a single 
active partition populated with Microsoft Windows 32 bit FAT (LBA) file 
system. So this hard drive will be recognized as containing a valid 
MS/Windows file system when used on a Microsoft Windows system.


I have an old IDE 3.5” hard drive with FBSD Release 7.0 on it. I want to 
use it as external USB attached disk on XP. I bought a 'CD-r king' hard 
drive to USB adapter cable. It will work with 2.5”  3.5” IDE drives and 
SATA drives. When I plug the USB end of the cable into a FBSD system I 
can mount the 3.5” IDE 7.0 HD's da0s1a, da0s1d, da0s1e and da0s1f  file 
systems with no problem. But when I plug the same drive into a XP system 
the USB drive shows in “control panel/system/hardware/devices/hard 
drives” as there, but “windows explorer” does not assign a drive letter 
for it so I can not reformat it.


All PC’s running a MS/Windows system inspect sector 0 of the hard drive 
for the partition/slice table to determine the sysid of each 
partition/slice. If the sysid value is 12 then it’s a valid Microsoft 
Windows file system and gets assigned a drive letter in “windows 
explorer”. Any other sysid value means non-Microsoft Windows file system 
and the device is seen in  “control panel/system/hardware/devices/hard 
drives” as there but “windows explorer” does not assign a drive letter 
to it.


There are 2 ways to initialize ((2.5” or 3.5”) (IDE or SATA)) hard 
drives with a valid MS/Windows file system. Using the Microsoft “fdisk” 
program or the FreeBSD “fdisk” program. The Microsoft “fdisk” program 
defaults to sysid =12. The FreeBSD “fdisk” program defaults to sysid = 
165, but has alternate way to assign any sysid value you want.


Microsoft method. Replace the 2.5” hard drive in your laptop with the 
2.5” hard drive containing the FreeBSD system. If 3.5” hard drive then 
open your desktop PC, remove the data cable ribbon and power connection 
from the existing hard drive and attach them to the 3.5” hard drive 
containing the FreeBSD system. Put the Microsoft XP, Vista, or Windows7 
install CD in the cdrom drive and boot. Select fdisk option from the 
install menu to populate the hard drive with official ntfs file system. 
No need to continue with the install after fdisk complete.


FreeBSD method. You need a PC with a running FreeBSD system and USB 
hardware to attach the 2.5” or 3.5” IDE or SATA hard drives with. A USB 
external hard drive housing will work fine for 3.5” IDE and SATA drives. 
For 2.5” IDE or SATA drives you will need a USB adapter cable. The 'CD-r 
king' hard drive to USB cable I purchased works with 2.5”  3.5” IDE 
drives and SATA drives, cost $10 USA. If you have a 3.5” IDE or SATA 
hard drive and FreeBSD is running on a desktop PC, you could open it up 
and add it as a second hard drive on the data ribbon.


Attach the hard drive to the USB equipment and plug into USB port on the 
PC running FreeBSD. Best if you are logged in as “root”. You will see 
the USB console messages as the USB hard drive is connected. In most 
cases the USB drive will be assigned da0 as the device name. The 
following instructions are for initializing the hard drive as a single 
MS/Windows partition occupying the whole hard drive.



 Wipe clean the sector 0 slice table
# dd if=/dev/zero of=/dev/da0 count=2


The following is what you would do if the initialized msdosfs hard drive 
will only be used on a FreeBSD system. The slice table is populated with 
the sysid of 165, which means FreeBSD is using this slice, but the slice 
contains a MSDOS FAT32 file system. The newfs_msdos command is really 
acting like the msdos format command. The larger your hard drive the 
longer this command will take to complete.


#fdisk -BI /dev/da0
#newfs_msdos -F32 /dev/da0s1
This creates the sector 0 slice table and loads the default bios boot 
code and activates a single slice covering the entire disk.



If at this point you un-plugged the USB cable from the FreeBSD system 
and plugged it into a Microsoft Windows PC. The USB drive would be 
un-accessible by “windows explorer” because no drive letter gets 
assigned. That’s because Window’s see this hard drive as a non-windows 
drive. Which is 

How To create msdosfs on HD?

2010-04-29 Thread Fbsd1
I have an old IDE 3.5 hard drive with FBSD Release 7.0 on it. I want to 
use it for USB disk space on XP. I bought a 'CD-r king' hard drive to 
USB cable. It will work with 2.5  3.5 IDE drives and sata drives. When 
I plug the USB end of the cable into a FBSD system I can mount the 3.5 
IDE 7.0 HD's da0s1a, da0s1d, da0s1e and da0s1f file systems with no 
problem. But when I plug the same drive into a XP system the USB drive 
shows in system/devices/hard drives as there but windows explorer does 
not assign a drive letter for it. I'm thinking this is because the hard 
drive has UFS format and maybe it I reformat it to fat format xp will 
assign a drive letter to it.


I know mount_msdosfs command is used to mount a HD formated with fat, 
but I could not find a FBSD command to create a msdos file system on a 
hard drive. Native dos fdisk/format is no good because it's not USB 
aware. Is there any FBSD command or port I can use to reformat the UFS 
hard drive with msdosfs?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How To create msdosfs on HD?

2010-04-29 Thread Rod Person

On Thu, 29 Apr 2010 09:29:35 -0300, Fbsd1 fb...@a1poweruser.com wrote:
I know mount_msdosfs command is used to mount a HD formated with fat,  
but I could not find a FBSD command to create a msdos file system on a  
hard drive. Native dos fdisk/format is no good because it's not USB  
aware. Is there any FBSD command or port I can use to reformat the UFS  
hard drive with msdosfs?

___


Why can't you format it in XP since you connected it to XP?

--
Rod

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How To create msdosfs on HD?

2010-04-29 Thread Adam Vande More
On Thu, Apr 29, 2010 at 6:36 AM, Rod Person rodper...@rodperson.com wrote:

 On Thu, 29 Apr 2010 09:29:35 -0300, Fbsd1 fb...@a1poweruser.com wrote:

 I know mount_msdosfs command is used to mount a HD formated with fat, but
 I could not find a FBSD command to create a msdos file system on a hard
 drive. Native dos fdisk/format is no good because it's not USB aware. Is
 there any FBSD command or port I can use to reformat the UFS hard drive with
 msdosfs?


dd if=/dev/zero of=/dev/da0 bs=512k count=10
fdisk -i /dev/da0
newfs_msdos -F32 /dev/da0s1

-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How To create msdosfs on HD?

2010-04-29 Thread Fbsd1

Rod Person wrote:

On Thu, 29 Apr 2010 09:29:35 -0300, Fbsd1 fb...@a1poweruser.com wrote:
I know mount_msdosfs command is used to mount a HD formated with fat, 
but I could not find a FBSD command to create a msdos file system on a 
hard drive. Native dos fdisk/format is no good because it's not USB 
aware. Is there any FBSD command or port I can use to reformat the UFS 
hard drive with msdosfs?

___


Why can't you format it in XP since you connected it to XP?

Because like I say in the first part of post you snipped out that xp 
does not assign a drive letter to it.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How To create msdosfs on HD?

2010-04-29 Thread Bobby Walker



Sent from my iPhone

On Apr 29, 2010, at 9:13 AM, Fbsd1 fb...@a1poweruser.com wrote:


Rod Person wrote:
On Thu, 29 Apr 2010 09:29:35 -0300, Fbsd1 fb...@a1poweruser.com  
wrote:
I know mount_msdosfs command is used to mount a HD formated with  
fat, but I could not find a FBSD command to create a msdos file  
system on a hard drive. Native dos fdisk/format is no good because  
it's not USB aware. Is there any FBSD command or port I can use to  
reformat the UFS hard drive with msdosfs?

___

Why can't you format it in XP since you connected it to XP?
Because like I say in the first part of post you snipped out that xp  
does not assign a drive letter to it.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org 





In XP the drive should be visible in the disk manager via  
administration tools.  It'll assign a drive letter after you you do a  
fat32 or ntfs format on either a single partition or the entire drive.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How To create msdosfs on HD?

2010-04-29 Thread Fbsd1

Adam Vande More wrote:

On Thu, Apr 29, 2010 at 6:36 AM, Rod Person rodper...@rodperson.com wrote:


On Thu, 29 Apr 2010 09:29:35 -0300, Fbsd1 fb...@a1poweruser.com wrote:


I know mount_msdosfs command is used to mount a HD formated with fat, but
I could not find a FBSD command to create a msdos file system on a hard
drive. Native dos fdisk/format is no good because it's not USB aware. Is
there any FBSD command or port I can use to reformat the UFS hard drive with
msdosfs?



dd if=/dev/zero of=/dev/da0 bs=512k count=10
fdisk -i /dev/da0
newfs_msdos -F32 /dev/da0s1



Thank you very much.
Thats the answer I was hoping for.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org