[parted-devel] parted failed to increase ext3 partition

Andreas Hirczy ahi at itp.tugraz.at
Sun Aug 19 15:19:11 UTC 2007


Hi!

  I already entered this in the bug tracking, but it never showed on
  bug-parted at gnu.org; cant check in bug tracking system since all interesting
  links from <http://parted.alioth.debian.org/cgi-bin/trac.cgi/report> lead
  to "Trac detected an internal error:"

I tried to increase an ext3 partition from 1583GB/3091307625s to nearly 2
TBytes and failed. Tried with parted version 1.7.1 (Debian stable),
1.8.7.git.2007.07.30 (Backport from Debian unstable) and 1.8.8 (compiled from
last tar.bz2).

The file system is pretty full (~85 %) and is hosted on a 3Ware Raid
controller; all disks are reported as fully correct.

Here is a transcript of my actions:

####################################
root at faepsv04:~# parted /dev/sda 
GNU Parted 1.8.7
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s print                                                     
Model: AMCC 9500S-12 DISK (scsi)
Disk /dev/sda: 3906140160s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start      End          Size         Type     File system  Flags
 1      63s        16787924s    16787862s    primary  ext3         boot 
 2      16787925s  25189919s    8401995s     primary  linux-swap        
 3      25189920s  33591914s    8401995s     primary  ext3              
 4      33591915s  3124899539s  3091307625s  primary  ext3              


(parted) resize 4 33591915s 3906140160s                                   
Error: The location 3906140160s is outside of the device /dev/sda.        

(parted) resize 4 33591915s 3906140000s                                   
Warning: A resize operation on this file system will use EXPERIMENTAL code
that MAY CORRUPT it (although no one has reported any such damage yet).
You should at least backup your data first, and run 'e2fsck -f' afterwards.
OK/Cancel? OK                                                             

(parted) print                                                            
Model: AMCC 9500S-12 DISK (scsi)
Disk /dev/sda: 3906140160s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start      End          Size         Type     File system  Flags
 1      63s        16787924s    16787862s    primary  ext3         boot 
 2      16787925s  25189919s    8401995s     primary  linux-swap        
 3      25189920s  33591914s    8401995s     primary  ext3              
 4      33591915s  3124899539s  3091307625s  primary  ext3              

####################################

No error message, but the size of partition 4 did not change.

Thanks,
Andreas
-- 
Andreas Hirczy <ahi at itp.tugraz.at>                   http://itp.tugraz.at/~ahi/
Graz University of Technology                          phone: +43/316/873-81 90
Institute of Theoretical and Computational Physics       fax: +43/316/873-86 78
Petersgasse 16, A-8010 Graz                           mobile: +43/664/859 23 57



More information about the parted-devel mailing list