Re: mount query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 14, 2008 at 09:04:47PM +0530, Lal wrote:
> How does mount utility find (sector) location of partition table for a
> given device/file system?

Mount doesn't look for a partition table, it only knows about block
devices and mount points.

> I am writing a sample mass storage driver, and trying to mount vfat
> file system using sample driver.
> I tried "mount -t vfat /dev/my_usb /mnt". This gives error "invalid
> media value".

I don't think that is what mount said, there is no such string in mount
or the libraries it links. Could you be more precise, right now it's
anybody's guess what's going wrong.

> If I compare data read by sample driver (from sector 0, len 512) to a
> windows USB mass storage driver, the data turn out to be same.

Hard to tell what's wrong, my guess is that the kernel doesn't know it
is a partitioned device.


Erik

-- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux