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.
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 234
Rep:
wouldnt you just create a logical or primary partition then mount it on /home? so use cfdisk to add a new partition, then mount it with
mount /dev/hda? /home
, replacing ? with whatever number the partition is. to make a permanent change you would have to edit /etc/fstab, and create a new entry for your new partition (e.g. /dev/hda3 - altho u might prefer to have a logical one) followed by its mounting point in line with the table (/home) then its filesystem and so forth until it looks like the other fstab entries. if you dont know the answer for one of the columns, just copy the settings of your /dev/hda2 partition.
That's what my fstab looks like. 1 hard drive with windows, /boot, /swap, /root (hda5) and /home(hda6).
The benefit of having a seperate /home (either on the same hdd or a different one) is that if you want to re-install either the same or a different distro, then none of your personal data in /home is lost and provided that you've installed all the same packages (for instance, with me I use opera for browsing, but I alway's have to install that seperatly - after a reinstall of whatever distro, the opera icon in the home partition doesn't work until i've reinstalled the opera as well), then everything works OK.
I did the partitioning under windows with Partition Magic 8 - though there's various ways of doing that within linux.
everything allright, when i tried to iniciate something that must use X, it tells me it cant iniciate, tells that it cant conect to the server.. thanks for the help give until now..
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 234
Rep:
while we're on the subject - what IS the difference between a primary and logical partition? i know u can only have 4 primaries and logicals start at hd?5 - but how do they relate on the disk? thanks
``Primary'' partitions are the original partitioning scheme for PC disks. However, there can only be four of them. To get past this limitation, ``extended'' and ``logical'' partitions were invented. By setting one of your primary partitions as an extended partition, you can subdivide all the space allocated to that partition into logical partitions. You can create up to 60 logical partitions per extended partition; however, you can only have one extended partition per drive.
There's plenty more info on that topic.
You pretty much always need to put the bootable sector of an installation into one of the primary partitions. Furthermore, you need to have a primary partition available in order to create further logical partitions. I don't know whether having the swap partition in a primary partition makes it faster.
Ok its all fine now, but still, there is a problem, i cant execute nothing from my /home dir, for example enemy territory, when i try to run it, it says: /bin/sh permission denied.
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 234
Rep:
well done getting it sorted - u probably have to change the permissions for /bin/sh, obviously depending on the user you are using to execute the files. maybe u could open a prompt as root and type in 'chmod 766 /bin/sh' and see if it works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.