1e8fa
![]() |
|
|
|
|
|||||||
| Peripheral Hardware Stuff that plugs in via USB, FireWire, eSATA, PS/2, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I have a 16GB usb stick formated to one partition with NTFS. After I plug it in, dmesg shows fine but with one problem:
Code:
GEOM: media size does not match label Code:
mount_ntfs /dev/da0 /mnt mount -t ntfs-3g /dev/da0 /mnt mount_ntfs /dev/da0a /mnt mount -t ntfs-3g /dev/da0a /mnt I also have a smartphone with usb port, the card in the phone is formated FAT, and the command Code:
mount_msdosfs /dev/da0 /mnt So I guess the problematic part is this Code:
GEOM: media size does not match label |
|
#2
|
||||
|
||||
|
I guess that you need to mount the right device.
Do a # ls -l /dev/da* and see what's there.If there's a /dev/da0s1 try to mount this. If not, you can try to run # : > /dev/da0. Don't worry, it won't delete your USB stick, it just opens it for writing and sometimes its actual slices are recognized and added then.
|
| The Following User Says Thank You to lme@ For This Useful Post: | ||
tom-pele (October 4th, 2010) | ||
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
Quote:
# : > /dev/da0, but what does that command actually do?
|
|
#5
|
|||
|
|||
|
Quote:
Code:
GEOM: da0: media size does not match label. |
|
#6
|
||||
|
||||
|
The command opens the da0 device for writing and sometimes finds its partitions.
Too bad it didn't work for you. |
|
#7
|
|||
|
|||
|
So should I reformat my drive using the fdisk under freeBSD? And will that make sure it will be recognized?
|
|
#8
|
||||
|
||||
|
Yeah, that would be worth a try. fdisk and then newfs_msdos.
|
|
#9
|
|||
|
|||
|
When you plug in your USB stick to a all ready running FBSD system the root console will display a bunch of messages about your USB stick including the device name. With no other USB devices plugged in it will be auto assigned /dev/da0.
Now the real question is how do you know this 16GB USB stick was formatted for NT file system? The manufacture sells them with ms/dos fat32 on them. To clean up things plug it into FBSD issue this command to zero out the MBR dd if=/dev/zero of=/dev/da0 count=1Then plug it into ms/xp open windows/explorer and try to open that drive. you will get box popup saying do you want to format this disk? answer yes. Now your USB stick is ms/dos fat32. go back to FBSD and mount_msdosfs /dev/da0 /mnt should work this time.
Last edited by DutchDaemon; March 1st, 2010 at 12:42. Reason: format your posts -> http://forums.freebsd.org/showthread.php?t=8816 |
| The Following User Says Thank You to fbsd1 For This Useful Post: | ||
pigling (September 1st, 2010) | ||
|
#10
|
|||
|
|||
|
Quote:
|
|
#11
|
|||
|
|||
|
i went to the same problem... note that i created the w95 lba partition on linux and created msdos fs with mkfs.vfat...
got the same issues, with freebsd not recognizing the partition just (da0a) ... then looking into the kernel modules.. i've tried: Code:
kldload geom_mbr hope it help others, cheers! |
|
#12
|
||||
|
||||
|
You should have something like /dev/da0s1 and mount it like this:
Code:
mount_msdosfs /dev/da0s1 /mnt/your folder
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 |
|
#13
|
|||
|
|||
|
Quote:
Code:
GEOM: media size does not match label mount_msdosfs /dev/da0a /mnt/usbgive the error Code:
invalid argument dd if=/dev/zero of=/dev/da0 count=1 is to clear up the disk. But why does FreeBSD detect da0 but not da0a in /dev after formatting in winXP? Can someone give a suggestion? Thanks.regards, qichao Last edited by DutchDaemon; September 1st, 2010 at 14:37. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#14
|
|||
|
|||
|
Quote:
Depending on the way the drive was partitioned by Windows, replace da0a by da0s1 or simply by da0. When in doubt always do a % ls /dev/da*
__________________
May the source be with you! |
|
#15
|
||||
|
||||
|
Quote:
To easily edit a partition table, I recommend Linux's cfdisk. I only wish we had something like it for FreeBSD. (sade(8) has problems like delayed commit and happily changing your /etc/fstab when it should not. And the user interface could be better.) |
|
#16
|
|||
|
|||
|
Anything wrong with fdisk's -u option? It lets you change every single field in there. I have never needed anything else.
__________________
May the source be with you! |
|
#17
|
||||
|
||||
|
Quote:
To me, the visual nature of cfdisk is easier to use. |
|
#18
|
|||
|
|||
|
Problem and Solution
My disk was also formatted (a year ago) using mkfs.ntfs on Ubuntu Linux. I had the same problem with the "Invalid argument" error message. Also in dmesg, you see some errors such as: Code:
g_vfs_done():ntfs/disklabelgoeshere[READ(offset=0, length=1024)]error = 22 g_vfs_done():da29s1[READ(offset=0, length=1024)]error = 22 To realize this, I saw in the man page: Code:
CAVEATS
This utility is primarily used for read access to an NTFS volume. See
the WRITING section for details about writing to an NTFS volume.
For a full read-write NTFS support consider sysutils/fusefs-ntfs
port/package.
# ntfs-3g /dev/ntfs/disklabelgoeshere /mnt/mountpointAnd now it works... but seems to read from the disk while writing, halving the write performance (12.5 MB/s over USB 2.0).
__________________
Criticism is always welcome. Last edited by DutchDaemon; April 10th, 2012 at 17:51. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] ntfs-3g problem , can't mount | cola | Installation and Maintenance of FreeBSD Ports or Packages | 2 | November 29th, 2010 03:28 |
| [Solved] How can i mount ntfs? | cola | General | 7 | November 27th, 2010 19:42 |
| Can't mount usb stick on FreeBSD | zuttel | Peripheral Hardware | 7 | August 16th, 2010 20:16 |
| USB stick mount problem | nephrite | Peripheral Hardware | 7 | February 7th, 2010 10:14 |
| [Solved] how to mount ntfs usb HDD with rw access | beginner | Peripheral Hardware | 12 | January 28th, 2010 17:48 |