|
Edited by mgmuras at 2015-11-14 02:03
Hi guys
First of all, thank you loboris for this great thread. I'm using Ubuntu 14.04.3 on OrangePI Plus booting and running linux partition on emmc memory. I wished to backup my current linux setup on sd card, but install_to_sdcard gives me an error. As you can see in below output sd card is correctly formated but then scripts stops with mount error. I'm using the newest kernel, script.bin and lib modules. SD card has 64GB capacity so it's not a problem and it's working correctly because I ran linux from it and used install_to_emmc after. Could you give me some assistance with complete this task?
- sudo install_to_sdcard
- Fri Nov 13 17:10:31 UTC 2015
- =================================
- Installing Linux system to sdcard
- =================================
- WARNING: SD CARD WILL BE ERASED !, Continue (y/N)? y
- Erasing SD CARD ...
- Creating new filesystem on SD CARD ...
- New filesystem created on /dev/mmcblk1.
- Partitioning SD CARD ...
- Creating boot & linux partitions
- OK.
- Formating fat partition ...
- fat partition formated.
- Formating linux partition (ext4), please wait ...
- linux partition formated.
- Instaling u-boot to SD CARD ...
- Mounting SD CARD partitions...
- mount: wrong fs type, bad option, bad superblock on /dev/mmcblk1p2,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ERROR mounting linux partitions...
Copy code- dmesg | tail
- [ 711.785374] mmcblk1:
- [ 714.552416] mmcblk1: p1 p2
- [ 737.320168] ==> rtl8188e_iol_efuse_patch
- [ 737.595588] RTL871X: nolinked power save leave
- [ 738.900077] RTL871X: nolinked power save enter
- [ 800.320180] ==> rtl8188e_iol_efuse_patch
- [ 800.563601] RTL871X: nolinked power save leave
- [ 801.870242] RTL871X: nolinked power save enter
- [ 836.710280] JBD2: no valid journal superblock found
- [ 836.710301] EXT4-fs (mmcblk1p2): error loading journal
Copy code- df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/mmcblk0p2 7.1G 2.0G 4.8G 30% /
- none 4.0K 0 4.0K 0% /sys/fs/cgroup
- udev 10M 4.0K 10M 1% /dev
- tmpfs 502M 0 502M 0% /tmp
- tmpfs 201M 500K 201M 1% /run
- none 5.0M 0 5.0M 0% /run/lock
- none 502M 4.0K 502M 1% /run/shm
- none 100M 0 100M 0% /run/user
- /dev/mmcblk0p1 64M 37M 28M 58% /media/boot
- /dev/sda1 291G 2.2G 289G 1% /media/usb
Copy code- fdisk -l
- Disk /dev/sda: 320.1 GB, 320072931328 bytes
- 255 heads, 63 sectors/track, 38913 cylinders, total 625142444 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: 0x1cf7bff2
- Device Boot Start End Blocks Id System
- /dev/sda1 2048 608757759 304377856 7 HPFS/NTFS/exFAT
- /dev/sda2 608757760 625141759 8192000 b W95 FAT32
- Disk /dev/mmcblk0: 7818 MB, 7818182656 bytes
- 4 heads, 16 sectors/track, 238592 cylinders, total 15269888 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: 0x7c9bee75
- Device Boot Start End Blocks Id System
- /dev/mmcblk0p1 40960 172031 65536 b W95 FAT32
- /dev/mmcblk0p2 172032 15269887 7548928 83 Linux
- Disk /dev/mmcblk0boot1: 4 MB, 4194304 bytes
- 4 heads, 16 sectors/track, 128 cylinders, total 8192 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: 0x00000000
- Disk /dev/mmcblk0boot1 doesn't contain a valid partition table
- Disk /dev/mmcblk0boot0: 4 MB, 4194304 bytes
- 4 heads, 16 sectors/track, 128 cylinders, total 8192 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: 0x00000000
- Disk /dev/mmcblk0boot0 doesn't contain a valid partition table
- Disk /dev/mmcblk1: 64.9 GB, 64906854400 bytes
- 4 heads, 16 sectors/track, 1980800 cylinders, total 126771200 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: 0xa8340c8c
- Device Boot Start End Blocks Id System
- /dev/mmcblk1p1 40960 172031 65536 b W95 FAT32
- /dev/mmcblk1p2 172032 126771199 63299584 83 Linux
Copy code- cat /etc/fstab
- # OrangePI fstab
- /dev/mmcblk0p2 / ext4 errors=remount-ro,noatime,nodiratime 0 1
- /dev/mmcblk0p1 /media/boot vfat defaults 0 0
- tmpfs /tmp tmpfs nodev,nosuid,mode=1777 0 0
- /dev/sda1 /media/usb ntfs nofail,uid=gmuras,gid=orangepi 0 0
Copy code
|
|