Help, I have installed openSUSE 11.1 into my desktop, 250GB harddisk space but it only allocates 8GB for /, so how to increase it after openSUSE installation? Even before openSUSE was installed, I recall at the installation process it doesnt allocate more than 8GB, am I correct?
Not really correct. Please open a terminal and go su, then enter:
fdisk -l
post result here
check the size of your root partition using :
df -h
if it’s really 8G, IMO, reinstalling opensuse is the easier thing to do, just make sure the root partition is bigger next time.
resizing root partition in linux is not a simple thing to do,
- you have to copy your root to a temporary place like an external storage,
- change root to that temporary storage,
- resize the existing partitions,
- and copy the root from the temporary place back to the resized root partition
my / partition is at 95%
df -h shows:
Filesystem Size Used Avail Use% Mounted on
/dev/sda4 20G 18G 1.2G 95% /
Can you please explain how to resie partition
I cannot " reinstall " as this is a production server,
can it be done on the fly, my suse is open suse10.2 on MAC PPC g5
Down time must be minimal, can I pull the drive , inser it in a PC and use gparted ?
Thanks Guys.
I can, but I won’t. Given
I cannot " reinstall " as this is a production server,
can it be done on the fly, my suse is open suse10.2 on MAC PPC g5Down time must be minimal
The first question is, do you have some disk space that you can use? If you don’t, you’ll need to get some by freeing up existing space. That’s simple, if maybe tedious, and I assume that you know how to delete stuff and i don’t need to tell you that.
Otherwise, you’ll use an existing parttiton or maybe a new disk (either would be good, but either may not be practical for you).
You want to find something that you can move from its existing position - depending on what you do with this server, you’ll probably have some particular directory structure that is farly large, and that would be a good candidate.
(This wouldn’t be a bad point at which to make sure that you have a usable backup…or two)
Format the disk space that you are about to use as an ‘overflow’, if not currently formatted. You may be going worry about which file system to use and mount options, but that is beyond the scope, blah, blah, blah, unless you come up with more info.
Copy your data. You may have to take your server out of normal operation for this, if there is a risk of the data not staying consistent throughout, because you will need a coherent set of data.
Delete original copy of data and mount the ‘new’ partition at the appropriate place in the filesystem, with appropriate entries in the fstab, and you are done.
Start worrying whether the data is going to grow again and cause you problems in the future.
mdhnews wrote:
> my / partition is at 95%
> df -h shows:
> Filesystem Size Used Avail Use% Mounted on
> /dev/sda4 20G 18G 1.2G 95% /
>
> Can you please explain how to resie partition
> I cannot " reinstall " as this is a production server,
> can it be done on the fly, my suse is open suse10.2 on MAC PPC g5
>
> Down time must be minimal, can I pull the drive , inser it in a PC and
> use gparted ?
>
> Thanks Guys.
first: i guess you probably have some monster logs in /var/log…check
and see if there are some in there that can be deleted or packed up in
a smaller (say .gz) format…then, tend to your logrotate so they
don’t get too big again…
and, you my have a bunch of old crud in /tmp that can be cleaned out
but do NOT just go and start wacking…i think (see caveat below)
this will work for you:
http://lizards.opensuse.org/2009/07/19/howto-regular-cleanup-the-tempfolders/
second, if you have existing hard drive space on another partition you
can just put (for example) /var/logs and /tmp over there…
but, i won’t say how because i’m not exactly clear on the way to do
that on a running, “production system” which brings me to; third, you
do know, don’t you that 10.2 is no longer being updated with security
patches…and has NOT been for eight months??
see: http://en.opensuse.org/SUSE_Linux_Lifetime…
–
see caveat: http://tinyurl.com/6aagco
brassy
Hi,
i think you should post all the result of
df -h
not just the root’s free space,
so that the others might be able to give more help.
For production server, I usually have a backup server.
It’s used as a replacement while doing major changes to the production server.
Thanks for all the reply guys.
- No monster logs in /var/logs , as logrotate is working correctly.
2.tmp folder has little in it. - loads of hard drive space to play with ( over 200Gb ) in other partitions /data and a new external USB 500Gb
- fdisk -l
Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0f800000
Device Boot Start End Blocks Id System
/dev/hda1 1 14593 117218241 83 Linux
There is a valid Mac label on this disk.
Unfortunately fdisk(1) cannot handle these disks.
Use either pdisk or parted to modify the partition table.
Nevertheless some advice:
1. fdisk will destroy its contents on write.
2. Be sure that this disk is NOT a still vital
part of a volume group. (Otherwise you may
erase the other disks as well, if unmirrored.)
Disk /dev/sda: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
5. df -h :
Filesystem Size Used Avail Use% Mounted on
/dev/sda4 20G 18G 1.2G 95% /
udev 2.9G 120K 2.9G 1% /dev
/dev/sda10 144G 224M 136G 1% /backup
/dev/sda9 143G 4.1G 132G 3% /data
/dev/sda8 20G 175M 19G 1% /home
/dev/sda5 9.9G 151M 9.2G 2% /tmp
/dev/sda6 20G 3.5G 16G 19% /usr
/dev/sda7 9.9G 2.4G 7.1G 25% /var
/dev/hda1 111G 12G 93G 12% /backup2
Thanks
Building 11.1 on another G5
will let you all know how it goes
On Thu, 30 Jul 2009 15:16:01 GMT, mdhnews
<mdhnews@no-mx.forums.opensuse.org> wrote:
>
>Thanks for all the reply guys.
>1. No monster logs in /var/logs , as logrotate is working correctly.
>2.tmp folder has little in it.
>3. loads of hard drive space to play with ( over 200Gb ) in other
>partitions /data and a new external USB 500Gb
>4. fdisk -l
>
>Disk /dev/hda: 120.0 GB, 120034123776 bytes
>255 heads, 63 sectors/track, 14593 cylinders
>Units = cylinders of 16065 * 512 = 8225280 bytes
>Disk identifier: 0x0f800000
>
>Device Boot Start End Blocks Id System
>/dev/hda1 1 14593 117218241 83 Linux
>
>There is a valid Mac label on this disk.
>Unfortunately fdisk(1) cannot handle these disks.
>Use either pdisk or parted to modify the partition table.
>Nevertheless some advice:
>1. fdisk will destroy its contents on write.
>2. Be sure that this disk is NOT a still vital
>part of a volume group. (Otherwise you may
>erase the other disks as well, if unmirrored.)
>
>
>Disk /dev/sda: 400.0 GB, 400088457216 bytes
>255 heads, 63 sectors/track, 48641 cylinders
>Units = cylinders of 16065 * 512 = 8225280 bytes
>
>Device Boot Start End Blocks Id System
>5. df -h :
>Filesystem Size Used Avail Use% Mounted on
>/dev/sda4 20G 18G 1.2G 95% /
>udev 2.9G 120K 2.9G 1% /dev
>/dev/sda10 144G 224M 136G 1% /backup
>/dev/sda9 143G 4.1G 132G 3% /data
>/dev/sda8 20G 175M 19G 1% /home
>/dev/sda5 9.9G 151M 9.2G 2% /tmp
>/dev/sda6 20G 3.5G 16G 19% /usr
>/dev/sda7 9.9G 2.4G 7.1G 25% /var
>/dev/hda1 111G 12G 93G 12% /backup2
>
>Thanks
Something is wrong, suse 10.2 should not use over 9 or 10 GB in “/”
with that directory / mount tree. Check for space wasters again.
JosephKK adjusted his/her AFDB on Sunday 02 Aug 2009 05:08 to write:
>>Device Boot Start End Blocks Id System
>>5. df -h :
>>Filesystem Size Used Avail Use% Mounted on
>>/dev/sda4 20G 18G 1.2G 95% /
>>udev 2.9G 120K 2.9G 1% /dev
>>/dev/sda10 144G 224M 136G 1% /backup
>>/dev/sda9 143G 4.1G 132G 3% /data
>>/dev/sda8 20G 175M 19G 1% /home
>>/dev/sda5 9.9G 151M 9.2G 2% /tmp
>>/dev/sda6 20G 3.5G 16G 19% /usr
>>/dev/sda7 9.9G 2.4G 7.1G 25% /var
>>/dev/hda1 111G 12G 93G 12% /backup2
>>
>>Thanks
>
> Something is wrong, suse 10.2 should not use over 9 or 10 GB in “/”
> with that directory / mount tree. Check for space wasters again.
Maybe a bit off target here but IIRC did the 10 series use /opt for a load
of stuff? ( or was that even earlier? )
Also have you got any old kernel modules hanging around in /libs
–
Mark
Caveat emptor
Nullus in verba
Nil illegitimi carborundum
Hi,
pls do this as root user:
cd /
du --exclude=./dev --exclude=./backup --exclude=./data --exclude=./home --exclude=./tmp --exclude=./usr --exclude=./var --exclude=./backup2 | sort -n
it will show you what is taking up your / space
HTH
Hi,
I’ve got a similar problem. My harddisk is only 60GB. I have a dual-boot system with openSUSE 11.1 and Windows XP. I want to resize the partitions to allocate more space for Linux (I’ve pretty much moved to Linux completely).
The other problem is I’ve used up 6.6 GB (93%) of my /. I’ve read that this is too large. I did check the /tmp and /var/log directories (/tmp was about 640MB and /var/log/ was about 40MB).
Here are my df -h and fdisk -l results respectively.
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 7.5G 6.6G 518M 93% /
udev 999M 104K 999M 1% /dev
/dev/sda7 11G 1.2G 8.6G 12% /home
/dev/sda1 36G 25G 12G 68% /windows/C
Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd0f4738c
Device Boot Start End Blocks Id System
/dev/sda1 1 4684 37624198+ 7 HPFS/NTFS
/dev/sda2 * 4685 7295 20972857+ f W95 Ext'd (LBA)
/dev/sda5 4685 4946 2104483+ 82 Linux swap / Solaris
/dev/sda6 4947 5936 7952143+ 83 Linux
/dev/sda7 5937 7295 10916136 83 Linux
Thanks.
ran the du , piped the results to a text file , as there is to much to show.
How do I attach a text file here?
Thanks
Hi,
it seems that file attachment is disabled in this forum,
maybe you can use pastebin.com
Just another newbie question.
I’m still baffled as to why my root directory 6G. Is it because I’ve been installing programs on root?
When I’ve been compiling programs from source I don’t specify a directory so presumably they are installed on the default directories? (perhaps /usr/bin). Would this fill up the root directory?
I remember once when I had 350 MB left on the root and tried to install a new program that was 400 MB it said that I didn’t have sufficient storage space or something, even though I had 7G on my home directory.
Thanks.
lostidentity adjusted his/her AFDB on Saturday 15 Aug 2009 16:26 to write:
>
> Just another newbie question.
>
> I’m still baffled as to why my root directory 6G. Is it because I’ve
> been installing programs on root?
>
> When I’ve been compiling programs from source I don’t specify a
> directory so presumably they are installed on the default directories?
> (perhaps /usr/bin). Would this fill up the root directory?
>
> I remember once when I had 350 MB left on the root and tried to install
> a new program that was 400 MB it said that I didn’t have sufficient
> storage space or something, even though I had 7G on my home directory.
>
> Thanks.
>
>
Most self complied programs when installed will have a specific directory
for the destination written in the config file which can be overridden with
parameters passed when you compile them, the “normal” defaults are either
/usr/bin if it is just a one off binary also it might plant a man page or it
might also have some stuff in /usr/share, however some other programs (
older ones or from other distros can put themselves in /usr/local )
There could also be some around who put themselves in /opt/ if you look kde3
and gnome put themselves there, this is slowly being phased out now IIRC and
just the odd one or 2 things still use it.
If however you are installing root/system specific files that are needed
even if he machine can only boot to say runlevel 1 where a minimal system is
brought up for maintenance or repair then these go in the actual / system,
so if you have a smallish sized drive it is best policy to have partitions
for /usr, /opt, /var, /tmp and /home on separate partitions so that the /
does not suffer from a lack of space if you install too much or something
runs amok and fills /var with humongous log files.
There are a lot more things to take into consideration if you are disk
space limited but that is a rough overview.
It is possible to install things to your /home as long as you have the
install dir set in your path, and also it is possible to have root commands
there as long as these are in the system/root path, but this is where things
start to get messy and can compromise security on systems and is not a
recommended thing to do.
If you have a permanent network and more than 1 machine in the local lan (
can also be on a remote machine over the net ) it is possible to have your
/home and other directories on other machines, now that does get fun, when
all your docs are at home on a machine and you only have a / system on your
laptop ( or even a bootable USB stick ), but this calls for a good, fast and
reliable connection
There I think I have wittered on now for long enough, I do hope you are
still awake
HTH
–
Mark
Caveat emptor
Nullus in verba
Nil illegitimi carborundum
lostidentity wrote:
> Just another newbie question.
>
> I’m still baffled as to why my root directory 6G. Is it because I’ve
> been installing programs on root?
yes, generally speaking programs installed with go into the root
directory (yes, /usr/bin, like /lib and ALL the others following / on
that partition are inside the root directory)…
in a different partition (if you wish, think of it as a different hard
drive) is /home…under /home you can have hundreds of different
users, like /home/lostidenity; /home/guest; /home/lostidentysFriend
etc etc etc
which mean, you could have a billion gigs of /home and your tiny root
would still fill up if you keep putting more programs into it…
as mentioned, there are ways to force installs to your home (easiest,
i’d guess is to read the docs with the install sources before you
compile/install)
–
goldie
Give a hacker a fish and you feed him for a day.
Teach man and you feed him for a lifetime.