Problems with icub-live 6.0 image #117
-
Since we were recently updating everything on iCubParis02 we noticed there was an icub-live 6.0 and decided to give it a try. The first thing we notice is that the icub@icub-desktop:~/Downloads/pc104-images$ sudo ./icub_iso2usb.sh -f icub-live_6.0-16.04.05-rt-amd64.iso -t sdb
checking mkfs.ext4 executable..
/sbin/mkfs.ext4
checking install-mbr executable..
/sbin/install-mbr
checking syslinux executable..
/usr/bin/syslinux
checking 7z executable..
/usr/bin/7z
checking mkdosfs executable..
/sbin/mkdosfs
checking mkdiskimage executable..
/usr/bin/mkdiskimage
checking parted executable..
/sbin/parted
[07-06-2016 16:20:50] ./icub_iso2usb.sh started: please do not unplug device sdb until finished.
Warning: more than 1024 cylinders (5128).
Not all BIOSes will be able to boot this device.
Warning: You requested a partition from 5128MB to 11.2GB.
The closest location we can manage is 5377MB to 11.2GB.
Is this still acceptable to you?
Yes/No? yes
Information: You may need to update /etc/fstab.
mv: cannot stat ‘/tmp/tmp.XcEVftLJs2/isolinux’: No such file or directory
[07-06-2016 17:14:02] ./icub_iso2usb.sh ERROR : failed to copy syslinux files on target device Any idea? |
Beta Was this translation helpful? Give feedback.
Replies: 18 comments
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hello @Tobias-Fischer I think you're right, for some reason I was following some old instructions maybe. So, I followed those instructions and did:
The last instruction is giving me trouble since I can't execute the script. I tried Additional info: icub@icub-desktop:/media/icub/C2F8-C2C6/utils/linux$ ls -la
total 480
drwx------ 2 icub icub 8192 Jun 3 14:48 .
drwx------ 6 icub icub 8192 Jun 3 14:48 ..
-rw-r--r-- 1 icub icub 221776 Mar 7 13:06 extlinux
-rw-r--r-- 1 icub icub 16258 Mar 7 13:06 makeboot.sh
-rw-r--r-- 1 icub icub 213600 Mar 7 13:06 syslinux
-rw-r--r-- 1 icub icub 23 Mar 7 13:06 VERSION.txt icub@icub-desktop:/media/icub/C2F8-C2C6/utils/linux$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 487M 0 part /boot/efi
├─sda2 8:2 0 94.1G 0 part /media/icub/7a27a43c-d769-44e1-a93e-334e4d443493
├─sda3 8:3 0 4G 0 part [SWAP]
└─sda4 8:4 0 367.2G 0 part /
sdb 8:16 1 15.4G 0 disk
└─sdb1 8:17 1 15.4G 0 part /media/icub/C2F8-C2C6
sr0 11:0 1 1024M 0 rom |
Beta Was this translation helpful? Give feedback.
-
@mbrunettini might give some help too. |
Beta Was this translation helpful? Give feedback.
-
Thanks @pattacini hope Matteo gives us a hand soon :) |
Beta Was this translation helpful? Give feedback.
-
It looks like the filesystem you are working on does not support permissions because it is fat32. So you cannot chmod something on that filesystem. So you can solve it by changing how the drive is mounted. Another way is to not try to execute the script directly e.g. by ./makeboot.sh but by sh makeboot.sh (or sudo sh makeboot.sh). Replace sh with whatever interpreter the script requires (check the first line of the script). If this works as expected, maybe someone can add that to the manual. |
Beta Was this translation helpful? Give feedback.
-
You can simply execute the script by |
Beta Was this translation helpful? Give feedback.
-
Instructions updated. |
Beta Was this translation helpful? Give feedback.
-
@mbrunettini @lschilli @jeljaik Thanks for the help guys! So recap. We tried
but whatever... Anyways, I just thought I would share my experience with the script. icub@icub-desktop:/media/icub/C2F8-C2C6/utils/linux$ sudo bash makeboot.sh
[sudo] password for icub:
No destination partition was assigned!
makeboot.sh - To make the device bootable with syslinux
Usage: makeboot.sh [OPTION] partition_device
Options:
-b, --batch-mode batch, unattended mode. Use carefully! DANGEROUS!!!
-L, --LABEL STRING set device via LABEL if LABEL exists
-U, --UUID STRING set device via UUID
Note:
Device assignment priority: Partition name > UUID > LABEL (if not only one NAME-TYPE is assigned)
Ex:
To make "/dev/sdg1" bootable on GNU/Linux:
makeboot.sh /dev/sdg1
To make device label "LABEL_STRING" bootable on GNU/Linux:
makeboot.sh -L LABEL_STRING
To make device with UUID "UUID_STRING" bootable on GNU/Linux:
makeboot.sh -U UUID_STRING Realized it needed a drive so I ran: icub@icub-desktop:/media/icub/C2F8-C2C6/utils/linux$ mount -l | grep dev/
/dev/sda4 on / type ext4 (rw,errors=remount-ro)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
/dev/sda1 on /boot/efi type vfat (rw)
/dev/sda2 on /media/icub/7a27a43c-d769-44e1-a93e-334e4d443493 type ext4 (rw,nosuid,nodev,uhelper=udisks2)
/dev/sdb1 on /media/icub/C2F8-C2C6 type vfat (rw,rce)
So then I re-executed with the drive: icub@icub-desktop:/media/icub/C2F8-C2C6/utils/linux$ sudo bash makeboot.sh /dev/sdb1
This command will install MBR and syslinux bootloader on this machine
--------------------------------------------
Machine: V-P8H67E:
Model: Generic Flash Disk (scsi)
Disk /dev/sdb: 16.6GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 16.6GB 16.6GB primary fat32
--------------------------------------------
Are you sure you want to continue?
[y/n] y
OK! Let's do it!
--------------------------------------------
File system of /dev/sdb1: vfat
--------------------------------------------
sdb1 is not marked as bootable! The partition table of /dev/sdb:
--------------------------------------------
V-P8H67E:
Model: Generic Flash Disk (scsi)
Disk /dev/sdb: 16.6GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 16.6GB 16.6GB primary fat32
--------------------------------------------
Do you want to mark it as bootable ?
[y/n] y
OK! Let's do it!
Running: parted -s /dev/sdb set 1 boot on
--------------------------------------------
Do you want to install mbr on /dev/sdb on this machine "V-P8H67E" ?
[y/n] y
OK! Let's do it!
--------------------------------------------
Do you want to install the SYSLINUX bootloader on /dev/sdb1 on this machine "V-P8H67E" ?
[y/n] y
OK! Let's do it!
A filesystem supporting Unix file mode for syslinux is required. Copying syslinux from FAT to /tmp/...
‘/media/icub/C2F8-C2C6/utils/linux/syslinux’ -> ‘/tmp/syslinux_tmp.LPWcDP/syslinux’
Running: /tmp/syslinux_tmp.LPWcDP/syslinux -d syslinux -f -i /dev/sdb1
done!
//NOTE// If your USB flash drive fails to boot (maybe buggy BIOS), try to use "syslinux -d syslinux -fs /dev/sdb1", i.e. running with "-fs". So firstly - kudos on the script! Apart from the bash issue, it is very straightforward. two notes:
I will test the image either today or tomorrow to make sure everything went well. Closing for now! |
Beta Was this translation helpful? Give feedback.
-
@rlober : I'm happy it worked. The script is a common script used by several LIVE linux (eg. Clonezilla). |
Beta Was this translation helpful? Give feedback.
-
@rlober : side note concerning:
|
Beta Was this translation helpful? Give feedback.
-
@lschilli good to know thanks for the info! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
First, the image is not ment to be executed on a virtual machine, but on the real iCub Hardware: the startup process rely on hardware which can't be emulated on a VM. |
Beta Was this translation helpful? Give feedback.
-
I followed the instructions for the new images and just executed the script. We're running the image on a virtual machine first in order to adapt some network settings for our local network setup here etc. That hasn't been a problem with the old image. |
Beta Was this translation helpful? Give feedback.
-
Just to be sure: which version have you downloaded and which script have you executed? |
Beta Was this translation helpful? Give feedback.
-
The image is the second-to-last image, coming in the zip-file: |
Beta Was this translation helpful? Give feedback.
-
The persistence in the above version is only a file. I think something wrong has happend while creating the USB.
Let us know |
Beta Was this translation helpful? Give feedback.
-
My USB stick is slightly smaller than 8GB, it's 7.3GB. So maybe that's what caused the problem. |
Beta Was this translation helpful? Give feedback.
Hi,
I think you follow old instructions. The new instructions are here: http://wiki.icub.org/wiki/The_Linux_on_the_pc104#Burn_the_Debian_image_version_6.x_.28latest.29