Re: Bash history empty on login
On Tue, 8 Jan 2013 18:49-0500, Andre Goree wrote: > > > I think I've found the culprit, however: > > [agoree@desktop ~]$ echo $HISTFILESIZE > > 1024000 > > [agoree@desktop ~]$ echo $HISTFILE > > /home/agoree/.bash_history > > [agoree@desktop ~]$ ll /home/agoree/.bash_history > > -rw--- 1 agoree agoree12k Jan 5 14:09 /home/agoree/.bash_history > > [agoree@desktop ~]$ cat /home/agoree/.bash_history > > cat: /home/agoree/.bash_history: Input/output error > > [agoree@desktop ~]$ file /home/agoree/.bash_history > > /home/agoree/.bash_history: ERROR: cannot read > > `/home/agoree/.bash_history' (Input/output error) > > > > I suppose I'm in need of a scrub, eh? Or perhaps just a tweak to > > $HISTFILE until I have the time (or energy) to deal with the scrub -- > > probably not a good idea, but sense all my important data is kept on a > > NAS... :p > > > > > > > So, yeahhh...: > > NAMESTATE READ WRITE CKSUM > zroot ONLINE 0 0 586 > ad4s1dONLINE 0 0 0 > ad8s1dONLINE 0 0 586 I don't know if this was intentional, but your zroot pool is configured with absolutely no redundancy unless you have set the zfs copies property to a value greater than 1 on selected file systems if not all file systems. The text quoted below does not indicate any of this. You should at the very least mirror your zroot pool between no less than 2 drives/partitions, shouldn't raidz{1,2,3} with the appropriate number of drives/partitions prove tempting or possible hardwarewise. > errors: Permanent errors have been detected in the following files: > > /usr/local/share/icons/hicolor/128x128/apps/vlc.png > zroot/usr:<0x11ae0a> > zroot/usr:<0x109118> > zroot/usr:<0x11ae18> > zroot/usr:<0x11ae19> > zroot/usr:<0x11ae1d> > zroot/usr:<0x11ae1e> > zroot/usr:<0x18b61e> > zroot/usr:<0x18b622> > zroot/usr:<0x18b62e> > zroot/usr:<0x18b637> > > /usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.6/e2fsck/e2fsck.c.bak > zroot/usr:<0x18b63c> > zroot/usr:<0x18b63d> > zroot/usr:<0x18b641> > zroot/usr:<0x18b642> > zroot/usr:<0x109256> > /usr/home/agoree/.opera.bak/icons/www.google.com.idx > /usr/home/agoree/.opera.bak/download.dat > /usr/home/agoree/.cache/chromium/Default/Cache/data_1 > /usr/home/agoree/.opera.bak/typed_history.xml > /usr/home/agoree/.bash_history > zroot/usr:<0x109199> > zroot/usr:<0x11ad9b> > /usr/local/share/locale/fo/LC_MESSAGES/cairo-dock.mo > /usr/local/lib/qt4/plugins/script/libqtscript_core.so.1.0.0 > zroot/var:<0x98bf> I'm very sorry for your loss, but apparently these files aren't critical user data. > I'll probably just go ahead and reinstall -- I've been wanting to give > 9.1 a try anyways. Good luck and don't forget about redundancy! :D -- +---++ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +---++___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Bash history empty on login
> I think I've found the culprit, however: > [agoree@desktop ~]$ echo $HISTFILESIZE > 1024000 > [agoree@desktop ~]$ echo $HISTFILE > /home/agoree/.bash_history > [agoree@desktop ~]$ ll /home/agoree/.bash_history > -rw--- 1 agoree agoree12k Jan 5 14:09 /home/agoree/.bash_history > [agoree@desktop ~]$ cat /home/agoree/.bash_history > cat: /home/agoree/.bash_history: Input/output error > [agoree@desktop ~]$ file /home/agoree/.bash_history > /home/agoree/.bash_history: ERROR: cannot read > `/home/agoree/.bash_history' (Input/output error) > > I suppose I'm in need of a scrub, eh? Or perhaps just a tweak to > $HISTFILE until I have the time (or energy) to deal with the scrub -- > probably not a good idea, but sense all my important data is kept on a > NAS... :p > > So, yeahhh...: NAMESTATE READ WRITE CKSUM zroot ONLINE 0 0 586 ad4s1dONLINE 0 0 0 ad8s1dONLINE 0 0 586 errors: Permanent errors have been detected in the following files: /usr/local/share/icons/hicolor/128x128/apps/vlc.png zroot/usr:<0x11ae0a> zroot/usr:<0x109118> zroot/usr:<0x11ae18> zroot/usr:<0x11ae19> zroot/usr:<0x11ae1d> zroot/usr:<0x11ae1e> zroot/usr:<0x18b61e> zroot/usr:<0x18b622> zroot/usr:<0x18b62e> zroot/usr:<0x18b637> /usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.6/e2fsck/e2fsck.c.bak zroot/usr:<0x18b63c> zroot/usr:<0x18b63d> zroot/usr:<0x18b641> zroot/usr:<0x18b642> zroot/usr:<0x109256> /usr/home/agoree/.opera.bak/icons/www.google.com.idx /usr/home/agoree/.opera.bak/download.dat /usr/home/agoree/.cache/chromium/Default/Cache/data_1 /usr/home/agoree/.opera.bak/typed_history.xml /usr/home/agoree/.bash_history zroot/usr:<0x109199> zroot/usr:<0x11ad9b> /usr/local/share/locale/fo/LC_MESSAGES/cairo-dock.mo /usr/local/lib/qt4/plugins/script/libqtscript_core.so.1.0.0 zroot/var:<0x98bf> I'll probably just go ahead and reinstall -- I've been wanting to give 9.1 a try anyways. -- Andre Goree an...@drenet.info ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Bash history empty on login
On 01/08/13 09:11, Trond Endrestøl wrote: > On Tue, 8 Jan 2013 09:05-0500, Andre Goree wrote: > >> On Tue, 08 Jan 2013 07:59:51 -0500, Dimitri Yioulos >> wrote: >> >>> >>> Hope I'm not offending you if the following are things >>> you've tried as a matter-of-course: >>> >>> After booting up, is history started, or do you have to do >>> that manually? Have you run "set -o" to see if history is >>> enabled? If it isn't, then "set -o history". Is a "clear" >>> command being issued from anywhere upon logout or reboot? >>> >>> Just some thoughts. >>> >> >> No offense at all, thanks for your suggestions! I'm currently at work so >> I'll >> test this when I get home (this is on a desktop running 8.3-stable). I've >> never had to do anything special when using bash on FreeBSD. I'll be sure to >> check th output of "set -o" and report back here. >> >> If there's an erroneous 'clear' command somewhere, it must be on logout since >> I can easily test this problem being that I use tmux. :) I also do not have >> a .bash_logout file, if that matters. >> >> Thanks for the suggestions, I'll let you know what turns up. > > What are the permissions of ~/.bash_history? > > Usually they are set to 0600 in octal due to security concerns and > rightfully so. Could they be (re)set to 0400 or even ? > I think I've found the culprit, however: [agoree@desktop ~]$ echo $HISTFILESIZE 1024000 [agoree@desktop ~]$ echo $HISTFILE /home/agoree/.bash_history [agoree@desktop ~]$ ll /home/agoree/.bash_history -rw--- 1 agoree agoree12k Jan 5 14:09 /home/agoree/.bash_history [agoree@desktop ~]$ cat /home/agoree/.bash_history cat: /home/agoree/.bash_history: Input/output error [agoree@desktop ~]$ file /home/agoree/.bash_history /home/agoree/.bash_history: ERROR: cannot read `/home/agoree/.bash_history' (Input/output error) I suppose I'm in need of a scrub, eh? Or perhaps just a tweak to $HISTFILE until I have the time (or energy) to deal with the scrub -- probably not a good idea, but sense all my important data is kept on a NAS... :p -- Andre Goree an...@drenet.info ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Bash history empty on login
On Tue, 8 Jan 2013 09:05-0500, Andre Goree wrote: > On Tue, 08 Jan 2013 07:59:51 -0500, Dimitri Yioulos > wrote: > > > > > Hope I'm not offending you if the following are things > > you've tried as a matter-of-course: > > > > After booting up, is history started, or do you have to do > > that manually? Have you run "set -o" to see if history is > > enabled? If it isn't, then "set -o history". Is a "clear" > > command being issued from anywhere upon logout or reboot? > > > > Just some thoughts. > > > > No offense at all, thanks for your suggestions! I'm currently at work so I'll > test this when I get home (this is on a desktop running 8.3-stable). I've > never had to do anything special when using bash on FreeBSD. I'll be sure to > check th output of "set -o" and report back here. > > If there's an erroneous 'clear' command somewhere, it must be on logout since > I can easily test this problem being that I use tmux. :) I also do not have > a .bash_logout file, if that matters. > > Thanks for the suggestions, I'll let you know what turns up. What are the permissions of ~/.bash_history? Usually they are set to 0600 in octal due to security concerns and rightfully so. Could they be (re)set to 0400 or even ? -- +---++ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +---++___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Bash history empty on login
On Tue, 08 Jan 2013 07:59:51 -0500, Dimitri Yioulos wrote: Hope I'm not offending you if the following are things you've tried as a matter-of-course: After booting up, is history started, or do you have to do that manually? Have you run "set -o" to see if history is enabled? If it isn't, then "set -o history". Is a "clear" command being issued from anywhere upon logout or reboot? Just some thoughts. No offense at all, thanks for your suggestions! I'm currently at work so I'll test this when I get home (this is on a desktop running 8.3-stable). I've never had to do anything special when using bash on FreeBSD. I'll be sure to check th output of "set -o" and report back here. If there's an erroneous 'clear' command somewhere, it must be on logout since I can easily test this problem being that I use tmux. :) I also do not have a .bash_logout file, if that matters. Thanks for the suggestions, I'll let you know what turns up. -- Andre Goree an...@drenet.info ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Bash history empty on login
On Monday 07 January 2013 7:01:09 pm Andre Goree wrote: > I'm not sure what's going on, as I've never had an issue > like this in my years of using FreeBSD nor Linux. Each > time I login, my history file is empty! I'm not sure > what could be causing this, but below [1] is my .bashrc. > I had ". ~/.bashrc" in ~/.profile, but I removed it while > I'm trying to troubleshoot this issue. Does anyone have > an idea or a direction to point me in? Thanks in > advance. > > [1]# > # ~/.bashrc > # > > # If not running interactively, don't do anything > [[ $- != *i* ]] && return > > #PS1='[\u@\h \W]\$ ' > > alias ls='ls -G' > alias ll='ls -lAhp' > alias umount='sudo umount' > alias grep='grep --color' > alias nmap='sudo nmap' > alias updatedb='sudo updatedb' > alias pkg_add='sudo pkg_add' > alias pkg_delete='sudo pkg_delete' > alias top='top -aPStzj -s 1' > alias portinstall='sudo portinstall' > alias updatedb='sudo updatedb' > > PS1='\[\e[1;37m\][\u@\h \W]\$\[\e[0m\] ' > > export PATH=$PATH:/home/agoree/bin:/usr/local/kde4/bin/ > > #BASH history > export HISTTIMEFORMAT="%h/%d - %H:%M:%S " > export HISTFILESIZE=10 > #export VBOX_USB=usbfs > > -- Hope I'm not offending you if the following are things you've tried as a matter-of-course: After booting up, is history started, or do you have to do that manually? Have you run "set -o" to see if history is enabled? If it isn't, then "set -o history". Is a "clear" command being issued from anywhere upon logout or reboot? Just some thoughts. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Bash history empty on login
I'm not sure what's going on, as I've never had an issue like this in my years of using FreeBSD nor Linux. Each time I login, my history file is empty! I'm not sure what could be causing this, but below [1] is my .bashrc. I had ". ~/.bashrc" in ~/.profile, but I removed it while I'm trying to troubleshoot this issue. Does anyone have an idea or a direction to point me in? Thanks in advance. [1]# # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return #PS1='[\u@\h \W]\$ ' alias ls='ls -G' alias ll='ls -lAhp' alias umount='sudo umount' alias grep='grep --color' alias nmap='sudo nmap' alias updatedb='sudo updatedb' alias pkg_add='sudo pkg_add' alias pkg_delete='sudo pkg_delete' alias top='top -aPStzj -s 1' alias portinstall='sudo portinstall' alias updatedb='sudo updatedb' PS1='\[\e[1;37m\][\u@\h \W]\$\[\e[0m\] ' export PATH=$PATH:/home/agoree/bin:/usr/local/kde4/bin/ #BASH history export HISTTIMEFORMAT="%h/%d - %H:%M:%S " export HISTFILESIZE=10 #export VBOX_USB=usbfs -- Using Opera's mail client: http://www.opera.com/mail/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"