Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-21-2003, 09:48 AM   #1
Registered: Apr 2003
Location: Milan
Distribution: Slackware 10 / FreeBSD 5.3
Posts: 175

Rep: Reputation: 32
2Newb quests.... bash - cd-rw

Hi!!I got this two problems using my pc:

1- For my bash prompt I set and export the PS1 variable in /etc/profile and in text mode all works as I want! When I startx it doesnt't works and the prompt return the default bash prompt!! Typing echo $PS1 in fact return \s-\v\$
Seems that PS1 variable is overwrited by other config file when X starts!!!Anyone knows about??

2- I've mounted my cd-rw passing with lilo the parameter hdc=ide-scsi (loaded and used) and linking /dev/cdrom to scd0!!In fstab is
mounted as:

/dev/scd0 /mnt/cdrom iso9660 noauto 0 0

and all works well with data cd...until I mount (with mount /mnt/cdrom/) a music cd!!!For example an original cd of Blind Guardian!!!
mount cmd returns:

mount: block device /dev/scd0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
or too many mounted file systems

I need to read the music cd too!!!!!

Tnx to all!!!
Old 05-21-2003, 11:54 AM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Audio CD's are addressed quite often on here, to cut to the chase:
you don't mount an audioCD, you simply play it. Do a search for more info on how.

As for your bash problem, Which term are you using?

Old 05-21-2003, 04:37 PM   #3
Registered: Apr 2003
Location: Milan
Distribution: Slackware 10 / FreeBSD 5.3
Posts: 175

Original Poster
Rep: Reputation: 32
Ok!! tnx for the cd-rw trick!!!!

For the shell I use xterm!!

[always&only on dial-up]
Old 05-21-2003, 05:30 PM   #4
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
From "man bash"
       When  an  interactive  shell  that is not a login shell is
       started, bash reads and executes commands from  ~/.bashrc,
       if  that  file exists.  This may be inhibited by using the
       --norc option.  The --rcfile file option will  force  bash
       to   read  and  execute  commands  from  file  instead  of
Usually your terminals in X aren't login-shells.
Thus you have at least two ways of dealing with
your issue:
1.) create a ~/.bashrc that exports the PS1 as
it is in your profile...
2.) start your xterm with "xterm +ls" which makes
it a login-shell

Old 05-22-2003, 03:26 AM   #5
Registered: Apr 2003
Location: Milan
Distribution: Slackware 10 / FreeBSD 5.3
Posts: 175

Original Poster
Rep: Reputation: 32
Tnx VM!!I was searching a way to set the bash prompt far all the user without use .bashrc!!profile is a global file!!I will use yr tricks!!! tnx VVM!!



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
$LINENO can't be modified in bash 3.0, while it can be in bash 2.05b Darwish Linux - Software 1 11-07-2005 02:57 PM
bash + html + javascript or just bash ? rblampain Programming 4 12-01-2004 07:53 AM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 06:42 PM
Bash CrazyEye Linux - Newbie 6 04-17-2004 10:22 AM
Bash? TheCyberDude Linux - Newbie 3 01-30-2002 02:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration