Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-14-2009, 01:46 AM
|
#1
|
|
Member
Registered: Nov 2008
Posts: 157
Rep:
|
Mounting fat32 in debian
I've tried everything I could find to replace and write in my fstab, and this is what I get when I mount one of the fat32
mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Also, when I go to see what's in the other fat32, when I do an ls, I see nothing.
Any ideas?
|
|
|
|
02-14-2009, 02:04 AM
|
#2
|
|
Senior Member
Registered: Dec 2008
Location: Gorizia, Italy
Distribution: Debian Testing Amd64
Posts: 3,100
Rep: 
|
Quote:
Originally Posted by SuperDude123
I've tried everything I could find to replace and write in my fstab, and this is what I get when I mount one of the fat32
mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Also, when I go to see what's in the other fat32, when I do an ls, I see nothing.
Any ideas?
|
It might be easier to first mount the fat32 drive manually using the mount command. If this works then you can worry about the fstab entry.
Code:
sudo mount -t vfat /dev/hdb1 /mnt
I've used /mnt as the mount point but you can change that if you prefer to mount it somewhere else. If that works then it should be a piece of cake to put the correct entry in your fstab file.
Cheers,
jdk
Last edited by jdkaye; 02-14-2009 at 02:16 AM.
|
|
|
|
02-16-2009, 08:54 AM
|
#3
|
|
LQ Newbie
Registered: Apr 2006
Posts: 26
Rep:
|
First of all, do you have FAT support in your kernel ? Try:
zcat /proc/config.gz | grep -i fat
You should see something like
Code:
...
# DOS/FAT/NT Filesystems
CONFIG_FAT_FS=m
CONFIG_VFAT_FS=m
...
I use the automounter to mount e.g. pendrives with FAT.
After installing the autofs package, put this into your /etc/auto.master:
Code:
/mnt/auto /etc/auto.mnt --timeout=10
and this to your /etc/auto.mnt:
Code:
fat -fstype=vfat,rw :/dev/hdb1
mkdir -p /mnt/auto, then restart autofs, and you should be able to access the partition under /mnt/auto/fat.
You also may run mmls /dev/hdb to see partition data.
(it's part of the sleuthkit package)
Last edited by tothzp; 02-16-2009 at 08:59 AM.
|
|
|
|
02-16-2009, 09:40 AM
|
#4
|
|
Member
Registered: Nov 2008
Posts: 157
Original Poster
Rep:
|
When I do zcat /proc/config.gz | grep -i fat, I get
zcat: /proc/config.gz: No such file or directory
Could it be a different file in Debian?
|
|
|
|
02-16-2009, 09:48 AM
|
#5
|
|
Senior Member
Registered: Dec 2008
Location: Gorizia, Italy
Distribution: Debian Testing Amd64
Posts: 3,100
Rep: 
|
Quote:
Originally Posted by SuperDude123
When I do zcat /proc/config.gz | grep -i fat, I get
zcat: /proc/config.gz: No such file or directory
Could it be a different file in Debian?
|
I don't have it either (in Debian) but I can and have mounted FAT devices.
cheers,
jdk
|
|
|
|
02-17-2009, 03:45 AM
|
#6
|
|
LQ Newbie
Registered: Apr 2006
Posts: 26
Rep:
|
/proc/config.gz is just a handy thing to build into the kernel, thereby it's easy to get the config of the running kernel.
It just stores your .config file in the kernel image.
It can be configured under General / Kernel .config support in the kernel configuration menus.
Nevertheless, that is not necessary for the FAT support.
If your fat support is built as a kernel module, then you might find some clues on it by typing modinfo vfat.
If it's built into the kernel monolithically, then this is no way to go.
As a last resort, you can build a kernel on your own, then configure the .config support (as above) and the VFAT support under Filesystems / DOS/FAT/NT Filesystems.
|
|
|
|
02-17-2009, 12:43 PM
|
#7
|
|
Member
Registered: Nov 2008
Posts: 157
Original Poster
Rep:
|
When I did
sudo modinfo vfat
I got:
filename: /lib/modules/2.6.18-6-486/kernel/fs/vfat/vfat.ko
license: GPL
description: VFAT filesystem support
author: Gordon Chaffee
vermagic: 2.6.18-6-486 mod_unload 486 REGPARM gcc-4.1
depends: fat
So how do I get the system to mount the hard drive automatically? Can automounter be installed on Debian?
|
|
|
|
02-18-2009, 03:54 AM
|
#8
|
|
LQ Newbie
Registered: Apr 2006
Posts: 26
Rep:
|
Well, it appears that your kernel supports VFAT.
Quote:
Originally Posted by SuperDude123
So how do I get the system to mount the hard drive automatically? Can automounter be installed on Debian?
|
It's in the package autofs.
Install with apt-get install autofs.
Then write the config files as I wrote above.
If you modify auto.master, you have to restart the automounter:
cd /etc/init.d
./autofs restart
|
|
|
1 members found this post helpful.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Mounting FAT32
|
JamesNewbie |
Linux - Newbie |
19 |
01-21-2006 10:13 AM |
|
Mounting FAT32
|
Proxy Hoar |
Linux - Newbie |
7 |
11-22-2004 07:38 PM |
|
mounting fat32
|
wellblue88 |
Linux - Hardware |
3 |
05-28-2004 12:05 PM |
|
mounting fat32
|
snow |
Linux - Software |
25 |
09-07-2003 01:37 PM |
|
mounting FAT32?
|
FaLLeNSouL |
Linux - Newbie |
2 |
03-28-2003 04:20 AM |
All times are GMT -5. The time now is 12:39 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|