Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
i can't really tell if you are talking about a swap file or a swap partition.
parted will let you change partition sizes, and add partitions, but
you'll have to make changes to fstab yourself.
if you're talking about a swap file, you can swapoff <filename>,
then delete the file. then you can create a new swapfile.
if you want to make one of 200 megs, then
dd if=/dev/zero of=swapfile.name bs=1M count=200
put it whereever you wish.
mkswap swapfile.name
swapon swapfile.name
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
that dd command is something to run from the command line.
it just creates a 200 meg empty file that you can format as swap
and then mount as swap.
if your swap was created by an installer then it is most likely a swap
partition.
you should substitute the full path of where you want the file to be if you
make one. the of=/full/path/to/file.name of the dd command determines
where the file is written and what it's name is.
Ok, dd is to convert and copy a file. It started to make sense now. it is very much like creating a partition and formatting it with zeros.
I'm not really quite familiar with mount and how it work with directories. Is there a good tutorial for that or if you can explain to me how UNIX handle that?
I mean you can mount a partition as subdirectory or have many subdirectories under a single partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.