<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
e2fsck should be run on the partition and not the disk.<br>
<br>
So<br>
<br>
sudo e2fsck /dev/sdz1<br>
<br>
should work.&nbsp; BTW, if you put a $ in your sample command lines, I think
you are running it as non-root user so I always think you need a sudo.&nbsp;
If you are running them as root, I would expect a #.<br>
<br>
Also, I am very confused why the error message says anything about
/dev/sdo, if the disk you ran it on was sdz.<br>
<br>
I am having some of the same problems you are, so there is something
strange going on and I don't know what yet.&nbsp; I must have never resized
a starcluster ebs volume.&nbsp; I guess it was something else.&nbsp; I know I
have resized root ebs volumes according to the alestic instructions but
never anything with a partition in it ... I guess.&nbsp;&nbsp; I am working on
building a new version of parted to see if that helps things any.<br>
<br>
Austin<br>
<br>
<br>
<br>
<br>
On 08/12/2010 08:01 PM, Dan Yamins wrote:
<blockquote
 cite="mid:AANLkTim0e+6S3Rmq3UXYCkgvi=uF2DPcUYN6QnQ7SQ5=@mail.gmail.com"
 type="cite">Let me add one more thing to this thread:<br>
  <br>
Even on ubuntu, even with my original volume, you can't do "e2fsck" of
the "device" , e.g. <br>
  <br>
$ e2fsck /dev/sdz<br>
Couldn't find ext2 superblock, trying backup blocks...<br>
e2fsck: Bad magic number in super-block while trying to open /dev/sdo<br>
...<br>
  <br>
Is that to be expected?&nbsp; In a number of tutorials on resizing EBS
volumes, i have seen this done with the devices itself.&nbsp; Is the reason
this is failing because its a partitioned drive?&nbsp; <br>
  <br>
  <br>
  <br>
  <div class="gmail_quote">On Thu, Aug 12, 2010 at 6:43 PM, Dan Yamins <span
 dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:dyamins@gmail.com">dyamins@gmail.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div class="im"><br>
    <div class="gmail_quote">
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <div text="#000000" bgcolor="#ffffff">
      <div>
      <div>
      <blockquote type="cite">
        <div class="gmail_quote">
        <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
          <div text="#000000" bgcolor="#ffffff">
          <div>
          <div>
          <blockquote type="cite">
            <div class="gmail_quote">
            <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
              <div text="#000000" bgcolor="#ffffff">Do you have a
snapshot?&nbsp;
I
have used parted and e2resizefs to expand an
ext3 filesystem without trouble.<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            </div>
          </blockquote>
          </div>
          </div>
          </div>
        </blockquote>
        </div>
      </blockquote>
      </div>
      </div>
      </div>
    </blockquote>
    </div>
    <br>
    <br>
    </div>
    <div class="im">So I'm trying parted on a new, clean volume created
from the snapshot, attached to /dev/sdm&nbsp; As I explained before, I can't
do<br>
    <br>
$ parted /dev/sdm<br>
    </div>
    <div class="im">[root@domU-12-31-39-0E-B2-61 ~]# parted /dev/sdm<br>
Error: Error initialising SCSI device /dev/sdm - Invalid argument <br>
    <br>
    </div>
AUstin, when you did this did you get that same error?&nbsp; <br>
    <div class="im"><br>
    <br>
I <i>CAN</i> do parted on the path:<br>
    <br>
    </div>
    <div class="im">$ parted /dev/sdm1<br>
GNU Parted 1.8.1<br>
Using /dev/sdm1<br>
Welcome to GNU Parted! Type 'help' to view a list of commands.<br>
    <br>
    </div>
    <div>
    <div class="h5">But then i get this error:<br>
    <br>
(parted) resize 1 0 500GB<br>
Error: The location 500GB is outside of the device /dev/sdo1.<br>
    <br>
Which is course is true ...<br>
    <br>
(parted)
print&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
Disk /dev/sdm1: 21.5GB<br>
Sector size (logical/physical): 512B/512B<br>
Partition Table: loop<br>
    <br>
Number&nbsp; Start&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp;&nbsp;&nbsp; File system&nbsp; Flags<br>
&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.00kB&nbsp; 21.5GB&nbsp; 21.5GB&nbsp; ext3&nbsp;&nbsp;&nbsp;&nbsp; <br>
    <br>
    <br>
So I'm not sure where to go from here... <br>
    <br>
    </div>
    </div>
    <font color="#888888">Dan<br>
    <br>
    </font></blockquote>
  </div>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Starcluster mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Starcluster@mit.edu">Starcluster@mit.edu</a>
<a class="moz-txt-link-freetext" href="http://mailman.mit.edu/mailman/listinfo/starcluster">http://mailman.mit.edu/mailman/listinfo/starcluster</a>
  </pre>
</blockquote>
<br>
</body>
</html>