SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
It's graphical and easy will full options to grow and shrink partitions. The only hitch might come with what file system Suse uses. I have Suse 10.0 and I know it uses ReiserFS, which doesn't resize well.
YaST2 has a partitioner program that can resize your partitions. You can use the install disk to access it.
However SYG00's idea is a good one. Delete the swap partition; create a 500M swap partition; create a new 1GB partition. Using the new 1GB partition may be a good place for either /usr/local or /tmp.
/usr/local because that would protect software you install from tarballs. Even a new install won't write anything to /usr/local. /tmp because it doesn't need to be as large as /usr or /home and having /tmp on its own partition will allow you to mount it with the noexec and nodev options.
You could determine how much space is used for these partitions presently.
du -hs /usr/local
sudo -hs /tmp
That will let you know whether there is enough room in 1GB.
Disk Drive: /dev/hda
Size: 10005037056 bytes, 10.0 GB
Heads: 240 Sectors per Track: 63 Cylinders: 1292
Name Flags Part Type FS Type [Label] Size (MB)
hda1 Primary Linux ext3 7857.57
hda2 Boot Primary Linux swap / Solaris 510.94
hda3 Primary Linux 1633.45
[Bootable] [ Delete ] [ Help ] [Maximize] [ Print ]
[ Quit ] [ Type ] [ Units ] [ Write ]
Toggle bootable flag of the current partition
However I go to "write" and yes everything
Disk /dev/hda: 10.0 GB, 10005037056 bytes
240 heads, 63 sectors/track, 1292 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 1015 7673368+ 83 Linux
/dev/hda2 Boot 1016 1081 498960 82 Linux swap / Solaris
/dev/hda3 1082 1292 1595160 83 Linux
Setting up swapspace version 1, size = 2144374 kB
swapon: /dev/hda2: Device or resource busy
Any Ideas why the swap is still 2GB and why its busy? will a restart fix it?
Not sure what steps you are using but here is a run through. It would be best to use a liveCD but since you can't.
1. deactive swap
2. delete hda2
3. recreate hda2 as an extended partition.
4. create a 512 mb logical partition (hda5) and change its partition ID to swap (82).
5. create a logical partition (hda6) using the rest of the space, partition ID should be 83.
6. save and reboot.
7. format swap ie. mkswap /dev/hda5 and activate (swapon /dev/hda5).
8. change fstab entry for swap from hda2 to hda5.
9. format hda6 as desired.
10 mount hda6 to some mount point like /mnt/newhome (be sure to create the directory).
11 copy contents of /home to newhome. i.e. cp -rp /home/ /mnt/newhome
12 Add an entry to in fstab for /home (i.e /dev/hda6 /home ext3 defaults 1 2) Replace ext3 with correct filesystem type.
13 reboot to make sure everything works. When all is working as expected you can unmount /home. In doing so you can then delete the contents of the old home which is still on the old partition and free up that space. Remount /home and you should be good to go.