fail to setup-disk
#1
Tue, 2015-08-04 18:01
khoan
-
- Offline
- 2 years 7 months ago
- 2015-08-04
trying to setup alpine desktop on toshiba u400, booted from usb created from 3.2.2 mini iso. Cannot get past setup-disk.
A truncated excerpt of session below. Any pointer? Thanks.
# setup-disk -v -m sys
Available disks are:
sda (320.1 GB ATA Hitachi HTS54503)
sr0 (1.1 GB Matshita DVD-RAM UJ862AS)
sdb (8.0 GB TDKMedia Gold Flash )
...enter sda and y at prompt
Initializing partitions on /dev/sda...
The file does not exist and no size was specified.
mount: can't find /mnt in /etc/fstab
# fdisk -l
Disk /dev/sda: 298.1 GiB, ...
Disklabel type: gpt
...
Device...
/dev/sda1 ... 100M Linux filesystem
/dev/sda2 ... 3.7G Linux filesystem
/dev/sda2 ... 294.3G Linux filesystem
had to manually mount /dev/sda3 to /mnt, /dev/sda1 to /mnt/boot
then run setup-disk -m sys /mnt
setup-disk ran with warning about MBR, so dd bs=440 conv=notrunc count=1 if=/usr/share/syslinux/gptmbr.bin of=/dev/sda
upon reboot it says missing OS, any pointers? Thanks
# fdisk -l
Found valid GPT with protective MBR; using GPT
Disk /dev/sda: ...
Number ... Code
1 ... 0700
2 ... 0700
3 ... 0700
enabled legacy BIOS bootable on /boot partition via gdisk, seems to boot now
but seeing following error, typing exit leads to a crash, any pointer? thanks.
Mounting root failed
initramfs emergency recovery shell launched. Type 'exit' to continue boot
sh: can't access tty; job control turned off
if this helps in debug:
# tail /tmp/mount-error
mount: mounting awk on /sysroot failed: No such file or directory
more info:
# mount -t ext4 /dev/sda1 /tmp/boot
# cat /tmp/boot/extlinux.conf
# Generated by update-extlinux 6.03-r1
DEFAULT menu.c32
PROMPT 0
MENU TITLE Alpine/Linux Boot Menu
MENU HIDDEN
MENU AUTOBOOT Alpine will be booted automatically in # seconds
TIMEOUT 30
LABEL grsec
MENU DEFAULT
MENU LABEL Linux grsec
LINUX vmlinuz-grsec
INITRD initramfs-grsec
APPEND root=awk modules=sd-mod,usb-storage,ext4 quiet
MENU SEPARATOR
For posterity, these are the steps that worked for me.
- boot from usb
- setup-alpine
- mkfs.ext4 for / and /boot partitions
- mount device onto /mnt
- SWAP_DEVICE=/dev/sda2 setup-disk -m sys /mnt
- umount /boot and /
- mark /boot partition as legacy bios bootable (http://wiki.alpinelinux.org/wiki/Installing_on_GPT_LVM)
- dump gptmbr.bin into device
- reboot
- explore alpine linux
"- explore alpine linux"
This, of course, is the fun part. Welcome to Alpine Linux!