Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
02-15-2005, 12:49 AM
|
#1
|
Member
Registered: Feb 2005
Location: Mexico
Distribution: Gentoo - kernel 4.1.5
Posts: 186
Rep:
|
how do i access my swap partition?, slackware 10.0
I remember i formatted with cfdisk and i created a primary partition with has the boot and everything, about 2.6 gigs. and the rest 1.4 gigs are missing!
i have hd1 as root
and hd5 as swap.
but, i have not the least clue of how to access all that free space.
do i run cfdisk and let hd1 become 1 with hd5, or what the heck?
im really lost, and that amount of disk space is very needed, i only got a 4 gig drive.
please help.
|
|
|
02-15-2005, 01:20 AM
|
#2
|
Member
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541
Rep:
|
if I understand u correct ur primary partition includes the filesystem ~ 2.6GB
ur swap-partition (extended) is 1.4GB ??
..if u use a swap-partition u canīt access/"use" it from ur system!...itīs for swapping
|
|
|
02-15-2005, 01:35 AM
|
#3
|
Member
Registered: Feb 2005
Location: Mexico
Distribution: Gentoo - kernel 4.1.5
Posts: 186
Original Poster
Rep:
|
errrrrrrrrrrrr. i feel kinda dumb. i really didn't know what a swap was for. it just sounded kinda "linux" in my newbie state of mind
what should i do? i want my 1.4 gigs
|
|
|
02-15-2005, 01:56 AM
|
#4
|
Member
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541
Rep:
|
remove the swap-partition. if u have enough ram there should be no prob.
otherwise ur sys-performance slows down and ur hdd access increases
|
|
|
02-15-2005, 01:58 AM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,237
|
Such a small disk implies a small system - how much memory do you have ?.
I'm sure you could reduce the swap size and use the excess space as you wish.
Linux will run without a swap. Don't take this as an invitation to do so.
But you can for a short while to resize the swap partition from a rescue disk.
Pretty easy to do, but as I've never used Slack, others more knowledgable will have to explain how in your case.
|
|
|
02-15-2005, 07:50 AM
|
#6
|
LQ Newbie
Registered: Nov 2003
Posts: 5
Rep:
|
The easiest way to fix your swap problem is to become root and use you favorite editor to comment out the swap line in your /etc/fstab file with a # mark this will ensure when you reboot that swap dose'nt mount.
Example
#/dev/hda5 none swap sw
After you reboot use cfdisk to delete the old swap partition. You will probably want to create a new but smaller swap partition. Usually a good rule of thumb is to keep swap space double the amount of ram you have. 128mb ram = 256mb swap space. Use whatever space is left over to create your new partition don't worry about mounting the partitions yet. Save changes and exit cfdisk. It is a good idea to reboot after creating new partitions.
After you reboot issue the command cat /etc/fstab output example below.
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdb /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
And issue the command fdisk -l make sure you are root.
Device Boot Start End Blocks Id System
/dev/hda1 * 1 115287 58104616+ 83 Linux
/dev/hda2 115288 116280 500472 f W95 Ext'd (LBA)
/dev/hda5 115288 116280 500440+ 82 Linux swap
The reason you need the output from the command is to compare the two. Any entries that are not in /etc/fstab that show up after fdisk -l command will need to be added to etc fstab. Your swap space will be easy just uncomment your swap line and insert the new /dev/name that applies.
The next decision will be to decide where you want to mount your freed up partition it will be the only device name not present in /etc/fstab. Create a new folder wherever you want you want to mount your new partition.
Example mkdir /storage
Then add a line to /etc/fstab to match.
Example
/dev/? /storage ext3 defaults 0 0
After this is complete you must format the partitions
Swap partition
mkswap /dev/?
Storage partition
mke2fs -j /dev/?
Activate partitions.
swapon
mount /storage
Or just reboot and partitons will activate automatically.
|
|
|
All times are GMT -5. The time now is 02:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|