<br><br><div class="gmail_quote">On Thu, Aug 12, 2010 at 6:25 PM, David Véjar <span dir="ltr"><<a href="mailto:dvejar@ferreteriasantiago.cl">dvejar@ferreteriasantiago.cl</a>></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;">
cuak<br></blockquote><div><br><br>?<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
-----Mensaje original-----<br>
De: <a href="mailto:centos-bounces@centos.org">centos-bounces@centos.org</a> [mailto:<a href="mailto:centos-bounces@centos.org">centos-bounces@centos.org</a>] En nombre<br>
de John R Pierce<br>
Enviado el: jueves, 12 de agosto de 2010 18:22<br>
Para: CentOS mailing list<br>
Asunto: Re: [CentOS] Problem resizing partition of nfs volume<br>
<div><div></div><div class="h5"><br>
  On 08/12/10 2:56 PM, Dan Yamins wrote:<br>
> Hi:<br>
><br>
> I have an NFS volume that I'm trying to resize a partition on.<br>
><br>
> Something about the fdisk process is corrupting something on the drive<br>
><br>
> Before running fdisk, I can mount the volume find:<br>
><br>
> $ mount /dev/sdo1 /home<br>
><br>
> ... and the volume is mounted fine.<br>
><br>
> And,<br>
> $ e2fsck -f /dev/sdo1<br>
> /dev/sdo1: clean, ...<br>
><br>
><br>
> But then I run fdisk to rewrite the partition table of this drive, to<br>
> expand the /dev/sdo1 partition w/o losing data:<br>
><br>
> $ fdisk /dev/sdo<br>
> # Type 'd' to delete the primary partition<br>
> # Type 'n' for new partition<br>
> # Type 'p' for primary<br>
> # Type '1' for 1st<br>
> # Type Enter for 1st cylinder<br>
> # Type Enter for last cylinder (full disk)<br>
> # Type 'w' to finish<br>
><br>
> Calling ioctl() ...<br>
> Syncing disks ...<br>
><br>
> But then something has gone wrong.<br>
><br>
> $ e2fsck -f /dev/sdo1<br>
> e2fsck 1.39 (29-May-2006)<br>
> Couldn't find ext2 superblock, trying backup blocks...<br>
> e2fsck: Bad magic number in super-block while trying to open /dev/sdm1 ...<br>
><br>
><br>
> And I can't mount the volume any more:<br>
> $ mount /dev/sdo1 /home<br>
> mount: you must specify the filesystem type<br>
><br>
> What am I doing wrong? Am I missing a step of the process?<br>
<br>
yeah, you deleted your file system, then created a new empty partition.<br>
<br>
instead, you should have used parted(8) or similar to expand the<br>
partition, then used resize2fs(8) to expand the file system on this<br>
partition to its new size.<br>
<br>
me, I'd strongly suggest doing a full backup of the partition first with<br>
dump(8)<br>
<br>
<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div><br>