setup_storage error

Michael Tautschnig mt at debian.org
Tue Feb 8 00:49:57 CET 2011


Hi again,

[...]

I suppose you have figured out that already anyway, but it seems that there are
non-printable characters in your config file; I have no idea what a proper error
message should look like, but right now setup-storage from experimental says:


       ERROR (line 2): Invalid line: Was expecting '\n' but found "primary
               /boot    200               
               ext3    rw " instead
Syntax error

You should remove all the white space and type the space key again; as
indication of the error you may see the strange line break after "200", but for
a more proper error detection in this case I'm using this script:

#!/usr/bin/perl -w

my $lc = 0;

while(<>) {
  chomp;
  $lc++;
  my $content = $_; 
  my $length = length($content);

  for( my $i = 0; $i < $length; $i++ ) { 
    (ord(substr($content, $i, 1)) > 127) and die 
      "Invalid char near line $lc char $i: $content\n";
  }
}

exit 0;

Hope this helps,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20110207/a6cab69c/attachment.bin>


More information about the linux-fai mailing list