Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rpi2] Ubuntu Core2 install #332

Closed
130s opened this issue Jan 6, 2019 · 4 comments
Closed

[rpi2] Ubuntu Core2 install #332

130s opened this issue Jan 6, 2019 · 4 comments

Comments

@130s
Copy link
Collaborator

130s commented Jan 6, 2019

Thought #327 (comment) went well but now I have #330 so something may have gone wrong.

@130s
Copy link
Collaborator Author

130s commented Jan 27, 2019

Stuck at #330 (comment). So now I'm trying Core again using dd, not ddrescue based on the advice on snapcraft.io

Same step as #327 (comment) for formatting as FAT32.

$ xzcat ubuntu-core-16-pi2.img.xz | sudo dd of=/dev/mmcblk0 bs=32M
[sudo] password for n130s: 
0+56926 records in
0+56926 records out
467571712 bytes (468 MB, 446 MiB) copied, 36.6332 s, 12.8 MB/s
$ sync
$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 465.8G  0 disk 
├─sda1        8:1    0     1K  0 part 
├─sda2        8:2    0     4G  0 part [SWAP]
└─sda5        8:5    0 461.8G  0 part /
sr0          11:0    1  1024M  0 rom  
mmcblk0     179:0    0  14.4G  0 disk 
└─mmcblk0p1 179:1    0  14.4G  0 part 
$ 

So far so good. Now SD card ejected and will try on RPi2.

@130s
Copy link
Collaborator Author

130s commented Jan 27, 2019

Same error as #327 (comment) keeps happening on RPi2.

[ 242.936702] mmc0: error -110 whilst initialising SD card

@130s
Copy link
Collaborator Author

130s commented Jan 27, 2019

Got tired of trieals, then quit using the a few years old SD card, got a branch SD card 32GB.

SD card plugged into RPi2, init process seemed to have gone well without eminent error but at some it got stuck. I remember I was asked something like "Enter to configure" so I entered but then monitor blacked out and nothing happened after that. I also remember ethernet cable was NOT plugged when I was asked about "configure".

Re-stored the SD card. This time ethernet that has internet access is plugged. Seems to be progressing! Now I'm asked "Configure the network ..." on the monitor.

$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 465.8G  0 disk
├─sda1        8:1    0     1K  0 part
├─sda2        8:2    0     4G  0 part [SWAP]
└─sda5        8:5    0 461.8G  0 part /
sr0          11:0    1  1024M  0 rom
mmcblk0     179:0    0  29.7G  0 disk
├─mmcblk0p1 179:1    0   128M  0 part /media/n130s/system-boot
└─mmcblk0p2 179:2    0  29.6G  0 part /media/n130s/writable
$ umount /media/n130s/system-boot
$ umount /media/n130s/writable
$ sudo fdisk /dev/mmcblk0p
[sudo] password for n130s:
$ sudo fdisk /dev/mmcblk0
[sudo] password for n130s:

Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
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: 0x68c4443d

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1 *      2048   264191   262144  128M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      264192 62304687 62040496 29.6G 83 Linux

Command (m for help): d
Partition number (1,2, default 2):

Partition 2 has been deleted.

Command (m for help): p
Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
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: 0x68c4443d

Device         Boot Start    End Sectors  Size Id Type
/dev/mmcblk0p1 *     2048 264191  262144  128M  c W95 FAT32 (LBA)

Command (m for help): d
Selected partition 1
Partition 1 has been deleted.

Command (m for help): ^R
n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
      e   extended (container for logical partitions)
      Select (default p):

Using default response p.
Partition number (1-4, default 1):
First sector (2048-62333951, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-62333951, default 62333951):

Created a new partition 1 of type 'Linux' and of size 29.7 GiB.

Command (m for help): p
Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
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: 0x68c4443d

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk0p1       2048 62333951 62331904 29.7G 83 Linux

Command (m for help): t
Selected partition 1
Partition type (type L to list all types): b
Changed type of partition 'Linux' to 'W95 FAT32'.

Command (m for help): p
Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
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: 0x68c4443d

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk0p1       2048 62333951 62331904 29.7G  b W95 FAT32

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

$ sync
$ sudo mkfs.vfat /dev/mmcblk0
mkfs.fat 3.0.28 (2015-05-16)
$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 465.8G  0 disk
├─sda1        8:1    0     1K  0 part
├─sda2        8:2    0     4G  0 part [SWAP]
└─sda5        8:5    0 461.8G  0 part /
sr0          11:0    1  1024M  0 rom
mmcblk0     179:0    0  29.7G  0 disk
└─mmcblk0p1 179:1    0  29.7G  0 part
$ umount /dev/mmcblk0
umount: /dev/mmcblk0: not mounted
$ xzcat ubuntu-core-16-pi2.img.xz | sudo dd of=/dev/mmcblk0 bs=32M
0+56928 records in
0+56928 records out
467571712 bytes (468 MB, 446 MiB) copied, 2.23204 s, 209 MB/s
$ sync
$ lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda       8:0    0 465.8G  0 disk
├─sda1    8:1    0     1K  0 part
├─sda2    8:2    0     4G  0 part [SWAP]
└─sda5    8:5    0 461.8G  0 part /
sr0      11:0    1  1024M  0 rom
mmcblk0 179:0    0  29.7G  0 disk /media/n130s/5BF0-DB29
$ umount /media/n130s/5BF0-DB29
$

@130s
Copy link
Collaborator Author

130s commented Feb 2, 2019

The package originally got stuck at installation #330 (comment) seems to have been installed. So for now I ignore the old SD card and close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant