|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Accessing free space on a Linux File systemHello 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@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@... _______________________________________________ Discuss mailing list Discuss@... http://lists.blu.org/mailman/listinfo/discuss |
|
|
Re: Accessing free space on a Linux File systemsgoldman wrote:
> I wish to access free space on the end of a file system. > 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... Your first two and your last two statements don't quite match up. Are you referring to available space on an existing partition, or unpartitioned space? If the space has already been partitioned, and formatted with a file system, as your first two statements suggest, then you need to resize the file system before the partitions can be adjusted. A tool like GNU Parted[1] or QtParted[2] will handle the whole process. (I believe it was recently mentioned that GNU Parted is supplied on Ubuntu live CDs. It is also distributed on its own bootable CDs, or other rescue CDs, like SystemRescueCd[3].) 1. http://www.gnu.org/software/parted/index.shtml 2. http://qtparted.sourceforge.net/ 3. http://www.sysresccd.org/ > What tools are available to find unpartitioned space and the > coordinates to create a partition after installation. My recollection is that most partitioning tools will automatically find the start and extent of unpartitioned space when you attempt to create a new partition. -Tom -- Tom Metro Venture Logic, Newton, MA, USA "Enterprise solutions through open source." Professional Profile: http://tmetro.venturelogic.com/ _______________________________________________ Discuss mailing list Discuss@... http://lists.blu.org/mailman/listinfo/discuss |
|
|
Re: Accessing free space on a Linux File systemIf it's unpartitioned space at the end of the extended partition
(partition 4) then there is a simpler answer: use fdisk to create a new partition on the extended partition. fdisk will do all the calculations for you; all you need to do is set the size you want and the partition type. If it's partitioned space on an existing partition then you need to resize that partition (which will require dismounting). Parted should be able to do that, although resizing raw partitions on a running system is a little risky. Better to use the one of the GNU Parted bootable CDs available or an Ubuntu live CD or such. In this case you tell Parted how small you want to make the partition and it will automatically calculate for you. --Rich P. _______________________________________________ Discuss mailing list Discuss@... http://lists.blu.org/mailman/listinfo/discuss |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |
