LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 07-19-2006, 06:47 PM   #1
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-12/ fc-11-live-usb/ aix
Posts: 1,951

Rep: Reputation: 158Reputation: 158
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.

Last edited by schneidz; 07-19-2006 at 06:52 PM.
 
Old 07-19-2006, 07:17 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,462

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Reboot (presuming you did remember to write the altered partition table back to disk)
 
Old 07-19-2006, 07:24 PM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
Did you FORMAT the partition at any point?
 
Old 07-20-2006, 11:12 AM   #4
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-12/ fc-11-live-usb/ aix
Posts: 1,951

Original Poster
Rep: Reputation: 158Reputation: 158
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.
 
Old 07-20-2006, 11:17 AM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
Generally, the following is sufficient:
Code:
mkfs.vfat -F 32 /dev/hdb5
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read .chm file in fedora, can't mount ntfs file system ishti_du Linux - Newbie 12 03-06-2007 03:27 AM
What type of file system? ntfs, ext2fs, etc. halfpower Debian 4 09-04-2005 10:59 AM
How do I Mount a Windows NTFS file system explorer Linux - Networking 15 05-06-2004 08:01 PM
NTFS file system mount problems Fedora 2.4 jjisnow Linux - Newbie 2 03-23-2004 05:42 PM
mount the ntfs file system jdevanand Linux - General 3 01-22-2002 01:25 PM


All times are GMT -5. The time now is 12:09 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration