cubietruck Einrichtung mit Igor Image - Erarbeitung einer Anleitung für dummies

Begonnen von Franz Tenbrock, 09 August 2014, 15:03:19

Vorheriges Thema - Nächstes Thema

HCS

Zitat von: MadCat am 23 August 2014, 20:04:39
Hab das ganze jetzt noch einmal aufgesetzt und beim Einrichten der Platte kamen folgende Meldungen.

sed: can't read /boot/uEnv.ct: No such file or directory
sed: can't read /boot/uEnv.cb2: No such file or directory
Creating hard drive rootfs ... up to 5 min
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: connection unexpectedly closed (28723 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
sed: couldn't open temporary file /mnt/etc/sedh7pHzQ: Read-only file system

die ersten beiden "sed: can't read" kann man ignorieren.
Aber der rsync kann wohl nicht auf Deine Platte kopieren.

Zeig mal (mit der SD-Karte gebootet) die Ausgabe von
fdisk -l /dev/sda
und
cat /etc/fstab
und
cat /proc/partitions

MadCat

Das sieht bei mir dann so aus.


root@cubie:~# fdisk -l /dev/sda

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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
Disk identifier: 0x6c473de3

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048   314574847   157286400   83  Linux
/dev/sda2       314574848   377489407    31457280   83  Linux
/dev/sda3       377489408   625142447   123826520   83  Linux

root@cubie:~# cat /etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/mmcblk0p1  /           ext4    defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro        0       0
root@cubie:~# cat /proc/partitions
major minor  #blocks  name

  93        0    7520256 nand
  93        1      16384 nand1
  93        2    7487488 nand2
179        0    7761920 mmcblk0
179        1    7760896 mmcblk0p1
   8        0  312571224 sda
   8        1  157286400 sda1
   8        2   31457280 sda2
   8        3  123826520 sda3
root@cubie:~#


moonsorrox

Ich jetzt mal als Linux Anfänger... für mich sieht das so aus als wenn die erste Partition zu klein ist.
Die SSD oder HD wurde nicht richtig partitioniert....
Ich hatte gefragt weiter oben ob du die Platte auch nochmal mit fdisk partitioniert hast...
Evtl. is das die Ursache...!
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

MadCat

Ich habe das ganze System komplett noch einmal neu gemacht, Festplatte komplett gelöschtn neu Partitioniert, formatiert und die rootfs bearbeitet.

Der SDA1 habe ich 150G spendiert, denke mal das sollte reichen.

HCS


MadCat

Leider nein, wenn ich von der Platte Boote bricht er immer wieder ab und fängt von neuem an zu booten.

HCS

Die Platte brauchst Du nicht zu formatieren. Das macht das sata-install script. Es reicht, wenn man eine Partition einrichtet.
Mit welchem Dateisystem hast Du denn die Platte formatiert?

Und was meinst Du mit "und die rootfs bearbeitet"

MadCat

Nach dem der Cubie wieder komplett eingerichtet und ordentlich rebootet hat, habe ich Ihn ausgeschaltet, Festplatte dran gehangen, gebootet und die Platte als root bearbeitet

# fdisk -l

# fdisk /dev/sda

auf der Platte erst alles gelöscht

Partitioniert

und formatiert mit

# Mkfs.ext4 /dev/sda1

dann

# ./sata-install.sh

# mount /dev/nand1 /boot

# nano /boot/uEnv.txt

die Zeile "nand_root=/dev/nand2 rootwait" in "nand_root=/dev/sda1 rootwait" geändert

und ohne SD Karte rebootet.

Und da hängte die Platte sich dann auf


HCS

War alles richtig, was Du gemacht hast.
Lief das sata-install script dieses mal ohne Fehler durch?

Tip: Du kannst von der SD-Karte booten und in der uEnv.txt das rootfs wieder auf das nand zurückdrehen, dann musst Du nicht immer komplett neu installieren und kanst ab da einen neuen Anlauf mit der Platte machen.

in /etc/fstab (wenn vom NAND gebootet) sollte nun das stehen:
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/sda1  /           ext4    defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro        0       0

falls nicht, dann manuell anpassen (/dev/sda1)

Irgendwie habe ich Deine Platte im Verdacht. Hast Du noch eine andere, mit der Du es mal versuchen kannst?

MadCat

Hab derzeit leider nur die eine Platte frei, müsste dann erst einmal eine andere frei machen.
Werde aber jetzt erst einmal den Cubie noch mal hochfahren und nachsehen was in der Datei steht.

MadCat

Hab gerade von SD Karte gebootet 

nano /boot/uEnv.txt aufgerufen

aber der ist leer, kann also nicht auf den Nand umstellen.

HCS

ich würde nun:
von SD booten
uEnv.txt auf das NAND zurückdrehen
SD raus und vom NAND booten

mount /dev/sda1 /tmp
fsck /dev/sda1
df -h
cat /mnt/etc/fstab

oder die Platte an einen Linux-Rechner mit dran hängen und da mal das Dateisystem der ersten Partition checken.

Zitat von: MadCat am 24 August 2014, 10:31:00
Hab gerade von SD Karte gebootet 

nano /boot/uEnv.txt aufgerufen

aber der ist leer, kann also nicht auf den Nand umstellen.
Ja, musst Du erst mit mount /dev/nand1 /boot mounten

MadCat

Wenn ich den mount Befehl ausfüre, kommt das hier


root@cubie:~# mount /dev/nand1 /boot mounten
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
One can change the type of mount containing the directory dir:
       mount --make-shared dir
       mount --make-slave dir
       mount --make-private dir
       mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
       mount --make-rshared dir
       mount --make-rslave dir
       mount --make-rprivate dir
       mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .




HCS

hast Du wirklich
mount /dev/nand1 /boot mounten
eingegeben ?

Das "mounten" war Bestandteil von meinem Satz und nicht vom Kommando!

Puschel74

Hallo,

kleiner Tipp:
Setzt die Befehle die tatsächlich eingegeben werden sollen in die Raute-Tags.
Dann sieht auch jeder sofort was ist Befehl/Kommando und was ist Text  8)

Grüße
Zotac BI323 als Server mit DBLog
CUNO für FHT80B, 3 HM-Lan per vCCU, RasPi mit CUL433 für Somfy-Rollo (F2F), RasPi mit I2C(LM75) (F2F), RasPi für Panstamp+Vegetronix +SONOS(F2F)
Ich beantworte keine Supportanfragen per PM! Bitte im Forum suchen oder einen Beitrag erstellen.