Linux - NewbieThis 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.
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.
Hello. I'm running Ubuntu 9.04 (I envision Uncle Joey everytime I see "jackalope") on my eee pc (full install, not a eee-specific version). I've got two questions regarding partitioning.
The first is more newbish: how do I see if I erroneously set up a swap partition during the installation, and in the case that I have, what can I do (if anything) to 1) remove the partition and 2) set the system up to stop trying to write all over it?
The second is still newbish, but... well, whatever. I've got an external hard drive with some stuff that I want to keep, but I'm currently holed up in a hotel waiting for an available flight, and I'm getting the itch to explore more exciting versions of Linux... so I want to partition the hard drive (safely: without removing my movies/tv shows), and install lots more distros so I can stay up all night playing with them so I can sleep on the flight home [that I'm hopefully going to get] tomorrow. And gain knowledge of other distros (preferably less-"easy" versions).
Plus, I'm quite sure once I get to my destination, the in-laws/relatives will bore me enough to keep wanting to play with new distros hehe.
Another thing, fdisk -l doesn't seem to work...
but
fdisk -v = fdisk (util-linux-ng 2.14.2)
Thanks in advance.
Last edited by Asinine; 07-12-2009 at 03:36 PM.
Reason: typo
First I do not recommend repartitioning any hd without backing up all the data you want to save. It will be hard to give you any futhere advice with out knowing your current partitioning.
Try 'sudo fdisk -l' and see if it will not work. (without the quotes)
Last edited by Larry Webb; 07-12-2009 at 04:49 PM.
Disk /dev/sda: 4034 MB, 4034838528 bytes
255 heads, 63 sectors/track, 490 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb698b698
Device Boot Start End Blocks Id System
/dev/sda1 * 1 462 3710983+ 83 Linux
/dev/sda2 463 490 224910 5 Extended
/dev/sda5 463 490 224878+ 82 Linux swap / Solaris
I know that partitioning something is always risky. But I also know that it's possible to partition without losing all data. (Did it on my first dual boot with windows and red hat 5.2. Have no recollection of how it happened though.)
Honestly, I'd really appreciate the data on the usb hard drive, but it's all from dvds back at home. So if I actually lost the data, it just means I have nothing to watch while stateside.
So, I'm willing to chance it, if it means I'm going to retain hours of fun (as well as information and knowledge). But note I say "chance it", not "outright format the drive".
Can I get rid of that swap file safely? Or just turn it off? (Or did I miss something?) I just "swapoff" with sudo, and now it doesn't show up in swapon, but it's still there in fdisk naturally.
Last edited by Asinine; 07-12-2009 at 05:08 PM.
Reason: swapon info
The first is more newbish: how do I see if I erroneously set up a swap partition during the installation, and in the case that I have, what can I do (if anything) to 1) remove the partition and 2) set the system up to stop trying to write all over it?
If Linux detects a swap partition(s) and decides to "write all over it", you probably need that swap.
What makes you think it's "erroneous", and why do you expect to benefit from removing it ?.
For playing with partitions, I recommend the gparted liveCD.
Check the output of free -m to see whether the swap space is being used and just how much of it. As syg00 says, it would not get used if it wasn't needed. Assuming this to be true, you can still disable/remove it but only at the risk of a severe performance hit.
I've heard numerous times that swap files aren't good for the sdd memory. That's why I don't want swap files. I also upgraded the ram, so I figure that should relieve some of the pressure of having no swap file partition.
I've disabled the swap with swapoff, but the partition is still there.
If it doesn't get used it won't matter. Swapoff if only for the duration of the boot - remove the swap entry from fstab. The initscripts will complain, but that's all.
After that you can delete the "disk" partition.
Make sure you don't attempt hibernation that expects a swap though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.