Accessing free space on a Linux File system

sgoldman sgoldman-DPNOqEs/LNQ at public.gmane.org
Tue Nov 3 09:35:10 EST 2009


Hello Blu,
    I wish to access free space on the end of a file system. There is a about 125G available. 
    I mounted the system from a install disk and the space is available.
    Working with Parted - I need START and END coordinates to partition the space.

    What tools are available to find unpartitioned space and the coordinates to create a partition after installation.

Thanks,
Stephen




[root@~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              19G  3.0G   16G  17% /
/dev/sda7              15G  165M   14G   2% /tmp
/dev/sda3              19G  173M   18G   1% /usr/local
/dev/sda5              38G  177M   36G   1% /home
/dev/sda2             171G  421M  162G   1% /var
tmpfs                  16G     0   16G   0% /dev/shm




[root at parted /dev/sda
GNU Parted 1.8.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            

Model: DELL PERC 6/i (scsi)
Disk /dev/sda: 438GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system  Flags
 1      32.3kB  21.0GB  21.0GB  primary   ext3         boot 
 2      21.0GB  210GB   189GB   primary   ext3              
 3      210GB   231GB   21.0GB  primary   ext3              
 4      231GB   438GB   208GB   extended                    
 5      231GB   273GB   41.9GB  logical   ext3              
 6      273GB   294GB   21.0GB  logical   linux-swap        
 7      294GB   309GB   15.7GB  logical   ext3              

(parted) quit                                                             
Information: Don't forget to update /etc/fstab, if necessary.             

[root@]# fdisk -l

Disk /dev/sda: 438.4 GB, 438489317376 bytes
255 heads, 63 sectors/track, 53309 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2549    20474811   83  Linux
/dev/sda2            2550       25495   184313745   83  Linux
/dev/sda3           25496       28045    20482875   83  Linux
/dev/sda4           28046       53309   202933080    5  Extended
/dev/sda5           28046       33144    40957686   83  Linux
/dev/sda6           33145       35693    20474811   82  Linux swap / Solaris
/dev/sda7           35694       37605    15358108+  83  Linux
[root@]








Stephen Goldman 
System Administrator
MIT Biology
sgoldman-3s7WtUTddSA at public.gmane.org 





More information about the Discuss mailing list