You are not logged in.
I installed 2 Arch Linux on 2 partitions.
My Disk ( /dev/sda )
/dev/sda1 512M EFI
/dev/sda2 4G swap
/dev/sda3 57.4G ext4
/dev/sda4 57.4G ext4
And how I installed Arch Linux.
// for 1st Arch Linux
wifi-menu
ping google.com
umount /dev/sda*
cfdisk /dev/sda ( refer to My Disk )
mkfs.vfat /dev/sda1
mkswap /dev/sda2
mkfs.ext4 /dev/sda3
mount /dev/sda3 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
swapon /dev/sda2
pacstrap /mnt base base-devel
genfstab -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
echo NT500R5L-L54S > /etc/hostname
echo Asia/Seoul > /etc/timezone
echo en_US.UTF-8 UTF-8 > /etc/locale.gen
echo ko_KR.UTF-8 UTF-8 >> /etc/locale.gen
locale-gen
hwclock --systohc --utc
pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch_1 --recheck
grub-mkconfig -o /boot/grub/grub.cfg
mkinitcpio -p linux
passwd
useradd -m -g users -G storage,power,wheel -s /bin/bash hongsejung
passwd hongsejung
exit
umount /mnt/{boot,home,}
reboot
//for 2nd Arch
wifi-menu
ping google.com
umount /dev/sda*
cfdisk /dev/sda ( refer to My Disk )
mkfs.vfat /dev/sda1
mkswap /dev/sda2
mkfs.ext4 /dev/sda4
mount /dev/sda4 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
swapon /dev/sda2
pacstrap /mnt base base-devel
genfstab -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
echo NT500R5L-L54S > /etc/hostname
echo Asia/Seoul > /etc/timezone
echo en_US.UTF-8 UTF-8 > /etc/locale.gen
echo ko_KR.UTF-8 UTF-8 >> /etc/locale.gen
locale-gen
hwclock --systohc --utc
pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch_2 --recheck
grub-mkconfig -o /boot/grub/grub.cfg
mkinitcpio -p linux
passwd
useradd -m -g users -G storage,power,wheel -s /bin/bash hongsejung
passwd hongsejung
exit
umount /mnt/{boot,home,}
reboot
Output of /etc/fstab in 1st installation
#
# /etc/fstab: static file of system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# UUID=1cb7038b-ce9b-4c86-b5ac-117754329ae5
/dev/sda3 / ext4 rw,relatime,data=ordered 0 1
# UUID=02EE-D3EF
/dev/sda1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
# UUID=01e7fdc6-4f9c-4687-b4de-a02765347a0d
/dev/sda2 none swap defaults 0 0
Output of /mount of 1st installation
cat: /mount: No such file or directory
Output of /proc/cmdline of 1st installaion
initrd=\arch\boot\intel_ucode.img initrd=\arch\boot\x86_64\archiso.img archisobasedir=arch archisolabel=ARCH_201709
Output of /etc/fstab of 2nd installation
#
# /etc/fstab: static file of system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# UUID=933f7eb3-f30b-456b-bc35-b2dad8809749
/dev/sda4 / ext4 rw,relatime,data=ordered 0 1
# UUID=97C8-8E3C
/dev/sda1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
# UUID=651b8404-b66c-415e-9c24-6fc92bc9e550
/dev/sda2 none swap defaults 0 0
Output of /mount of 2nd installation
cat: /mount: No such file or directory
Output of /proc/cmdline of 2nd installation
initrd=\arch\boot\intel_ucode.img initrd=\arch\boot\x86_64\archiso.img archisobasedir=arch archisolabel=ARCH_201709
When I make a file on Arch_1 and then boot on Arch_2, the file exists also.
How can I fix this?
And, When I make 2 accounts and install a program on 1st account, I can use the program on 2nd account also.
How can I disable this sharing between accounts in Arch Linux?
Last edited by sejung0612 (2017-09-03 05:06:42)
Offline
First, please look at https://bbs.archlinux.org/help.php#bbcode and fix your post using code tags. That link is available under every message post box on the forums.
Clearly both systems are mounting the same volumes. Inside of each installation, post the output of
/etc/fstab
/mount
and
cat /proc/cmdline
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
And, When I make accounts "a" and "b" and install program "c" on account "a", I can use the program "c" on account "b" also.
How can I disable this sharing between accounts in Arch Linux?
You can't.
Actually you can, but you shouldn't for the most part. To clarify, you don't install a program on an account: if you use pacman, you install it to your root file system (executables are placed in /usr/bin/). Regular users can't even install programs/packages with pacman, you have to use root or sudo to install packages.
However, if you actually do "install" a program as user "a" then you certainly can keep "b" from having access - but doing so would not really be installing it by many definitions: you'd just put an executable somewhere in the home directory of user "a" and add that directory to user "a"s PATH. But such programs could not be managed by pacman.
There are likely other much better ways to restrict certain activities to users. What are you actually trying to do (no more letters, who are "a" and "b" and what is "c").
Last edited by Trilby (2017-09-02 18:11:46)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
If I make 2 EFI partitions and mount, can I install 2 Arch Linux on 1 pc?
Offline
Your current partitioning is fine. You can have 2 separate systems with one EFI partition. However you seem to have ignored all the feedback and questions you've received so far - that's not particularly wise if you want people to continue trying to help.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
I see a couple issues with what you did. On the second instance of Arch install you need a couple changes. One is that you don't need to format the swap on both installs. Notice that when you did format the swap the second time it changed the UUID so that it isn't then referenced correctly in the first instance fstab. Just do swapon for the swap partition on the second installation.
As for the ESP, you should only use one ESP and make it with the boot and ESP flags. There will be a conflict between the two installs though that needs worked around. When using the /boot mount point for the swap, as is recommended, the kernel is installed in /boot so the kernel resides on the ESP. Two Arch instances will use the same kernel name unless you install a different kernel on the second instance (the ck kernel for example). Both kernels can be on the ESP but if they have the same name you will have conflict. You can use the /boot/efi mount point for the second instance. That puts the kernel on that root partition since that is where it's /boot directory will be. That does cause boot loader config changes for the second instance that you need to pay attention to. Say so if you go that way and have questions.
To linux these are separate instances of Arch that only share the ESP and swap partition. The user accounts are separate, unaware of each other.
Simple and Open
Offline