LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Making a FAT32 FS (https://www.linuxquestions.org/questions/slackware-14/making-a-fat32-fs-220655/)

linuxnubx 08-21-2004 03:58 PM

Making a FAT32 FS
 
I was wondering how I can make a FAT32 filesystem under slackware for my external hdd. Using fdisk, I changed the partition to "win95 fat32." There's also a "win95 fat32 (lba);" what are the differences between these two? My ext hdd was labeled ntfs prior to the change. When I go to make the fat32 fs, it doesn't work.

The command I use is "mkfs -t fat32 /dev/sda." But the output I get is "mkfs.fat32: No such file or directory."

Tinkster 08-21-2004 04:39 PM

the LBA thing is for extended partitions (so you
can have win read logical drives in an extended
partition). The tool to use for formatting it is
mkdosfs
man mkdosfs for details

It appears that your external HDD is not being
picked up as sda. Have a look at /proc/scsi/scsi.

You also don't want to format the raw-device but
a partition in it /dev/sd<a-z><1-9>


Cheers,
Tink

linuxnubx 08-21-2004 04:46 PM

Thanks, it's working now.

linuxnubx 08-21-2004 05:22 PM

Okay, maybe not all is working fine. It won't let me mount saying that "mount: fs type fat32 not supported by kernel." I made sure to check off support for msdos fs and vfat in my .config, but it still doesn't want to mount.

linuxnubx 08-21-2004 06:44 PM

I tried changing my fstab... It doesn't seem to work... When I type in mount /dev/sda1, it gives me the error

Code:

mount point /st3 does not exist
Here is the sda1 line from fstab:

Code:

/dev/sda1        /st3            vfat        defaults          1  0

Mephisto 08-21-2004 06:57 PM

Quote:

Originally posted by linuxnubx
Okay, maybe not all is working fine. It won't let me mount saying that "mount: fs type fat32 not supported by kernel." I made sure to check off support for msdos fs and vfat in my .config, but it still doesn't want to mount.
You checked it off but did you compile the kernel? If you compiled, did you include vfat as a module or build it in? If as a module is the module loaded? Sorry if the answers are obvious.

linuxnubx 08-21-2004 07:12 PM

Yeah, they're built as modules; how do I check if they were loaded? Anyways, I think under fstab, it should be considered "fat32" in the first place, but "vfat" instead. So I changed it to vfat. Ok, one problem after another... I did mkdir /st3, then mount /dev/sda1, but get!!!

Code:

mount: special device /dev/sda1 does not exist
instead of

Code:

mount point /st3 does not exist
Seriously, as soon as I fix one problem, another one appears.

linuxnubx 08-21-2004 07:22 PM

Ok, so I figured out that my sda1 partition somehow just dissappeared, AGAIN. So I had to remake it blah blah blah... Then I had to mkdosfs -F 32 /dev/sda1... But now, of course, I get a different problem...

Code:

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
      or too many mounted file systems


linuxnubx 08-21-2004 07:28 PM

Nice, I got it to work using ext2 fs; now it's time to try to get it working with fat32.

linuxnubx 08-21-2004 09:27 PM

Wow, still no luck with the fat32.... Can someone tell me where I went wrong? Does this code below look good or is it off?

Code:

root@gHost:/home/jgo# mkdosfs -v -F 32 /dev/sda1
mkdosfs 2.10 (22 Sep 2003)
/dev/sda1 has 255 heads and 63 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 312576642 sectors;
file system has 2 32-bit FATs and 32 sectors per cluster.
FAT size is 76276 sectors, and provides 9763251 clusters.
Volume ID is 41280413, no volume label.
root@gHost:/home/jgo#


WMD 08-21-2004 10:07 PM

That worked fine! :)

Oh yeah: modprobe vfat is what you're looking for. ;)

linuxnubx 08-21-2004 10:56 PM

Ok, I typed in modprobe vfat, and got fatal error. This was when vfat was not built as module, so I built it as a module, and now it doesn't give me anything. I just type in modprobe vfat, and it doesn't appear to do anything. What does modprobe do? Anyways, I checked on my Windows XP, and it doesn't detect the FAT32 either, so something has to be wrong. I still get the error

Code:

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
      or too many mounted file systems

Whenever I try to mount /dev/sda1... What's up?

Tinkster 08-21-2004 11:06 PM

Quote:

Originally posted by linuxnubx
Ok, I typed in modprobe vfat, and got fatal error. This was when vfat was not built as module, so I built it as a module, and now it doesn't give me anything.
A great number of Unix/Linux tools work like that
and only give you feed-back if something fails.

Quote:

I just type in modprobe vfat, and it doesn't appear to do anything. What does modprobe do?
Probes loading a module, and if successful, is
happy with that :)

Quote:

Anyways, I checked on my Windows XP, and it doesn't detect the FAT32 either, so something has to be wrong. I still get the error

Code:

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
      or too many mounted file systems

Whenever I try to mount /dev/sda1... What's up?
What is the actual line you're using to mount, did
you make a fstab entry that differs from what you're
typing on the command-line?

What's the output of
mount
cat /etc/fstab
lsmod


Cheers,
Tink

WMD 08-21-2004 11:11 PM

Well...if you have Windoze XP, just format the drive with that. It'll let you select FAT32.

linuxnubx 08-21-2004 11:15 PM

Oops, my windows xp does detect the fat32, but only with firewire connection, not usb (strange)...

Okay so out put for mount:
Code:

/dev/hda7 on / type ext2 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/hda5 on /boot type ext2 (rw)
/dev/hda8 on /home type ext2 (rw)
/dev/hda1 on /xp type ntfs (ro)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)

cat /etc/fstab:
Code:

/dev/hda6        swap            swap        defaults          0  0
/dev/hda7        /                ext2        defaults          1  1
/dev/hda5        /boot            ext2        defaults          1  2
/dev/hda8        /home            ext2        defaults          1  2
/dev/hda1        /xp              ntfs        ro                1  0
/dev/sda1        /st3            vfat        noauto,user,ro    0  0
/dev/cdrom      /mnt/cdrom      iso9660    noauto,user,ro    0  0
devpts          /dev/pts        devpts      gid=5,mode=620    0  0
proc            /proc            proc        defaults          0  0

and lsmod:
Code:

Module                  Size  Used by
nls_cp437              5760  0
vfat                  12544  0
fat                    40224  1 vfat
snd_pcm_oss            48680  0
snd_mixer_oss          17408  3 snd_pcm_oss
ipv6                  245764  10
sbp2                  22024  1
intel_mch_agp          8208  1
uhci_hcd              29328  0
ehci_hcd              25732  0
snd_intel8x0          29576  3
snd_ac97_codec        64516  1 snd_intel8x0
snd_pcm                84228  2 snd_pcm_oss,snd_intel8x0
snd_timer              22148  1 snd_pcm
snd_page_alloc          9224  2 snd_intel8x0,snd_pcm
snd_mpu401_uart        6656  1 snd_intel8x0
snd_rawmidi            20772  1 snd_mpu401_uart
snd_seq_device          6792  1 snd_rawmidi
snd                    45156  11 snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore              7776  3 snd
ohci1394              31876  0
ieee1394              93368  2 sbp2,ohci1394
ntfs                  131444  1
agpgart                28076  1 intel_mch_agp



All times are GMT -5. The time now is 07:30 PM.