LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   fdisk and mount dont agree on file system type (fat32 vs. ntfs) (https://www.linuxquestions.org/questions/linux-software-2/fdisk-and-mount-dont-agree-on-file-system-type-fat32-vs-ntfs-465696/)

schneidz 07-19-2006 06:47 PM

fdisk and mount dont agree on file system type (fat32 vs. ntfs)
 
here's a weird one:
Code:

[root@hyper root]# fdisk /dev/hdb
Command (m for help): p
 
Disk /dev/hdb: 15.3 GB, 15307407360 bytes
255 heads, 63 sectors/track, 1861 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
  Device Boot    Start      End    Blocks  Id  System
/dev/hdb1  *        66        75    80325  83  Linux
/dev/hdb2          1384      1860  3831502+  f  Win95 Ext'd (LBA)
/dev/hdb3            1        65    522081  82  Linux swap
/dev/hdb4            76      1383  10506510  83  Linux
/dev/hdb5          1384      1860  3831471    7  HPFS/NTFS
 
Partition table entries are not in disk order
 
Command (m for help):

i hit d to delete hda5, then n for new partition, t for type (c fat32)

so now it looks like this:
Code:

Command (m for help): p
 
Disk /dev/hdb: 15.3 GB, 15307407360 bytes
255 heads, 63 sectors/track, 1861 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
  Device Boot    Start      End    Blocks  Id  System
/dev/hdb1  *        66        75    80325  83  Linux
/dev/hdb2          1384      1860  3831502+  f  Win95 Ext'd (LBA)
/dev/hdb3            1        65    522081  82  Linux swap
/dev/hdb4            76      1383  10506510  83  Linux
/dev/hdb5          1384      1860  3831471    c  Win95 FAT32 (LBA)
 
Partition table entries are not in disk order
 
Command (m for help):

here is what happens when i try to mount:
Code:

[root@hyper root]# mount /dev/hdb5 /mnt/hdb5
mount: fs type ntfs not supported by kernel
[root@hyper root]# mount -t vfat /dev/hdb5 /mnt/hdb5
mount: wrong fs type, bad option, bad superblock on /dev/hdb5,
      or too many mounted file systems

please let me know how to mount it.

syg00 07-19-2006 07:17 PM

Reboot (presuming you did remember to write the altered partition table back to disk)

Matir 07-19-2006 07:24 PM

Did you FORMAT the partition at any point?

schneidz 07-20-2006 11:12 AM

thank you, no i didn't format

what is the appropriate command to format a fat32 partition?

i'll try google and repost if i find anything.

Matir 07-20-2006 11:17 AM

Generally, the following is sufficient:
Code:

mkfs.vfat -F 32 /dev/hdb5


All times are GMT -5. The time now is 07:15 AM.