(USB chroot) root:/etc# cat fstab # Begin /etc/fstab # file system mount-point type options dump fsck # order ### /dev/sdh5 OR /dev/sdb5 UUID="64766262-0ca8-4d8b-9b93-8b4847a227b3 UUID=64766262-0ca8-4d8b-9b93-8b4847a227b3 / ext3 defaults 1 1 UUID=874f5f05-7e62-4cea-8347-26e992688cdc swap swap pri=1 0 0 proc /proc proc nosuid,noexec,nodev 0 0 sysfs /sys sysfs nosuid,noexec,nodev 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /run tmpfs defaults 0 0 devtmpfs /dev devtmpfs mode=0755,nosuid 0 0 # End /etc/fstab
情報の 入手
(USB chroot) root:/etc# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdb1 12319920 5915852 5774924 51% / devtmpfs 1617264 0 1617264 0% /dev tmpfs 1617536 0 1617536 0% /run (USB chroot) root:/etc# fdisk -l /dev/sdb Disk /dev/sdb: 14.45 GiB, 15504900096 bytes, 30283008 sectors Disk model: MF-HSU2 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x000488ed Device Boot Start End Sectors Size Id Type /dev/sdb1 * 2048 25167871 25165824 12G 83 Linux /dev/sdb2 25167872 29362175 4194304 2G 83 Linux /dev/sdb3 29362176 30283007 920832 449.6M 82 Linux swap / Solaris (USB chroot) root:/etc# blkid | grep sdb1 /dev/sdb1: LABEL="lfs9.1usb" UUID="406290ed-c68c-433b-9d1f-30e3542eaead" BLOCK_SIZE="4096" TYPE="ext3" PARTUUID="000488ed-01" (USB chroot) root:/etc# blkid | grep sdb3 /dev/sdb3: PARTUUID="000488ed-03" (USB chroot) root:/etc# mkswap /dev/sdb3 Setting up swapspace version 1, size = 449.6 MiB (471461888 bytes) no label, UUID=4ab50caa-25eb-4a5b-bd6c-794e52cc2cdc (USB chroot) root:/etc# blkid | grep swap | grep sdb3 /dev/sdb3: UUID="4ab50caa-25eb-4a5b-bd6c-794e52cc2cdc" TYPE="swap" PARTUUID="000488ed-03"
にゃんたろう 拝!
2020年 5月 31日 日曜日 22:44:54 JST 作成