J’avais mis un clone de carte SD trouvé pour XBMC Média Center.
J’ai essayé la liste suivante sans succès :
root/root
root/openelec
root/no password
kodi/no password
osmc/osmc
Les premieres commandes :
$ uname -a
Linux raspbmc 3.6.11 #2 PREEMPT Wed Mar 13 17:12:47 UTC 2013 armv6l GNU/Linux
$ sudo dumpe2fs -h $(df | awk '/\/$/ {print $1}') | grep created
dumpe2fs 1.42.5 (29-Jul-2012)
Filesystem created: Sat Apr 6 13:02:54 2013$ sudo apt-get update
$ cat /proc/cpuinfo
Processor : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 795.44
Features : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2708
Revision : 000f
Serial : 000000005d501bc8
$ sudo apt-get upgrade
...
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 22720 files and directories currently installed.)
Preparing to replace base-files 7.1 (using .../base-files_7.1wheezy11+rpi1_armhf.deb) ...
Unpacking replacement base-files ...
Processing triggers for install-info ...
Setting up base-files (7.1wheezy11+rpi1) ...
Installing new version of config file /etc/debian_version ...
Configuration file `/etc/issue'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** issue (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/os-release ...
(Reading database ... 22724 files and directories currently ..
...
insserv: warning: script 'xinetd' missing LSB tags and overrides
--> Blocage
OSMC ou KODI : https://raspy-world.com/raspberry-pi-3-media-center-osmc-kodi/ : Kodi est un logiciel opensource média-center qui va vous permettre d’écouter de la musique, de regarder des vidéos, jouer à des jeux vidéo ou regarder vos photos de vacance..
On va dire qu’avec 8-10 Raspberry cela serait parfait. Pour l’instant j’ai essayé ELK sur un Raspberry pas assez puissant (manque de RAM, merci Java), par contre Jeedom, NGNIX, Munin, OSMC ont parfaitement fonctionnés.
Première étape : Connexion SSH sur OSMC, il suffit de regarder dans les paramètres pour trouver l’IP : .
Ensuite on fait un ssh sur l’IP avec le login osmc et le mot de passe osmc :
$ ssh osmc@192.168.0.28
osmc@192.168.0.28's password:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Updating APT cache. Please be patient.
Generating locales (this might take a while)...
fr_FR.UTF-8... done
Generation complete.
osmc@osmc:~$
On commence par une mise à jours :
osmc@osmc:~$ sudo apt-get update
osmc@osmc:~$ df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
devtmpfs 362M 0 362M 0% /dev
tmpfs 367M 19M 348M 6% /run
/dev/mmcblk0p2 29G 2,1G 26G 8% /
tmpfs 367M 0 367M 0% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 367M 0 367M 0% /sys/fs/cgroup
/dev/mmcblk0p1 240M 22M 219M 9% /boot
tmpfs 74M 0 74M 0% /run/user/1000
root@osmc:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111,8G 0 disk
mmcblk0 179:0 0 29,7G 0 disk
├─mmcblk0p1 179:1 0 243M 0 part /boot
└─mmcblk0p2 179:2 0 29,5G 0 part /
root@osmc:~# sudo apt install rsync
....
root@osmc:~# sudo fdisk /dev/sda
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x64f9ca91.
Command (m for help): p
Disk /dev/sda: 111,8 GiB, 120034123776 bytes, 234441648 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: 0x64f9ca91
Command (m for help): d
No partition is defined yet!
Could not delete partition 1995033425
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
root@osmc:~# sudo fdisk /dev/sda
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x7ac27f0a.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-234441647, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-234441647, default 234441647):
Created a new partition 1 of type 'Linux' and of size 111,8 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
root@osmc:~# sudo mke2fs -t ext4 -L rootfs /dev/sda1
mke2fs 1.42.12 (29-Aug-2014)
En train de créer un système de fichiers avec 29304950 4k blocs et 7331840 i-noeuds.
UUID de système de fichiers=c8478b72-fcaf-4dc7-87a7-5156cc19efab
Superblocs de secours stockés sur les blocs :
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocation des tables de groupe : complété
Écriture des tables d'i-noeuds : complété
Création du journal (32768 blocs) : complété
Écriture des superblocs et de l'information de comptabilité du système de
fichiers : complété
root@osmc:~# sudo mount /dev/sda1 /mnt
--> Arrêt de tous les services, pour avoir la liste : root@osmc:~# service --status-all
root@osmc:~# sudo rsync -avx / /mnt
sending incremental file list
...
--> 6 heures de copie !
...
sent 1,258,978,550 bytes received 742,144 bytes 91,619.38 bytes/sec
total size is 2,002,639,532 speedup is 1.59
...
..
osmc@osmc:~$ df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
devtmpfs 362M 0 362M 0% /dev
tmpfs 367M 38M 330M 11% /run
/dev/mmcblk0p2 29G 2,2G 26G 8% /
tmpfs 367M 0 367M 0% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 367M 0 367M 0% /sys/fs/cgroup
/dev/mmcblk0p1 240M 22M 219M 9% /boot
/dev/sda1 110G 2,2G 103G 3% /mnt
tmpfs 74M 0 74M 0% /run/user/1000
osmc@osmc:~$ sudo cp /boot/cmdline.txt /boot/cmdline.txt.orig
osmc@osmc:~$ cat /boot/cmdline.txt
root=/dev/mmcblk0p2 rootfstype=ext4 rootwait quiet osmcdev=rbp2
osmc@osmc:~$ sudo vi /boot/cmdline.txt
osmc@osmc:~$ cat /boot/cmdline.txt
root=/dev/sda1 rootfstype=ext4 rootwait quiet osmcdev=rbp2
osmc@osmc:~$ cat /mnt/etc/fstab
/dev/mmcblk0p1 /boot vfat defaults,noatime 0 0
/dev/sda1 / ext4 defaults,noatime 0 0/dev/mmcblk0p2 /old ext4 defaults,noatime 0 0
Quelques statistiques sur le disque SSD & la SD Card (avant le reboot):
Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site. Si vous continuez à utiliser ce dernier, nous considérerons que vous acceptez l'utilisation des cookies.Ok