More Linux questions...
. Help w/ mounting vfat filesystem.
How do I enable vfat support for Redhat 7.1? I get an error
when I try to mount a dos floppy (mount -t vfat /dev/fd0
/mnt/floppy). I tried to load the vfat module
(/lib/modules/kernel/2.4-2.2/fs/vfat.o)
but insmod complains of a all sorts of depedency issues. Am I
doing something wrong?
. How do I display the CWD as the command prompt (like in DOS)?
quote: Original post by Abominus
. Help w/ mounting vfat filesystem.
How do I enable vfat support for Redhat 7.1? I get an error
when I try to mount a dos floppy (mount -t vfat /dev/fd0
/mnt/floppy). I tried to load the vfat module
(/lib/modules/kernel/2.4-2.2/fs/vfat.o)
but insmod complains of a all sorts of depedency issues. Am I
doing something wrong?
. How do I display the CWD as the command prompt (like in DOS)?
You need to enable VFAT in your kernel, ie: recompile it. This can be done as root with make menu-config. As for the prompt: you need to type this: export PS1="\\w>"
if I'm not mistaking. If it's not \\w, try typing "man -k PS1" or "man -k prompt"
"And that's the bottom line cause I said so!"
Cyberdrek
cyberdrek@gdnmail.net
Founder Laval Linux
/(bb|[^b]{2})/ that is the Question -- ThinkGeek.com
Hash Bang Slash bin Slash Bash -- #!/bin/bash
[edited by - cyberdrek on April 8, 2002 11:13:58 AM]
[Cyberdrek | ]
the ''dependancy things'' are missing NLS codepages
if you use ''make menuconfig'' to configure the kernel NLS codepages will appear as a seperate menu at the bottom of the window. It should be obvious which you need (US / western european)
jsut make sure you have both types
if you use ''make menuconfig'' to configure the kernel NLS codepages will appear as a seperate menu at the bottom of the window. It should be obvious which you need (US / western european)
jsut make sure you have both types
quote: Original post by CyberdrekOriginal post by Abominus
. Help w/ mounting vfat filesystem.
How do I enable vfat support for Redhat 7.1? I get an error
when I try to mount a dos floppy (mount -t vfat /dev/fd0
/mnt/floppy). I tried to load the vfat module
(/lib/modules/kernel/2.4-2.2/fs/vfat.o)
but insmod complains of a all sorts of depedency issues. Am I
doing something wrong?
. How do I display the CWD as the command prompt (like in DOS)?
You need to enable VFAT in your kernel, ie: recompile it. This can be done as root with make menu-config. As for the prompt: you need to type this: export PS1="\\w>"
if I''m not mistaking. If it''s not \\w, try typing "man -k PS1" or "man -k prompt"
"And that''s the bottom line cause I said so!"
Cyberdrek
cyberdrek@gdnmail.net
Founder Laval Linux
/(bb|[^b]{2})/ that is the Question – ThinkGeek.com
Hash Bang Slash bin Slash Bash – #!/bin/bash
[edited by - cyberdrek on April 8, 2002 11:13:58 AM]
Thanks. But I don''t really want to recompile the kernel. Is there some site where I d/l the kernel binary. Most of the sites I came across only have source but no binaries.
April 09, 2002 03:55 PM
laf! kernel binaries...
search for the following:
Codepage 437 (United States, Canada)
NLS ISO 8859-1 (Latin 1; Western Europe)
and it seems you already have the vfat.o so you jsut need to find .o ''s for those
search for the following:
Codepage 437 (United States, Canada)
NLS ISO 8859-1 (Latin 1; Western Europe)
and it seems you already have the vfat.o so you jsut need to find .o ''s for those
cwd:
PS1=$(echo $PS1 | sed ''s/W/w/'')
So you know, echo prints the name of the environment variable PS1, sends that as input to sed, which alters the characters sent to it by replacing all occurences of \W(the deepest directory name) with \w(the full path). The output from this change is then stored as PS1( $() or `` perform the command inside them, then place their output on the command line that encloses them and executes that). This only replaces the short path with the long path. If you''d like a more DOS-like prompt, just try PS1=''\w > ''
Your main question:
The vfat module requires the fat module, so load fat.o first.
So you don''t run into these things any further, use the modprobe command instead. Just try modprobe vfat instead of insmod vfat, and it won''t give any errors at all. It automatically loads the dependencies as well as the requested module.
PS1=$(echo $PS1 | sed ''s/W/w/'')
So you know, echo prints the name of the environment variable PS1, sends that as input to sed, which alters the characters sent to it by replacing all occurences of \W(the deepest directory name) with \w(the full path). The output from this change is then stored as PS1( $() or `` perform the command inside them, then place their output on the command line that encloses them and executes that). This only replaces the short path with the long path. If you''d like a more DOS-like prompt, just try PS1=''\w > ''
Your main question:
The vfat module requires the fat module, so load fat.o first.
So you don''t run into these things any further, use the modprobe command instead. Just try modprobe vfat instead of insmod vfat, and it won''t give any errors at all. It automatically loads the dependencies as well as the requested module.
---New infokeeps brain running;must gas up!
April 11, 2002 12:59 AM
quote: Original post by Anonymous Poster
laf! kernel binaries...
search for the following:
Codepage 437 (United States, Canada)
NLS ISO 8859-1 (Latin 1; Western Europe)
and it seems you already have the vfat.o so you jsut need to find .o ''s for those
To sidetrack from the topic a little, is it safe to use a Slackware kernel (zImage) on a Redhat distro?
quote: Original post by Anonymous Poster
To sidetrack from the topic a little, is it safe to use a Slackware kernel (zImage) on a Redhat distro?
As long as it was compiled for your CPU architecture and contains all the features that you need. You''ll very likely also want to use its modules too (from /lib/modules/kernel_version).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement