Re: Problem resizing partition of nfs volume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



  On 08/12/10 2:56 PM, Dan Yamins wrote:
> Hi:
>
> I have an NFS volume that I'm trying to resize a partition on.
>
> Something about the fdisk process is corrupting something on the drive
>
> Before running fdisk, I can mount the volume find:
>
> $ mount /dev/sdo1 /home
>
> ... and the volume is mounted fine.
>
> And,
> $ e2fsck -f /dev/sdo1
> /dev/sdo1: clean, ...
>
>
> But then I run fdisk to rewrite the partition table of this drive, to 
> expand the /dev/sdo1 partition w/o losing data:
>
> $ fdisk /dev/sdo
> # Type 'd' to delete the primary partition
> # Type 'n' for new partition
> # Type 'p' for primary
> # Type '1' for 1st
> # Type Enter for 1st cylinder
> # Type Enter for last cylinder (full disk)
> # Type 'w' to finish
>
> Calling ioctl() ...
> Syncing disks ...
>
> But then something has gone wrong.
>
> $ e2fsck -f /dev/sdo1
> e2fsck 1.39 (29-May-2006)
> Couldn't find ext2 superblock, trying backup blocks...
> e2fsck: Bad magic number in super-block while trying to open /dev/sdm1 ...
>
>
> And I can't mount the volume any more:
> $ mount /dev/sdo1 /home
> mount: you must specify the filesystem type
>
> What am I doing wrong? Am I missing a step of the process?

yeah, you deleted your file system, then created a new empty partition.

instead, you should have used parted(8) or similar to expand the 
partition, then used resize2fs(8) to expand the file system on this 
partition to its new size.

me, I'd strongly suggest doing a full backup of the partition first with 
dump(8)


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux