[sf-lug] Partition resizing problem

jim jim at well.com
Mon Mar 22 09:11:37 PDT 2010

   if this were my box (assuming there wasn't a lot of 
customization in /etc/ or other system directories), 
i'd copy off the entire /etc/ tree and all of the 
/home/ tree and verify that i can restore. 
   then i'd wipe the disk and repartition so's to have 
sda1 at maybe 8GB for / , 
sda2 at about 1 GB for /var/ , 
sda3 for 0.5GB swap, 
and the rest of the disk (sda4) for /home/ . 
   the reinstall should set the filesystem appropriately 
for the storage area (8GB). i'd try to verify this as 
well as ensure that the partitioning-filesystem phase 
mapped out bad blocks. 
   i'd then reinstall and carefully restore any /etc/ 
customizations and finally copy back my /home/ data. 
   then i'd go do something fun or relaxing or take a 
chill pill. 
   then i'd reboot and face the music. 

   i am, of course, eager to read any criticisms, jeers, 
or suggestions. 

   there are those who like LVM. i, myself, have some 
reservations about LVM, mainly to do with anxieties 
about restoring data if something happens to corrupt 
the LVM system itself. 



# man mkfs 
# man badblocks 
# man tune2fs 

On Fri, 2010-03-19 at 14:40 -0700, Hayden Muhl wrote:
> I've got Ubuntu 9.04 installed on /dev/sda1.  When I 
> originally partitioned the drive I didn't make the 
> partition large enough (~4 GB).  

> On the advice of someone else, I used gparted to expand 
> the partition (now ~8 GB).  The problem I'm having is 
> that the file system seems to think it's still on a 4 GB 
> partition and still won't let me store more files.
> Here's some relevant output.  Pay attention to sda1.
> > df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda1             3.8G  3.6G     0 100% /
> tmpfs                 249M     0  249M   0% /lib/init/rw
> varrun                249M  104K  249M   1% /var/run
> varlock               249M     0  249M   0% /var/lock
> udev                  249M  164K  249M   1% /dev
> tmpfs                 249M   84K  249M   1% /dev/shm
> lrm                   249M  2.2M  247M   1% /lib/modules/2.6.28-17-generic/volatile
> /dev/sdb2             193G  5.6G  177G   4% /home
> overflow              1.0M   12K 1012K   2% /tmp
> /dev/sdc1             488M  224M  265M  46% /media/disk
> (parted) print                                                            
> Model: ATA SAMSUNG SP4002H (scsi)
> Disk /dev/sda: 40.1GB
> Sector size (logical/physical): 512B/512B
> Partition Table: msdos
> Number  Start   End     Size    Type     File system  Flags
>  1      32.3kB  8225MB  8225MB  primary  ext2         boot 
>  4      8225MB  39.5GB  31.3GB  primary  ext2              
>  3      39.5GB  40.1GB  576MB   primary  linux-swap
> Any hints on what I need to do to get the filesystem on sda1 to use the full 8 GB?
> - Hayden
> _______________________________________________
> sf-lug mailing list
> sf-lug at linuxmafia.com
> http://linuxmafia.com/mailman/listinfo/sf-lug
> Information about SF-LUG is at http://www.sf-lug.org/

More information about the sf-lug mailing list