Hallo Gemeinde,
alles war so schön mit meinem rPi. Alles, was ich wollte - lief. Schön war die Zeit.
Dennoch verabschiedete sich beim letzten Upgrade das Dateisystem und (gerade ich) hatte kein aktuelles Backup.
Dem will ich nun vorbeugen. Ein Script, ein zweiter Stick (am aktiven Hub) und alles wird gut.
Im Grunde läuft der ja auch, allerdings blinkt der alte Stick nun mit und ich habe Zugriffsprobleme beim Einbinden in meinem NAS (DS713+) Via Fedora auf dem Notebook komme ich auf beide Sticks bzw. auf die Mountpoints.
Des weiteren gibt es Probleme beim Auswerten der Sticks via "blkid" und "fdisk". So recht kann ich denen nicht glauben.
Wer kann hier mir auf die Sprünge helfen?
Fangen wir im Urschleim an
ZitatAlles anzeigen
pi@mariosds ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 005: ID 24ae:2000
Bus 001 Device 006: ID 05dc:a833 Lexar Media, Inc.
Bus 001 Device 007: ID 13fe:5100 Kingston Technology Company Inc.
Bus 001 Device 008: ID 051d:0002 American Power Conv
Zitat
pi@mariosds ~ $ sudo blkid
/dev/sda1: UUID="a9035bf3-c448-49d1-8e8f-1760d30fc73f" TYPE="ext4"
/dev/sdb1: UUID="e053c322-c15e-4444-837b-cab0daaf2f7d" TYPE="ext4"
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="2654-BFC0" TYPE="vfat"
/dev/mmcblk0p2: UUID="548da502-ebde-45c0-9ab2-de5e2431ee0b" TYPE="ext4"
Und jetzt mein Problem.
ZitatAlles anzeigen
pi@mariosds ~ $ sudo fdisk -lDisk /dev/mmcblk0: 15.9 GB, 15931539456 bytes
4 heads, 16 sectors/track, 486192 cylinders, total 31116288 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: 0x0002c262Device Boot Start End Blocks Id System
/dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA)
/dev/mmcblk0p2 122880 31116287 15496704 83 LinuxDisk /dev/sda: 32.0 GB, 32019316736 bytes
255 heads, 63 sectors/track, 3892 cylinders, total 62537728 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: 0x0006e061Device Boot Start End Blocks Id System
/dev/sda1 * 2048 62533631 31265792 c W95 FAT32 (LBA)Disk /dev/sdb: 31.6 GB, 31618498560 bytes
255 heads, 63 sectors/track, 3844 cylinders, total 61754880 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: 0xc3072e18Device Boot Start End Blocks Id System
/dev/sdb1 2048 61753343 30875648 83 Linux
Ich gestehe, beide Sticks sind definitiv ext4 formatiert.
Gemountet will ich die Sticks mittels fstab haben.
ZitatAlles anzeigen
pi@mariosds ~ $ sudo cat /etc/fstab
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap[on|off] for that# USB Stick Blau
UUID=e053c322-c15e-4444-837b-cab0daaf2f7d /media/hdd ext4 noatime,sync,rw 0 0# USB Stick Weiß - tägliches Backup
UUID=a9035bf3-c448-49d1-8e8f-1760d30fc73f /media/backup ext4 noatime,sync,rw 0 0
Heraus gekommen ist nun alles ein wenig Anders.
ZitatAlles anzeigen
Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
rootfs 15190708 4007164 10522392 28% /
/dev/root 15190708 4007164 10522392 28% /
devtmpfs 219832 0 219832 0% /dev
tmpfs 44800 748 44052 2% /run
tmpfs 5120 0 5120 0% /run/lock
/dev/sda1 30259228 17388492 11310572 61% /media/hdd
/dev/sda1 30643204 15923312 13140220 55% /media/backup
/dev/sdb1 30259228 17388492 11310572 61% /media/hdd
tmpfs 89580 0 89580 0% /run/shm
/dev/mmcblk0p1 57288 9664 47624 17% /bootpi@mariosds ~ $ sudo df -l
Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
rootfs 15190708 4007164 10522392 28% /
/dev/root 15190708 4007164 10522392 28% /
devtmpfs 219832 0 219832 0% /dev
tmpfs 44800 748 44052 2% /run
tmpfs 5120 0 5120 0% /run/lock
/dev/sda1 30259228 17388492 11310572 61% /media/hdd
/dev/sda1 30643204 15923312 13140220 55% /media/backup
/dev/sdb1 30259228 17388492 11310572 61% /media/hdd
tmpfs 89580 0 89580 0% /run/shm
/dev/mmcblk0p1 57288 9664 47624 17% /boot
Ein weiteres Problem ist die Rechtevergabe. Ich kann in putty hinein kriechen, aber die Rechte des Ordners /media/backup zu ändern, erlaubt er mir nicht. Er schluckt zwar meine Änderungswünsche ohne Meldung, aber ändern tut sich nichts
Zitat
pi@mariosds ~ $ sudo ls -l /media
insgesamt 12
drwxr-xr-x 4 root root 4096 Jul 7 01:38 backup
drwxrwxrwx 8 root root 4096 Jul 6 20:09 hdd
drwxrwxrwx 2 root root 4096 Jul 6 02:26 usb0
Das sieht alles nicht aus.
LG theMario