USB Ubuntu boot disk not working? - page 2 - Chuwi Hi13 - ChuWi Forum - Forum.chuwi.com
ChuWi Forum»Forum Chuwi Tablet Discussion Chuwi Hi13 USB Ubuntu boot disk not working?

Follow Us

USB Ubuntu boot disk not working?

[Copy link]

ibm555|Post time:5-1-2017 01:39:42 View:2916|Reply:23

Hackerjac| Post time 4-25-2017 12:04:48 | Show all posts
ibm555 replied at 4-23-2017 21:48
Thanks for your input. It would be nice if Chuwi could tell us how Ubuntu should be implemented on t ...

I have been in dialog with emily about it, and its given to one of there engineer, ill get back as soon i know more
I do NOT work for Chuwi. Please DO NOT pm or email me with problems you may have!
Reply Support Not support

Use magic Report

glpub| Post time 4-28-2017 13:08:40 | Show all posts
Edited by glpub at 4-28-2017 14:13

Wrote simple script for creating bootable flashdrive from ubuntu iso, tested on my Hi13


  1. sudo -i
  2. ubuntu=/mnt/ubuntu
  3. mkdir $ubuntu
  4. mount -o loop ubuntu-17.04-desktop-amd64.iso $ubuntu
  5. lsblk    # to find out what device name of your fashdrive, replace X in /dev/sd[X] with correct one
  6. flash=/dev/sdX
  7. dd if=/dev/zero of=$flash bs=1M count=8     # to clear any partitions on the flash
  8. fdisk $flash     # to create new GPT and fat32 partition on the flash:
  9.                  # g <Enter>
  10.                  # n <Enter> <Enter> <Enter> <Enter>
  11.                  # t <Enter>
  12.                  # 11 <Enter>
  13.                  # w <Enter>
  14. fpart=${flash}1
  15. mkfs.vfat $fpart
  16. partuuid=$(blkid -o export $fpart | grep PARTUUID | awk -F "=" '{print $2}')
  17. echo $partuuid   # just to check if everythin still ok, it should be smth like f2803619-419a-451c-89dc-79e9af5277ce
  18. target=/mnt/flash
  19. mkdir $target
  20. mount $fpart $target
  21. cp -vr $ubuntu/{casper,dists,install,pics,pool,preseed} $target
  22. mkdir -p $target/efi/boot
  23. cp /usr/share/refind/refind_x64.efi $target/efi/boot/bootx64.efi
  24. echo "timeout 16

  25. menuentry \"Try Ubuntu without installing\" {
  26.     volume $partuuid
  27.     loader /casper/vmlinuz.efi
  28.     initrd /casper/initrd.lz
  29.     options \"file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash live-media=/dev/disk/by-partuuid/$partuuid\"
  30. }

  31. menuentry \"Install Ubuntu\" {
  32.     volume $partuuid
  33.     loader /casper/vmlinuz.efi
  34.     initrd /casper/initrd.lz
  35.     options \"file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash live-media=/dev/disk/by-partuuid/$partuuid\"
  36. }

  37. menuentry \"OEM install (for manufacturers)\" {
  38.     volume $partuuid
  39.     loader /casper/vmlinuz.efi
  40.     initrd /casper/initrd.lz
  41.     options \"file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash  oem-config/enable=true live-media=/dev/disk/by-partuuid/$partuuid\"
  42. }

  43. menuentry \"Check disc for defects\" {
  44.     volume $partuuid
  45.     loader /casper/vmlinuz.efi
  46.     initrd /casper/initrd.lz
  47.     options \"boot=casper integrity-check quiet splash live-media=/dev/disk/by-partuuid/$partuuid\"
  48. }
  49. " > $target/efi/boot/refind.conf
  50. sync
  51. umount $target
Copy the Code


Done! Install flashdrive into Hi13, press f12 while booting, select "UEFI: NameOfFlashDrive bla-bla-bla"
Then select "Try Ubuntu without installing"
Reply Support Not support

Use magic Report

cpegckc| Post time 4-28-2017 23:24:42 | Show all posts
Here is an easier way.

Credit:
https://askubuntu.com/questions/ ... able-usb-live-media

Assumption:
You have a Hi13 keyboard attached to your Chuwi Hi13 tablet.

0. unzip hi13.zip to root of USB drive. The USB drive must be in FAT32 format. You can do it in Windows/Linux.

****

   If you worry about the bundled bootx64.efi file, you can make it yourself in other Linux machine.
The bundled bootx64.efi file was made in CentOS 7.3 environment.

