무엇을 설치하든 상관없습니다. tmpfs를 설치해도(사용하여 mount -vt tmpfs none /mnt
) 작동하지 않습니다.
VirtualBox VM에 Gentoo를 설치하려고 하는데 루트 파티션을 마운트한 후(를 사용하여 mount -v /dev/sda2 /mnt
) 모든 것이 작동을 멈춥니다. btrfs, ext4, vfat 및 xfs가 중단됩니다.
mount
오류 없이 반품하고 인쇄하세요 mount: /dev/sda2 mounted on /mnt.
.
설치 후 ls
인쇄 도 실행해 보세요 -bash: ls: command not found
.
2021년 7월 25일과 2021년 8월 1일의 ISO를 시험해 보았습니다.
저는 GPT 파티션 테이블을 사용하고 있으며 VirtualBox 설정에서 EFI를 활성화했습니다. EFI를 비활성화해도 도움이 되지 않습니다.
# gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.7
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 41943040 sectors, 20.0 GiB
Model: VBOX HARDDISK
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 7AAC6D43-015D-458A-866E-B6CEEB08FDC9
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 41943006
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1050623 512.0 MiB EF00 EFI system partition
2 1050624 41943006 19.5 GiB 8300 Linux filesystem
답변1
gentoo live cd를 /mnt/livecd에 넣고 거기에 심볼릭 링크 /bin과 co를 설치하세요. /mnt에 무엇이든 마운트하면 이러한 기호 링크가 무효화되고 프로그램/명령을 실행할 수 없게 됩니다.
# ls -l /
total 0
lrwxrwxrwx 1 root root 15 Aug 2 15:22 bin -> /mnt/livecd/bin
lrwxrwxrwx 1 root root 16 Aug 2 15:22 boot -> /mnt/livecd/boot
drwxr-xr-x 14 root root 3720 Aug 2 15:23 dev
drwxr-xr-x 58 root root 2460 Aug 2 15:23 etc
drwxr-xr-x 2 root root 60 Aug 1 17:11 home
drwxr-xr-x 2 root root 40 Aug 2 15:23 initramfs
lrwxrwxrwx 1 root root 15 Aug 2 15:22 lib -> /mnt/livecd/lib
lrwxrwxrwx 1 root root 17 Aug 2 15:22 lib64 -> /mnt/livecd/lib64
drwxr-xr-x 6 root root 120 Aug 2 15:22 mnt
lrwxrwxrwx 1 root root 15 Aug 2 15:23 opt -> /mnt/livecd/opt
dr-xr-xr-x 165 root root 0 Aug 2 15:22 proc
drwx------ 2 root root 100 Aug 1 17:55 root
drwxr-xr-x 14 root root 460 Aug 2 15:23 run
lrwxrwxrwx 1 root root 16 Aug 2 15:22 sbin -> /mnt/livecd/sbin
dr-xr-xr-x 13 root root 0 Aug 2 15:22 sys
drwxrwxrwt 5 root root 100 Aug 2 15:23 tmp
lrwxrwxrwx 1 root root 15 Aug 2 15:22 usr -> /mnt/livecd/usr
drwxr-xr-x 9 root root 220 Aug 1 17:57 var
# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
none on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=1405030,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on / type tmpfs (rw,relatime)
/dev/sr0 on /mnt/cdrom type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048)
/mnt/cdrom/image.squashfs on /mnt/livecd type squashfs (ro,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
none on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)