SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
hi, in the cfdisk window i deleted all of my windows partitons, and created three partitions:
100 MB, 580 MB, and 9.3 GB.
the 100 should be /boot, the 580 should be /swap, and the 9.3 GB should be /.
they are all in the cfdisk window, but how can i tell the cfdisk that every partition that i made will be the correct mount point?
i think that should be in the [Label] field, but i can't find a place where i can edit that.
well when your in cfdisk you will use the option to make /boot the bootable partition and also in cfdisk you will go "type" with the swap selected, and make it type 82.. and as of / you just leave it....then when you run the slack setup it will pickup /boot as the bootable paritition, cause that is what you labeled it, and when you activate swap in the setup it will also pick that up cause you changed it to type82, and since / is the only partition left, and when you select to setup the targets it will then pick it up by default...if you had your root split up in several partitions instead of having everything on root, then when you started to set up the parititions the first one formatted will be set as /, and then from there on you will specify the mount point for the rest, but since this isn't the case it will just set the 9.3gigs of space as the / ..
mmm, i got to the setup stage, and it says that there is a free partition i na size of 100 MB, and if it should make it as /etc/fstab.
what says that it didn't recognized it as a boot partition.
it the cfdisk window, i made the hda1 like that:
||| Name: hda1 | Flags: Boot | Part Type: Linux | Label: <blank> | Size: 100 MB |||
do i need to change anything in the 'Label' field? or in the 'FS Type' field?
sorry i may have misled you...i am just trying to remember off the top of my head, but maybe you do have to type in the label /boot when you format the 100 meg partition,...if it doesn't pick it up manually, or maybe i was right the first time and you yourself screwed up some step....but in any case, yes if you want you can do without it, and just leave it set itself up on the / partition....the minimum of what you need is / and /swap and that would be perfectly fine...
and below is taken off the slack site installation help:
So what kind of partitions should you make? It is always a good idea to make the swap partition first so you specify an exact size for it. It is also a good idea to make seperate partitions for /, /home, and /usr. People will tell you many things about how to divide up your disk, but it really comes down to what you want. There are many good reasons to breaking it up into /, /home, and /usr. For example:
Home directories are always on their own partition and you can upgrade the distribution without having to backup the home directories.
/usr is where software goes, so you can keep that whenever you upgrade distributions.
The root directory should really remain untouched, except for the modified files in /etc and root's home directory.
Others may tell you that you must have a seperate /var partition so log files won't fill up the root filesystem or so that the mail spool gets its own partition. Really, the choice is yours. Experiment with it, you can always change it later.
they recommend making /, /home, and /usr, but it is not required...
personally on my slack box i have
and i did have /home on a seperate drive, but i had to remove that drive, so now /home is incorporated into / ..
A bit of a followup on the "Experiment with it, you can always change it later" part of the installation instructions.
I installed Slackware on a not-so-big partition (it's a dual-boot computer) and now I want to take a piece of an additional disc drive I just installed and move part of the installation to it. How do I do that?
I suppose if I wanted to move say /etc to /dev/hdd2, which I've set up and formatted as a Linux partition, I could mount /dev/hdd2 as /whatever, copy the whole /etc directory tree there, add the line
/dev/hdd2 /etc ext2 defaults 1 0
to /etc/fstab and /whatever/fstab, and then do mount -a. Then the /etc directory would be on the new partition. A possible problem, though, is that the /etc directory has a lot of stuff in it, and a little experimentation suggests that once /dev/hdd2 is mounted as /etc I won't be able to get to the old directory (for example, to delete the files and free up the space). On the other hand, I don't want to delete or rename the old /etc to get it out of the way before I mount the new one because maybe something is there Linux needs to work.
There must be a good way to do this. Can someone tell me what it is?
Yes, I imagine deleting/renaming /etc while you're running the system that uses it would be a bad idea.
The best way to do that would probably be to boot a system from CD (Slackware CD2, for instance), then make temporary directories there, mount your system's / and /etc (if it's not part of the root fs), and the partition where you want your new /etc to be (/dev/hdd2). Then simply move all the content from the old /etc to the new one, and change the system's /etc/fstab to mount the new partition as /etc.
For example, after booting from cd:
# mkdir /tmp/myroot
# mount /dev/hda3 /tmp/myroot (substitute /dev/hda3 for whatever is your root fs)
(if your old /etc is also on a seperate partition, make sure to mount that in /tmp/myroot/etc)
# mkdir /tmp/myetc
# mount /dev/hdd2 /tmp/myetc
# mv /tmp/myroot/etc/* /tmp/myetc/
That should have moved all of the old /etc content to the new partition, then you would just have to edit the /etc/fstab:
# vim /tmp/myroot/etc/fstab (or whichever editor you prefer)
... then add the line to mount /dev/hdd2 on /etc:
/dev/hdd2 /etc ext2 defaults 1 0
Then just make sure /tmp/myroot (and any fs's that may be mounted inside), as well as /tmp/myetc are unmounted cleanly, and reboot.
I can't guarantee it would work, as I haven't tried it myself, but I can't immediately think of any reason why it wouldn't.
Thanks a lot -- I just got it done with your help!
I ended up moving /usr instead of /etc, because juggling the space worked out better that way. I didn't dare mv the files so I cp'ed them instead, and then changed the name of the old directory to usrOLD. I'll remove it when I've convinced myself that everything's OK and no problems come up.
I also looked at Patrick V.'s zipslack FAQ, which suggested doing "umask 000" and "cp -a". Also, I gathered from man fstab that the fstab entry should really be
/dev/hdd1 /usr ext2 defaults 1 2
/dev/hdd1 /usr ext2 defaults 1 0
The one thing I forgot to do before rebooting is mkdir usr in /, but enough of the system loaded that I could login, correct the error, and reboot.