fail to setup-disk

8 posts / 0 new
Last post
#1 Tue, 2015-08-04 18:01
khoan
  • khoan's picture
  • Offline
  • Last seen: 2 years 7 months ago
  • Joined: 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

Tue, 2015-08-04 19:01
khoan
  • khoan's picture
  • Offline
  • Last seen: 2 years 7 months ago
  • Joined: 2015-08-04

had to manually mount /dev/sda3 to /mnt, /dev/sda1 to /mnt/boot
then run setup-disk -m sys /mnt

Tue, 2015-08-04 19:29
khoan
  • khoan's picture
  • Offline
  • Last seen: 2 years 7 months ago
  • Joined: 2015-08-04

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

Tue, 2015-08-04 19:55
khoan
  • khoan's picture
  • Offline
  • Last seen: 2 years 7 months ago
  • Joined: 2015-08-04

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

Tue, 2015-08-04 20:00
khoan
  • khoan's picture
  • Offline
  • Last seen: 2 years 7 months ago
  • Joined: 2015-08-04

if this helps in debug:

# tail /tmp/mount-error
mount: mounting awk on /sysroot failed: No such file or directory

Tue, 2015-08-04 20:06
khoan
  • khoan's picture
  • Offline
  • Last seen: 2 years 7 months ago
  • Joined: 2015-08-04

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

Wed, 2015-08-05 14:56
khoan
  • khoan's picture
  • Offline
  • Last seen: 2 years 7 months ago
  • Joined: 2015-08-04

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

Tue, 2015-08-18 17:30
ScrumpyJack
  • ScrumpyJack's picture
  • Offline
  • Last seen: 6 months 3 weeks ago
  • Joined: 2013-06-20

"- explore alpine linux"

This, of course, is the fun part. Welcome to Alpine Linux!

Log in or register to post comments