Re: UPDATE: Always falling to grub prompt (now I don't even have prompt)

2007-09-15 Thread Hans Hofker

Victor Munoz wrote:

Currently, my /etc/fstab is:

/dev/hdd2 / ext3 defaults,errors=remount-ro 0 1
/dev/hdd1 /boot ext3 defaults,errors=remount-ro 0 2
/dev/hdd3 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/hda /media/cdrom udf,iso9660 user,noauto 0 0
/dev/fda /media/floppy auto rw,user,noauto 0 0

All menu.lst entries are of the form:

root (hd1,1)
kernel /boot/vmlinuz- root=/dev/hdd2 ro
initrd /boot/initrd.img-

And device.map is, as before:

(hd0) /dev/hdc
(hd1) /dev/hdd

And I have two bootable partitions, /dev/hdc (Windows), and /dev/hdd1
(/boot partition).

I've tried several things: boot from Debian Live CD/Etch Disk 1/Gparted Live
CD, then change the order of entries in /etc/fstab,
changing the pass-number parameter in /etc/fstab (hdd1 and hdd2
had pass number 1, and I changed it to be 2 and 1, respectively, have
run update-initramfs again, but nothing. 


I understand that, now that partitions are in order, /dev/hdd2, which
is the root filesystem according to fstab, will be (hd1,1) for grub, and
that kernels should be found in (hd1,1)/boot/, thus the "kernel" line
in menu.lst should be /boot/vmlinuz, if root="(hd1,1)". Right?
  
I think the 'root' command should specify the partition where the boot 
directory is located, so it should be (hd1,0) rather than (hd1,1).
Furthermore, the kernels are not located on the hdd2-partition, so they 
are not in (hd1,1)/boot/, but they are in (hd1,0)/

So you could try to change your entries in menu.lst to:

root (hd1,0)
kernel (hd1,0)/vmlinuz- root=/dev/hdd2 ro
initrd (hd1,0)/initrd.img-

or, omitting the device-specification in the 'kernel' and 'initrd' 
command (since the device is equal to the root device):


root (hd1,0)
kernel /vmlinuz- root=/dev/hdd2 ro
initrd /initrd.img-



--
Regards,
Hans.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Can't execute PHP script

2007-09-14 Thread Hans Hofker

Randy Patterson wrote:

I installed apache like;

aptitude install apache2 php5 libapache2-mod-php5

As returned by apache2ctl, I am running;

Apache/2.2.4 (Debian) PHP/5.2.3-1+b1

  
The description for libapache2-mod-php5 states that it only works with 
the "prefork" version of apache2 (package "apache2-mpm-prefork"). 
Perhaps you chose an other version, like "apache2-mpm-itk" ?


--
Regards,
Hans.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Update-grub not listing latest kernel first

2007-09-12 Thread Hans Hofker

John Talbut wrote:
I have just done another kernel recompile and when I ran update-grub 
it listed the previous version of the kernel first (thereby making it 
the default kernel to boot).


I give my kernels a version according to the date on which I compiled 
them, i.e.:

vmlinuz-2.6.21-11sep7
vmlinuz-2.6.21-18jul7

The second of these was listed first.  Is this because update-grub 
puts the kernels in descending order of version numbers, hence 18 
comes higher up than 11, rather than, as I expected, by the date and 
time when the file was modified.


Can someone give me a definitive answer, please?
The definitive answer can be found in /usr/sbin/update-grub : the 
function CompareVersions is used for sorting the list of kernels. This 
function considers the version numbers, not the file dates.


You may consider using a different naming scheme in the future, like
vmlinuz-2.6.21-20070911
vmlinuz-2.6.21-20070718
so that the alphabetic ordering of the version numbers matches the 
temporal ordering.


--
Regards,
Hans.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: lsof -- "No such file or directory"...?

2007-07-20 Thread Hans Hofker

will trillich wrote:


# lsof -i
bash: /usr/sbin/lsof: No such file or directory

say what?

# ls -l `which lsof`
-rwxr-xr-x 1 root root 106324 2006-05-15 18:09 /usr/bin/lsof*

eh? any ideas?


Perhaps you have defined an alias for "lsof"?

--
Regards,
Hans.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: grub ignoring root=/dev/hda3 kernel option - where should I report the bug?

2006-03-28 Thread Hans Hofker

Julian Gilbey wrote:

Brief summary:
I have Debian testing installed on /dev/hda2, which is my default
startup option
I have Debian unstable installed on /dev/hda3
I have Windows installed on /dev/hda1

I am using grub, installed on the MBR of /dev/hda (and I installed it
from the testing version of grub using "grub-install hd0").

I had an older version of grub installed, and this setup worked fine.

I just upgraded my grub from the version in testing (0.97-5), while
booted into my testing partition.  But now when I try to boot, the
following happens:

(a) If I try to boot into Debian testing or Windows, all works well.
(b) If I try to boot into Debian unstable (which is on /dev/hda3), it
reads the kernel from /dev/hda3 but then uses /dev/hda2 as the
root partition, completely ignoring the root=/dev/hda3 on the
kernel command line.  (I know that it uses the right kernel,
because the kernel versions on my two partitions are not the
same as each other.)

Any suggestions what might be wrong? 

I suggest you check /etc/fstab on the hda3 partition.
Perhaps it lists /dev/hda2 as root partition?



Regards,
Hans.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: A question about logrotate

2005-08-29 Thread Hans Hofker

Thomas H. George wrote:

I ran out of space in a 9 Gbyte /var directory, most of the space 
consumed by debug, kern.log and syslog files.


...

As I noted above, the files were being rotated but not according to 
the logrotate.conf file so there must be a default somewhere.  Where?


On my system, the logfile rotation is configured in /etc/cron.daily/sysklogd
and /etc/cron.weekly/sysklogd


Regards,
Hans.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Fun with grub

2005-06-19 Thread Hans Hofker
On Sun, Jun 19, 2005 at 11:44:37AM -0400, Rob Bochan wrote:
> On Sunday 19 June 2005 10:17 am, Hans Hofker wrote:
> 
> >
> > Have you tried "cat /path/to/message"
> >
> 
> That had no effect, and I'm not sure that grub has a 'cat' command built into 
> it, as far as the menu.lst file goes. Thanks for the suggestion though.

Well, grub does have a 'cat' command (see 'info grub'), but apparently
it is only valid on the command line and in menu entries, NOT in the
global section of the menu. So, it is not what you are looking for :-(


-- 
Regards,
Hans.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Fun with grub

2005-06-19 Thread Hans Hofker
On Sat, Jun 18, 2005 at 03:55:50PM -0400, Rob Bochan wrote:
>  Grub is 
> functioning properly, but I'm missing something that I used to have in 
> lilo... specifically the
> message=/path/to/message
> that I had in my old lilo.conf file.
> 
> Is there a grub equivalent to this?
> 

Have you tried "cat /path/to/message"

-- 
Regards,
Hans.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: UDF woes

2005-05-28 Thread Hans Hofker
On Fri, May 27, 2005 at 10:58:59PM -0700, Bill Wohler wrote:
> Under Windows, I'm able to mount the CD-ROM and the Properties dialog
> reveals that the CD-ROM contains a UDF filesystem.
> 
> Mount -t auto seems to recognize the UDF filesystem too:
> 
> [EMAIL PROTECTED]:507]$ sudo mount -t auto /dev/cdrom /mnt
> mount: block device /dev/cdrom is write-protected, mounting read-only
> mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
>  missing codepage or other error
>  In some cases useful info is found in syslog - try
>  dmesg | tail  or so
> 
> [EMAIL PROTECTED]:508]$ dmesg |tail -1
> UDF-fs: No VRS found
> 
> However, as you can see, while it recognizes the filesystem type, it
> cannot mount it.
> 

Instead of mounting with "-t auto" you might want to mount with "-t
udf", in which case you can supply udf-specific options ("novrs" might
do the trick...)


-- 
Regards
Hans.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: snmpd.conf not available...?

2004-09-01 Thread Hans Hofker
On Wed, Sep 01, 2004 at 03:50:36PM +0530, Nayyar Ahmed wrote:
> 
> I have installed SNMP through following command. As i want
> to configure MRTG for my DSL router.
> 
> debian:/home/neenix/# apt-get install snmp

> but i cant find snmpd.conf in my system.

You can find /etc/snmp/snmpd.conf in the "snmpd" package (not the "snmp"
package).

-- 
Regards,
Hans.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: setting message queue size

2004-06-05 Thread Hans Hofker
On Sat, Jun 05, 2004 at 11:10:13AM -0400, Nick Smith wrote:
> Does anyone know where to set the message queue size for postfix? I know
> where to set the mailbox size and message size limit etc, but I am getting
> these error messages:
> 
> mailserver postfix/smtpd[474]: connect from murphy.debian.org[146.82.138.6]
> mailserver postfix/smtpd[474]: NOQUEUE: reject: MAIL from
> murphy.debian.org[146.82.138.6]: 452 Insufficient system storage;
> proto=ESMTP helo=
> mailserver postfix/smtpd[474]: warning: not enough free space in mail queue:
> 2762018816 bytes < 1.5*message size limit
> 

Apparently postfix wants the mail queue to be 1.5 times the max message
size. And since you have set your message size limit to...

> message_size_limit = 75

...you should have more than 11 GB of disk space available to receive a
single message. So you can either buy more diskspace, or reset your
message_size_limit to a more realistic value.

-- 
Regards
Hans.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problems remain using Java apps

2004-05-16 Thread Hans Hofker
David Baron wrote:
I now have java on path, JAVA_HOME, CLASSPATH. Problems remain.
 


Here are env entries:
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games:/usr/java/j2sdk1.4.2_04/bin
JAVA_HOME=/usr/java/j2sdk1.4.2_04/jre
CLASSPATH=/usr/java/j2sdk1.4.2_04/jre/lib/rt.jar
 

Try JAVA_HOME without the extra "/jre" at the end.
And you probably don't need a CLASSPATH variable. My java (Sun 
j2sdk1.4.2_03) works perfectly without it.

Regards,
Hans.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]