SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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."
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>
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.
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.
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.
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
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#
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
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?
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.