According to the Securing Debian Manual - Before and during the installation section 3.2.1 Choose an intelligent partition scheme
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.debian.org/doc/manuals/securing-debian-howto/ch3.en.html"
linktext was:"https://www.debian.org/doc/manuals/secu ... h3.en.html"
====================================
, it makes sense to put /tmp , /var , and maybe even /usr on separate partitions other than just on the /((root)) partition and /home.
But antiX-16 Full and Base versions only allow /((root)), /home, and the Linux swap partitions to be formatted and then mounted during installation.
What suggestions would any of you antiX-16 experts have for activating multiple filesystem partitions such as for /tmp, /var, /usr, ...etc during installation of antiX, and besides solely for /((root)), /home, and swap??
9 posts
• Page 1 of 1
-
Posts: 3
- Joined: 16 Sep 2016
-
Posts: 4,164
- Joined: 20 Feb 2009
#2
Divide up your partition scheme to how you want.
Install antix normally on a good size 10 gig partition for /. There is a function on the installer for installing to seperate /home partition if you so wish.
After installing. Move folders/directories to the partitions you think it is important to have those folders in.
Move them and them symlink them back to their original location.
Then modify fstab file to see and mount the drives on boot up.
eg: mine:
Member opinion responce. Frankly. I think you are overthing thinking this unless this is a production machine in a working environment.
My setup is just fine for a home user who wished to backup their installed stuff/changes in case of a reinstall.
Not sure what you mean. So all I can say is how I do things.etc during installation of antiX,
Divide up your partition scheme to how you want.
Install antix normally on a good size 10 gig partition for /. There is a function on the installer for installing to seperate /home partition if you so wish.
After installing. Move folders/directories to the partitions you think it is important to have those folders in.
Move them and them symlink them back to their original location.
Then modify fstab file to see and mount the drives on boot up.
eg: mine:
Code: Select all
harry@biker:~
$ sudo disk -l
[sudo] password for harry:
sudo: disk: command not found
harry@biker:~
$ sudo fdisk -l
Disk /dev/sda: 320 GB, 320070320640 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 1020 8193118 83 Linux
/dev/sda2 1020 9944 71682030 83 Linux
/dev/sda3 9944 10454 4096575 82 Linux swap
/dev/sda4 10454 38914 228604950 5 Extended
/dev/sda6 10454 23202 102398310 83 Linux
/dev/sda5 23202 38914 126206640 83 Linux
harry@biker:~
$ df -l
Filesystem 1K-blocks Used Available Use% Mounted on
udev 10240 0 10240 0% /dev
tmpfs 1631452 648 1630804 1% /run
/dev/sda1 7932336 5350212 2156140 72% /
tmpfs 5120 4 5116 1% /run/lock
tmpfs 4082100 4 4082096 1% /run/shm
/dev/sda2 70423984 4595476 62228124 7% /home
/dev/sda5 124090316 34541580 83222260 30% /media/_data1
/dev/sda6 100658608 5699904 89822424 6% /media/_data2
harry@biker:~
$ cat / etc/fstab
# / etc/fstab: static file system information
#
# Created by make-fstab on Thu Oct 29 15:42:46 CDT 2015
# <file system> <mount point> <type> <options> <dump/pass>
UUID=685d85b2-6651-49ed-928c-d5e17f70f500 / ext4 defaults 1 1
UUID=8d150b09-c903-4b7d-9326-7b88e7ac84f2 /home ext4 defaults 1 1
UUID=45720f5c-3d28-4e6d-a06d-9ce4a9fe5370 swap swap defaults 0 0
UUID=8c692b69-46f7-48ef-abc9-e6963655e259 /media/_data1 ext4 auto,exec,users,rw 1 1
UUID=b76696e8-11ba-4177-970b-0d237aa5a8ae /media/_data2 ext4 auto,exec,users,rw 1 1
/dev/cdrom /media/cdrom iso9660 noauto,exec,users,ro 0 0
/dev/cdrw /media/cdrw iso9660 noauto,exec,users,rw 0 0
/dev/dvd /media/dvd udf noauto,exec,users,ro 0 0
/dev/sr0 /media/sr0 auto noauto,exec,users,ro 0 0
# Added by make-fstab /dev/mmcblk0p1
UUID=596C-0657 /media/mmcblk0p1 vfat noauto,uid=1000,gid=users,dmask=002,fmask=113,users 0 0
harry@biker:~
$
My setup is just fine for a home user who wished to backup their installed stuff/changes in case of a reinstall.
-
Posts: 3
- Joined: 16 Sep 2016
#3
Forbidden
You don't have permission to access /posting.php on this server.
-
Posts: 1,445
- Joined: 09 Feb 2012
#4
"forbidden" is due to a bug with the forum software, explained here: php-error-t3861.html
TLDR version:
/ etc
is acceptable
/etc
is NOT acceptable
(forward-slash character cannot immediately precede etc)
(causes forum sw to react like it has detected a"hack attempt")
TLDR version:
/ etc
is acceptable
/etc
is NOT acceptable
(forward-slash character cannot immediately precede etc)
(causes forum sw to react like it has detected a"hack attempt")
-
Posts: 1,445
- Joined: 09 Feb 2012
#5
Do you need to worry someone will run a an automated"download cat videos 'til you puke" program?
With that in mind (hey, it might be one of YOUR user's progs which fills the storage), the installer accommodates /home on a separate partition.
IOW, no, clearly the installer doesn't attempt to support the gamut of use case scenarios (beyond"typical desktop computer").
You're free to juggle the partitioning post-install, and/or free to play with jfs, reiserfs, lvm and all the debian-supported"stuffs" mentioned in that cited usermanual page.
Bear in mind that documentation covers the gamut of use cases ~~ servers exposed to the internet, multi-user installs, etc.According to the Securing Debian Manual - Before and during the installation section 3.2.1
. . .
An intelligent partition scheme depends on how the machine is used.
Will other people be using the machine?Any directory tree which a user has write permissions to, such as e.g. /home, /tmp and /var/tmp/, should be on a separate partition. This reduces the risk of a user DoS by filling up your"/" mount point and rendering the system unusable (Note: this is not strictly true, since there is always some space reserved for root which a normal user cannot fill), and it also prevents hardlink attacks.
Do you need to worry someone will run a an automated"download cat videos 'til you puke" program?
With that in mind (hey, it might be one of YOUR user's progs which fills the storage), the installer accommodates /home on a separate partition.
IOW, no, clearly the installer doesn't attempt to support the gamut of use case scenarios (beyond"typical desktop computer").
You're free to juggle the partitioning post-install, and/or free to play with jfs, reiserfs, lvm and all the debian-supported"stuffs" mentioned in that cited usermanual page.
-
Posts: 3
- Joined: 16 Sep 2016
#6
TY for referring to that bug with the forum software at
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"antix.freeforu ms.org/php-error-t3861.html"
linktext was:"antix.freeforu ms.org/php-error-t3861.html"
====================================
Am correcting my intended reply below b/c of this.
TY rokytnji for the response __{{emoticon}}__
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.debian.org/releases/jessie/i386/ch06s03.html.en"
linktext was:"https://www.debian.org/releases/jessie/ ... 03.html.en"
====================================
(subsections 6.3.3.2 - 6.3.3.3) during its installation, if antiX-16 should have something similar for this exact purpose(?)
If there's no debian-installer utility in the various flavours of antiX-16, then maybe I'll just have to perform the above post-install steps __{{emoticon}}__
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.debian.org/releases/stable/i386/apcs03.html.en"
linktext was:"https://www.debian.org/releases/stable/ ... 03.html.en"
====================================
, i.e.:
- systems with Windows already pre-installed and with sufficient disk space for antiX
- a larger than average / tmp for burning cd's / dvd's using xfburn
- a / usr / local for separately storing various scripts and code.
Of course I realize I could just install vanilla Jessie, Testing or Unstable using Debian's own debian-installer to pre-partition as desired, and then throw in antiX-16 as an antiX VM image
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.osboxes.org/antix/"
linktext was:"http://www.osboxes.org/antix/"
====================================
within that Debian install. But then I'd lose the fast, non-bloated performance of having antiX run natively, non-virtually....so there'd be a tradeoff.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"antix.freeforu ms.org/php-error-t3861.html"
linktext was:"antix.freeforu ms.org/php-error-t3861.html"
====================================
Am correcting my intended reply below b/c of this.
TY rokytnji for the response __{{emoticon}}__
Very useful, but this requires performing the various steps such as editing / etc / fstab after installing antiX. I was thinking more along the lines of debian-installer's manualized individual partitioning and mounting utility for DebianInstall antix normally on a good size 10 gig partition for /. There is a function on the installer for installing to seperate /home partition if you so wish.
After installing. Move folders/directories to the partitions you think it is important to have those folders in.
Move them and them symlink them back to their original location.
Then modify fstab file to see and mount the drives on boot up.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.debian.org/releases/jessie/i386/ch06s03.html.en"
linktext was:"https://www.debian.org/releases/jessie/ ... 03.html.en"
====================================
(subsections 6.3.3.2 - 6.3.3.3) during its installation, if antiX-16 should have something similar for this exact purpose(?)
If there's no debian-installer utility in the various flavours of antiX-16, then maybe I'll just have to perform the above post-install steps __{{emoticon}}__
OTOH, my own preferred setup ("use-case scenario") would be more similar to Debian's Recommended Partitioning SchemeMy setup is just fine for a home user who wished to backup their installed stuff/changes in case of a reinstall.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.debian.org/releases/stable/i386/apcs03.html.en"
linktext was:"https://www.debian.org/releases/stable/ ... 03.html.en"
====================================
, i.e.:
- systems with Windows already pre-installed and with sufficient disk space for antiX
- a larger than average / tmp for burning cd's / dvd's using xfburn
- a / usr / local for separately storing various scripts and code.
Of course I realize I could just install vanilla Jessie, Testing or Unstable using Debian's own debian-installer to pre-partition as desired, and then throw in antiX-16 as an antiX VM image
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.osboxes.org/antix/"
linktext was:"http://www.osboxes.org/antix/"
====================================
within that Debian install. But then I'd lose the fast, non-bloated performance of having antiX run natively, non-virtually....so there'd be a tradeoff.
Last edited by nycace36 on 23 Sep 2016, 23:25, edited 3 times in total.
-
Posts: 1,445
- Joined: 09 Feb 2012
#7
This is a low-traffic forum. Let's give it a day or two for folks to find this topic and hopefully post some insightful howto.
-
Posts: 4,164
- Joined: 20 Feb 2009
#8
There is already a /usr/local in / in AntiX.
I will mention that Debian by it's very nature and mission. Is a server distro. So their installer will of course follow a server setup of preferences.
AntiX is a personal desktop system. Simplified down for user, not server. So the installer will of course follow that.
I don't think Ubuntu desktop installer allows server assignment schemes either. But I could be wrong.
I'll defer to BitJam, Dave, and Anti. As I cannot speak for the installer feature request your thread is about.
I only mentioned what I do as a members example showing real life case usage.
Code: Select all
harry@biker:~
$ cd /usr
harry@biker:/usr
$ ls
bin games include lib local sbin share src
AntiX is a personal desktop system. Simplified down for user, not server. So the installer will of course follow that.
I don't think Ubuntu desktop installer allows server assignment schemes either. But I could be wrong.
I'll defer to BitJam, Dave, and Anti. As I cannot speak for the installer feature request your thread is about.
I only mentioned what I do as a members example showing real life case usage.
-
Posts: 1,308
- Joined: 31 Aug 2009
#9
Systemd no longer supports a separate /usr partition although you can get around this limitation by using an initrd that mounts /usr before the systemd init starts. I don't know if this is automated in the Debian initrd or not. I imagine it is but may need to be enabled. We don't use systemd by default so maybe this won't be an issue.
Many years ago I boosted the performance of some servers I was running by keeping /var (I think) on a different physical drive to reduce seek times. You're going to get a much better performance boost using an sdd. If you are not using separate physical disks then I don't think there will be much, if any advantage to using more partitions than the ones we make available (and /boot). In fact, putting different parts of the system on different partitions on the same disk will probably decrease performance since it will require larger seeks to access different parts of the same system.
However, if that is what you want to do then here is what I suggest. First do a normal antiX install. Then before shutting down the live system, mount the new root partition and mount the partitions you want to use for /var, etc. Then, as root do a cp -a from the directory in the root partition to the separate partitions. Example:where I've assumed you've labelled the root partition as"root" and the"var" partition as"var" and they both were mounted under /media via standard tools.
Finally edit /etc/fstab on the new root partition to tell the new system to automatically mount the separate partitions. You should/need-to use UUIDs in the fstab because the naming of physical disks is no longer guaranteed to be consistent between reboots.
If you want to be really daring (I don't recommend it) then you can delete the content of the directories on the root partition after you have copied their contents to the separate partitions.
As Roky explained, the antiX installer does not support multiple partitions besides /(root) and /home. The next step in complexity would be to support a separate /boot partition which would enable using RAID and/or LVM for the root partition.nycace36 wrote:What suggestions would any of you antiX-16 experts have for activating multiple filesystem partitions such as for /tmp, /var, /usr, ...etc during installation of antiX, and besides solely for /((root)), /home, and swap??
Systemd no longer supports a separate /usr partition although you can get around this limitation by using an initrd that mounts /usr before the systemd init starts. I don't know if this is automated in the Debian initrd or not. I imagine it is but may need to be enabled. We don't use systemd by default so maybe this won't be an issue.
Many years ago I boosted the performance of some servers I was running by keeping /var (I think) on a different physical drive to reduce seek times. You're going to get a much better performance boost using an sdd. If you are not using separate physical disks then I don't think there will be much, if any advantage to using more partitions than the ones we make available (and /boot). In fact, putting different parts of the system on different partitions on the same disk will probably decrease performance since it will require larger seeks to access different parts of the same system.
However, if that is what you want to do then here is what I suggest. First do a normal antiX install. Then before shutting down the live system, mount the new root partition and mount the partitions you want to use for /var, etc. Then, as root do a cp -a from the directory in the root partition to the separate partitions. Example:
Code: Select all
cp -a /media/root/var/* /media/var/
Finally edit /etc/fstab on the new root partition to tell the new system to automatically mount the separate partitions. You should/need-to use UUIDs in the fstab because the naming of physical disks is no longer guaranteed to be consistent between reboots.
If you want to be really daring (I don't recommend it) then you can delete the content of the directories on the root partition after you have copied their contents to the separate partitions.