SlackwareThis Forum is for the discussion of Slackware Linux.
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.
My disk finally seems lost. I tried to recover information with no results. I don't want to keep trying and since most of my info was previously backed up, I will go for a fresh install and I will take this as another learning experience :-)
I will partition with gparted (at least, I will try).
I am planning to install only Slackware 12.1. No more dual boot. No more win sharing my hd (at least, for now). This will make my Slackware learning curve much faster (I guess :-).
So, let me tell you how my Linux partitions were and what I plan to do now:
160Gb HD.
swap (2Gb). System has 4Gb RAM.
/ (ext3) Primary partition
/home (ext3) Primary partition.
Now, I would like to add a new ext3 partition for backups (using rsync following keefaz advice). Can I create a partition called /backup or not? Any suggestion?
Regarding to installation, one of the things Slackware asks when installing and that I am not sure I understand is DOMAIN NAME. The rest of the computers have winxp and the workgroup is INICIOMS. Should I write INICIOMS as the domain? As host name I write slackware5b (name of my slackware computer).
Any advice on partition scheme or domain will be welcome.
Thank you friends!
Glore2002.-
You're not wrong, but you end with a limited extended partition size with your setup
(meaning you can't add a lot of logical partitions)
Why not set /home as a logical partition ?
It is advised to use primary partitions for swap and /, because of easy drive access,
but it is not required for /home.
It is my opinion, but I think that the extended partition should be bigger,
so you can add more partitions in the future
(remember you have a limit of 4 primary partitions, including the extended,
while you can add up to 63 logical partitions in the extended one with IDE drive)
You're not wrong, but you end with a limited extended partition size with your setup
(meaning you can't add a lot of logical partitions)
Why not set /home as a logical partition ?
It is advised to use primary partitions for swap and /, because of easy drive access,
but it is not required for /home.
It is my opinion, but I think that the extended partition should be bigger,
so you can add more partitions in the future
(remember you have a limit of 4 primary partitions, including the extended,
while you can add up to 63 logical partitions in the extended one with IDE drive)
I see what you mean. Thanks. Let's see this scheme:
Man, community help is normal, just a little bit of time, don't thank me
I am learning a lot when I help others, I think I figured out the partition numbers (/dev/sda1 sda2 sda3...) now, thanks for your questions!
Partitions names are ok, just make sure Slackware does not use the same names when you name your custom partitions (/docs and /backups are ok)
I like your last partition scheme, although I think 45GB for the root partition is way too big (I did a Slackware full install and it uses only 4.5GB disk space on my / partition).
/dev/hda10 on /
/dev/hda1 on /boot
/dev/hda3 on /home
/dev/hda7 on /tmp
/dev/hda8 on /var
/dev/hda9 on /usr
/dev/hda5 on /usr/local
/dev/hda6 on /opt
/dev/hda14 on /home/tmp
Alternate partitions for emergency booting:
/dev/hda11 on /var
/dev/hda12 on /usr
/dev/hda13 on /
Secondary Drive:
/dev/sda1 on /home/public
/dev/sda8 on /home/public/archives
My primary drive is a 40 GB ATA-100 Seagate Barracuda IV. My secondary drive is a 320 GB SATA-II Western Digital WD3200AAKS-00YGA0.
Partitioning is partly skill, partly need, and partly personal whims. Don't be afraid to try various schemes. A backup strategy of at least /home will allow you to experiment until you find a comfortable scheme.
Quote:
Now, I would like to add a new ext3 partition for backups (using rsync following keefaz advice). Can I create a partition called /backup or not? Any suggestion?
Regarding backup strategies using rsync, rsnapshot is a great tool that uses rsync. Perhaps the following might help:
Regarding to installation, one of the things Slackware asks when installing and that I am not sure I understand is DOMAIN NAME. The rest of the computers have winxp and the workgroup is INICIOMS. Should I write INICIOMS as the domain? As host name I write slackware5b (name of my slackware computer).
Just use localdomain for a domain name. Regarding intermixing with a Windows workgroup, that name will come into play when you configure Samba. The two names need not be the same.
As some of the others have said: partitioning is a very personal choice.
However, just so you have another example, I do mine as follows:
Code:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 2482 19832242+ 8e Linux LVM
/dev/mapper/sysvg-lvroot on / type jfs (rw)
/dev/hda1 on /boot type ext2 (rw)
/dev/mapper/sysvg-lvvar on /var type jfs (rw)
/dev/mapper/sysvg-lvtmp on /tmp type jfs (rw)
/dev/mapper/sysvg-lvhome on /home type jfs (rw)
With the exception of /boot I put everything under lvm (which means it all gets stored in hda2), including the swap space. Using lvm isn't necessary to follow this scheme, you could create hda2 as an extended partition instead and put all the other filesystems in there as logical partitions and get a similar effect.
/var /tmp and /home are each given their own filesystem to separate them from the / filesystem. My reasoning behind this is to reduce any write activity to the / filesystem as much as possible which should help with stability.
I used to have separate partitions for /usr and /opt in the past, but I came to the conclusion that there really wasn't a practical reason for separating them from / so now I don't bother.
@ Keefaz. I like the way you layout your /srv and /var/backups. It's nice to see someone doing it properly. Very tidy.
My advice is using LVM2, so you can resize the partitions in future without losing data.
here is my VolumeGroup info.
Code:
root@linux4ever:~# vgdisplay
--- Volume group ---
VG Name vg0
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 8
Open LV 8
Max PV 0
Cur PV 1
Act PV 1
VG Size 36.14 GB
PE Size 4.00 MB
Total PE 9252
Alloc PE / Size 5888 / 23.00 GB
Free PE / Size 3364 / 13.14 GB
VG UUID 5FR2Mr-y9l9-mFa3-oeD2-RsHu-WG5c-XdoG83
I would add that your backup should be 'grandfathered'. Meaning that the backup should not reside on or near the backup system. If you backup to tape, disk or whatever media that stored media should be saved in a remote location (friends). That way if something should happen then you could restore after obtaining the original backup from the storage.
There's nothing saying you should not keep a backup locally but for a true backup then that should be securely stored (grandfathered). The backup cycle would be at the level you feel comfortable with.
Anytime you rely on a local backup for term backup you will fall into a false security level. When the drive fails or system fails then what good is the local backup if not recoverable?
True words onebuck, for my part I use my /var/backups as temp backups where some tar.gz are waiting to be burned on DVD, also some directories rsync'ed to eventualy (but very unlikely ) repair user error
I tried to write a document onto /docs and /backups and I couldn't. Do I have to change defaults by umask=000. Please, let me know modifications I should write.
Congrat Glore!
Now if you don't want to repeat the mistake with formating the USB drive, may be write a script like:
Script name: format_my_usb_drive.sh (or choose a better name, choose the program name is the most difficult thing in programming imho )
Code:
#!/bin/sh
mkdosfs -I -v /dev/sdb
(use whatever option you like for mkdosfs)
Then chmod +x format_my_usb_drive.sh
and execute it with: ./format_my_usb_drive.sh
The reason to make a script for this is as as you have written the name in the file, you won't be able to do the same mistake (format /dev/sda), and another reason is less words to type
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.