grub2-mkimage -o bootx64.efi -p /efi/boot -O x86_64-efi \
fat iso9660 part_gpt part_msdos \
normal boot linux configfile loopback chain \
efifwsetup efi_gop efi_uga \
ls search search_label search_fs_uuid search_fs_file \
gfxterm gfxterm_background gfxterm_menu test all_video loadenv \
exfat ext2 ntfs btrfs hfsplus udf

***

1. Download ubuntu-16.04.2-desktop-amd64.iso to /efi/boot/ of USB drive. You can do it in Windows/Linux.

Boot Chuwi H13, when you see Chuwi boot screen, press F12
Then select USB disk, then it will boot into Ubuntu

2. Adding persistent storage (Optional)
If you want to add persistent storage, boot to Ubuntu,
cd /isodevice
dd if=/dev/zero of=casper-rw bs=1M count=4094
mkfs.ext4 -m 0 casper-rw

Reboot Ubuntu and you will have 4G persistent storage.

3. Adjust screen scale (Optional), assume you have already booted to Ubuntu.
The default screen resulotion is 3000x2000.
The font is very small and difficult to see.
Click System settings -> Displays
Set "Scale for menu and title bars" = 2, then apply.


hi13.zip

280.99 KB, Downloads: 47

Reply Support Not support

Use magic Report

steward00| Post time 4-29-2017 01:31:29 | Show all posts
cpegckc replied at 4-28-2017 23:24
Here is an easier way.

Credit:

ttry it next week, no keyboard
Reply Support Not support

Use magic Report

ibm555| Post time 4-30-2017 00:01:42 | Show all posts
glpub replied at 4-28-2017 13:08
Wrote simple script for creating bootable flashdrive from ubuntu iso, tested on my Hi13

Amateur question maybe .. but how do you run this script? Thx
Reply Support Not support

Use magic Report

Hackerjac| Post time 4-30-2017 05:18:21 | Show all posts
Edited by Hackerjac at 4-30-2017 16:51
cpegckc replied at 4-29-2017 09:24
Here is an easier way.

Credit:

Just testet and almost working, you forgot that the USB stick need to be named WINPE, i coulden boot it without that

Have ran into some more problems

2. Adding persistent storage (Optional)
If you want to add persistent storage, boot to Ubuntu,
cd /isodevice
dd if=/dev/zero of=casper-rw bs=1M count=4094
mkfs.ext4 -m 0 casper-rw

if i do that as one line, it tells me it don't know the m parameters, if i remove the - before m, if dosen't know the mkfs.ext4, if i make it as 2 lines, the first line gives me the error premission denied to open casper

3. Adjust screen scale (Optional), assume you have already booted to Ubuntu.
The default screen resulotion is 3000x2000.
The font is very small and difficult to see.
Click System settings -> Displays
Set "Scale for menu and title bars" = 2, then apply.

When doing that and apply, nothing happens

Have send you an pm
I do NOT work for Chuwi. Please DO NOT pm or email me with problems you may have!
Reply Support Not support

Use magic Report

cpegckc| Post time 4-30-2017 07:52:19 | Show all posts
Hackerjac replied at 4-30-2017 05:18
Just testet and almost working, you forgot that the USB stick need to be named WINPE, i coulden boo ...

I don't need to named the USB stick to WINPE. I am using Bios version v114.
I set USB boot to be my first boot order.
It works for me for many times for different USB sticks. It never fails.

cd /isodevice
dd if=/dev/zero of=casper-rw bs=1M count=4094
mkfs.ext4 -m 0 casper-rw

They are 3 seperate lines. You need to run them one by one.
Basic Linux knowledge is expected.


3. Adjust screen scale (Optional), assume you have already booted to Ubuntu.
When doing that and apply, nothing happens




It works for me.


Reply Support Not support

Use magic Report

Hackerjac| Post time 4-30-2017 10:49:49 | Show all posts
cpegckc replied at 4-30-2017 17:52
I don't need to named the USB stick to WINPE. I am using Bios version v114.
I set USB boot to be m ...

Seems i got it working now, but the Hi13 needs to be charged
I do NOT work for Chuwi. Please DO NOT pm or email me with problems you may have!
Reply Support Not support

Use magic Report

glpub| Post time 4-30-2017 22:29:39 | Show all posts
Did someone get working cameras on Linux?
Reply Support Not support

Use magic Report

steward00| Post time 5-1-2017 01:39:42 | Show all posts
glpub replied at 4-30-2017 22:29
Did someone get working cameras on Linux?

+1,
can you guys test the basic function of Linux like network, touch screen, stylus, camera etc, THX
Reply Support Not support

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Quick Reply To Top Return to the list