SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi i have just noticed that i have done a big error when partitioning my hard drive , i have a swap space of 11 GB wich is really a lot and stupid , the thing is i don t want to reformat my hard drive just because of this , i ve heard aboput a program called parted that will let me resize my hard drive but i want to know how safe is it and did someone tried doing this ? thanks for the help
thanks for you fast reply the outout was :
Disk /dev/hda: 30.7 GB, 30735581184 bytes
255 heads, 63 sectors/track, 3736 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 1346 10811713+ 82 Linux swap
/dev/hda2 1347 3736 19197675 83 Linux
You could delete /dev/hda1 then create 2 partitions in the empty space. One for swap and another for data.
One warning though: after that, your / (root) partition will be renammed to /dev/hda3 so you must edit /etc/fstab and change /dev/hda2 to /dev/hda3 for /, if you don't make the change, the system won't boot.
[edit]
To make things clear :
before :
/dev/hda1 swap
/dev/hda2 /
after you create the 2 partitions :
/dev/hda1 swap (or data)
/dev/hda2 data (or swap)
/dev/hda3 /
ok thanks for the info will do this but i don t want to restart my pc because i m running a server , so i ll wait for the right moment thanks again i really apreciate your help
ok i have just did what u suggested and it worked charmly , so thx , but the thing is when i type free :
free
total used free shared buffers cached
Mem: 515444 257452 257992 0 27204 135804
-/+ buffers/cache: 94444 421000
Swap: 0 0 0
my hard disk looks like this :
Disk /dev/hda: 30.7 GB, 30735581184 bytes
255 heads, 63 sectors/track, 3736 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 232 1863508+ 82 Linux swap
/dev/hda2 1347 3736 19197675 83 Linux
/dev/hda3 233 1346 8948205 83 Linux
if anyone will have the same problem what i did to fix this was as root i typed this command:
mkswap /dev/hda1 wich will make swap
and then :
swapon -a
the free command gave this:
total used free shared buffers cached
Mem: 515444 171068 344376 0 7464 61420
-/+ buffers/cache: 102184 413260
Swap: 1863500 0 1863500
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.