[Gllug] Re: Upgrade to SuSe 9.1?
Stuart Sears
stuart at sjsears.com
Tue Sep 21 08:58:54 UTC 2004
On Sunday 19 Sep 2004 20:56, Andrew Scott wrote:
> Stuart,
>
> Thanks for the reply, and sorry for the munged formatting, but I take
> the digest to preserve my sanity.
>
> The /home partition contains the /home filesystem ;) Seriously, here is
> the output of df for your edification:
okay, okay :-) I was only pointing out that filesystems and partitions are not
always the same thing...
>
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/hdc1 6047220 514172 5225864 9% /
> /dev/hdc8 24599996 2306836 22293160 10% /home
> /dev/hdc6 4031152 2819616 1006764 74% /usr
> /dev/hdc7 4031152 385680 3440700 11% /var
how about fdisk -l /dev/hdc?
(so that I can see where partitions start and end)
> I could probably move a few blocks from /home to /usr ;) Is parted a
> Linux utility, or something DOS? Where can it be found?
gnu parted is a linux utility and ships with most distros, I believe.
It's certainly in Red Hat, Fedora, Knoppix and probably SuSE as well.
(although I haven't checked this).
It even has a groovy (sorry) frontend called qtparted
It does have limitations, however - while it can move and resize partitions
(and their filesystems) it will not change their place in the partition table
- so '/dev/hda8 remains /dev/hda8, even if you move it to _before_ /dev/hda7
have you tried to run (as root)
parted /dev/hdc
it should give similar output to:
[root at laptop root]# parted /dev/hda
GNU Parted 1.6.9
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc.
This program is free software, covered by the GNU General Public License.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
Using /dev/hda
Information: The operating system thinks the geometry on /dev/hda is
4864/255/63. Therefore, cylinder 1024 ends at 8032.499M.
(parted)
#-----
to see your available options type 'help'
#-----
(parted) help
check MINOR do a simple check on the filesystem
cp [FROM-DEVICE] FROM-MINOR TO-MINOR copy filesystem to another
partition
help [COMMAND] prints general help, or help on COMMAND
mklabel LABEL-TYPE create a new disklabel (partition table)
mkfs MINOR FS-TYPE make a filesystem FS-TYPE on partititon MINOR
mkpart PART-TYPE [FS-TYPE] START END make a partition
mkpartfs PART-TYPE FS-TYPE START END make a partition with a filesystem
move MINOR START END move partition MINOR
name MINOR NAME name partition MINOR NAME
print [MINOR] display the partition table, or a partition
quit exit program
rescue START END rescue a lost partition near START and END
resize MINOR START END resize filesystem on partition MINOR
rm MINOR delete partition MINOR
select DEVICE choose the device to edit
set MINOR FLAG STATE change a flag on partition MINOR
(parted)
MINOR in your case means 1-8 (for /dev/hdc1-8)
have a go and see what you can do...
HTH
Stuart
--
Stuart Sears RHCE, RHCX
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list