LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2001, 12:00 AM   #1
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
Question Another question


Question 1.)
I am trying to use a floppy disk to copy linux files to. Whenever I mount this disk, I cannot erase the DOS files that exist there, because "URL does not exist or permission denied". How do I prepare this disk for use within linux?
-
Question 2.)
What command do I use to set up the path for linux to follow when looking for executables, e.g., '$path' (I'm not getting the context right).
-
Question 3.)
What startup script do I put this path command into so that it is permanent?
-
Question 4.)
I have managed to recompile my Kernel 2.4, however, there are several "failed" processes scrolling by as during startup. How do I log this stuff so I can troubleshoot?
Thanks.


[Edited by rdaves@earthlink.net on 06-08-2001 at 01:20 AM]
 
Old 06-08-2001, 01:50 AM   #2
NGene
Member
 
Registered: Mar 2001
Location: Turku, Finland
Distribution: Ubuntu
Posts: 66

Rep: Reputation: 16
I'm not at home right now and I'm posting this at a Win box, but I hope I remember these right...

1) So, you are able to mount the floppy and read it? I'm just guessing here but it looks like you don't have write permissions. Edit /etc/fstab with your favorite text editor. Look for a line that says something like this:

/dev/fd0 /mnt/floppy auto rw,user,noauto 0 0

Of course yor line may look different, but make sure that there is user and rw. If they already are there, it may be the permissions of the files in the floppy. Try to erase them as root and if it works, it was probably a file permission issue.

2 and 3) You don't have to edit startup scripts on your system, just edit a file called .bashrc in your home directory. There may already be a line that says something like this:

export PATH=/a/path/:/in/your/:/file/

Just add there the directories you want. If the line isn't there, your $PATH may be set in some system-wide config file. You can still edit the file in your home directory. Just add $PATH as one of the paths, like this:

export PATH=$PATH:/your/own/:/dirs/

This adds the existing $PATH and your own directories to your new PATH.

4) Hmm. As far as I remember, te log file is /var/log/messages. Have a look at it.
 
Old 06-08-2001, 08:44 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Question 3.) What startup script do I put this path command into so that it is permanent?
If ure adding to ure personal path it should be in ~/.bash_profile, not .bashrc, system-wide paths are defined in and can be added to in /etc/profile

Quote:
Question 4.) I have managed to recompile my Kernel 2.4, however, there are several "failed" processes scrolling by as during startup. How do I log this stuff so I can troubleshoot?
The Syslog daemon will log this into /var/log/messages, it is configured in /etc/syslog.conf. look at the line where it sez "kern.(something)"(tab)/var/log/messages.
If u somehow miss errormessages u can increase the verbosity by changing the part after kern. with any of these:
Code:
# loglevel defined in <linux/kernel.h>:
# KERN_EMERG    "<0>"  /* system is unusable               */
# KERN_ALERT    "<1>"  /* action must be taken immediately */
# KERN_CRIT     "<2>"  /* critical conditions              */
# KERN_ERR      "<3>"  /* error conditions                 */
# KERN_WARNING  "<4>"  /* warning conditions               */
# KERN_NOTICE   "<5>"  /* normal but significant condition */
# KERN_INFO     "<6>"  /* informational                    */
# KERN_DEBUG    "<7>"  /* debug-level messages             */
where level 7, debug will spit out all messages, but then /var/log/messages will fill with whatever app spits out in debug messages.

HTH.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy questions..... Eux General 6 06-28-2005 08:52 AM
Some (what should be) easy questions jlacroix Mandriva 6 07-08-2004 09:47 PM
Easy Questions Darktyco Slackware 4 11-14-2003 10:14 AM
Three Easy Questions gauge73 Linux - Networking 4 07-14-2003 05:23 PM
2 easy questions I think whaase Linux - Distributions 0 11-16-2002 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration