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.
When it comes time to save changes to etc/fstab, I get an error in the text editor saying that I don't have the right permissions.
I've looked around for an answer but can't find any. I did manage to set a root password, but the Ubuntu GUI doesn't allow me to log in to root.
I'm assuming there's a way to start Ubuntu without the GUI and/or edit fstab using a command prompt, but if someone could tell me how to edit files using the GUI, even when they require root access, I'd really appreciate it.
OK! How new are you? This is fairly complicated stuff - not that complicated; not something that if it's explained properly you can't do; but not totally straightforward.
In Unix, a swap partition is what used to be called, in my middle age, 'virtual memory'. It is a part of the disk where, when the memory becomes overcrowded, stuff can be 'swapped' and recovered later. DesqView used to do this when the core memory of the PC was 64k (OK Smartarse, whoever you are, let's not get into a flame war about this. We're trying to help someone here).
What is your setup? Are you running Linux and Windows together? If you are, what species of Windows are you running? When you installed Linux did you create a Swap Partition (a Swap Partition in Unix has its own format)?
I'm extremely new to Linux, but I'm no stranger to PCs. I know all about virtual memory/swap files. I'm dual-booting Windows XP and Ubuntu.
Like I said, I installed Ubuntu with no swap partition, and I'd rather not do any more partitioning. Ubuntu seems to throw an error when I try playing with the partitions (at least during the install) so I needed to boot Windows and use PartitionMagic to create the Linux partition. Rather than having to make more partitions I'd rather just designate a swap file on the root partition, unless there's some reason not to.
equazcion,
The swap partition is a type 82 file system. Your / partition is probably ext3, I think type 83. I'm guessing you can't make a swap file on your root partition.
The command 'cfdisk' or the application 'gparted' may be what you need to look at.
He is creating a swap file which the system uses via losetup instead of accessing a real device. It is usually better to let Linux create the partitions. You can use Partition magic to reduce the size of the Windows partition, if you want, but I don't think that an ext3 partition created in Partition magic would have support for extended attributes, quotas or acls.
I'd have loved to let Linux do the partitioning, but like I said, it gave me an error. And not a terribly descriptive error, just one of those "there was an error" errors.
I did the partitioning via PartitionMagic, but I did have the Ubuntu installer format the root partition. I chose ext2 (even though it seems now I should've chosen ext3), because I had no idea what I was doing.
Should I reformat the partition as ext3, create another swap partition, and reinstall? Or what else would you guys recommend?
Can't find the post i read like 30 mins ago now but apparently theres no real difference in speed anymore so no real reason why a swap file is not any more or less preferable than a partition.
I create them on my old laptop and use them when recompiling openoffice or anything that required more than the 256M swap partition it normally runs with and delete them when I'm done.
Only advice is make it hidden and make sure is somewhere no users can delete (except root of course).
A newbie did his own research and mostly solved his problem himself. I would say Gratz .
Edit: I would play with the system and make any corrections you feel are needed when you need to re-install.
Last edited by Hern_28; 12-10-2008 at 11:14 PM.
Reason: Was typing this when you submitted your next.
By the way, jschiwal, in answer to your signature:
A while ago I once asked the same question about the abbreviation "no." for "number", since there seems to be no "o" in that word either. It turns out that "no." is actually short for the Latin word, "numero".
So after reading your signature, I looked up the Latin word for "distribution", and sure enough, "dispensatio" is the translation. I'd personally conjecture that "distro" grew out of a simple phonetic shortening of the word "distribution", but now you've got a viable technical explanation as well.
By the way, jschiwal, in answer to your signature:
A while ago I once asked the same question about the abbreviation "no." for "number", since there seems to be no "o" in that word either. It turns out that "no." is actually short for the Latin word, "numero".
So after reading your signature, I looked up the Latin word for "distribution", and sure enough, "dispensatio" is the translation. I'd personally conjecture that "distro" grew out of a simple phonetic shortening of the word "distribution", but now you've got a viable technical explanation as well.
Thank you. That explains why there even Russian documents will use an `No.' typographical character.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.