Re: cloned sd card is not booting
Hi, In my case, most of the time for ARM images I use as root(be careful!): more /dev/sdb /dev/sdc # I use sdb as source and sdc as destination sync It makes an exact copy and you don't have to care about options. Best regards, Alexis. Le 06/08/2014 05:44, Robert Moskowitz a écrit : This is a Fedora arm problem, but probably more experience with dd and sd cards here... SO I boot my Cubieboard2 from microSD. I grabbed 8 16GB cards from the bin at the MicroCenter checkout counter. They work fine for building F21 arm boots, but I am getting far enough into the process that if I do something wrong, I don't want to go all the way back to the beginning. I rather clone the card, play around, and soforth. So I tried using: sudo dd if=/dev/sdb of=/dev/sdc bs=4096 conv=notrunc,noerror; sync the target sd card has been previously use. The copy fails in use as follows: Mounting Configuration File System... [ OK ] Mounted Configuration File System. [ OK ] Found device /dev/disk/by-uuid/1dc878de-92d2-4a66-b352-f055a32473b9. [ OK ] Started dracut initqueue hook. [ OK ] Started Show Plymouth Boot Screen. [ OK ] Reached target Paths. [ OK ] Reached target Basic System. Starting dracut pre-mount hook... [ OK ] Reached target Remote File Systems (Pre). [ OK ] Reached target Remote File Systems. Starting File System Check on /dev/disk/by-uuid/1dc8...f055a32473b9... [ 13.911063] systemd-fsck[368]: _/: The filesystem size (according to the superblock) is 3587707 blocks [ OK ] Started dracut pre-mount hook. [ 13.919598] systemd-fsck[368]: The physical size of the device is 3548795 blocks [ 13.937109] systemd-fsck[368]: Either the superblock or the partition table is likely to be corrupt! [ 13.944962] systemd-fsck[368]: _/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. [ 13.950853] systemd-fsck[368]: (i.e., without -a or -p options) [ OK ] Started File System Check on /dev/disk/by-uuid/1dc87...2-f055a32473b9. Mounting /sysroot... [ 14.483857] random: nonblocking pool is initialized [ 14.571964] EXT4-fs (mmcblk0p3): bad geometry: block count 3587707 exceeds size of device (3548795 blocks) [FAILED] Failed to mount /sysroot. See 'systemctl status sysroot.mount' for details. [DEPEND] Dependency failed for Initrd Root File System. [DEPEND] Dependency failed for Reload Configuration from the Real Root. [ OK ] Stopped dracut pre-pivot and cleanup hook. [ OK ] Stopped target Initrd Default Target. [ OK ] Stopped dracut mount hook. [ OK ] Reached target Initrd File Systems. [ OK ] Stopped target Basic System. [ OK ] Stopped target System Initialization. Starting Emergency Shel Generating /run/initramfs/rdsosreport.txt Entering emergency mode. Exit the shell to continue. Type journalctl to view system logs. You might want to save /run/initramfs/rdsosreport.txt to a USB stick or /boot after mounting them and attach it to a bug report. :/# === I put the card back in my build system and looked at it with Gparted which shows the whole drive as unallocated, even though the system successfully mounted /boot (but not /). So the question is: HOw better can I clone the card? SDFormatter in Windows is one suggestion, but I don't want to have to jump over to the family XP system. thanks -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On Tue, 2014-08-05 at 23:44 -0400, Robert Moskowitz wrote: Starting File System Check on /dev/disk/by-uuid/1dc8...f055a32473b9... [ 13.911063] systemd-fsck[368]: _/: The filesystem size (according to the superblock) is 3587707 blocks [ OK ] Started dracut pre-mount hook. [ 13.919598] systemd-fsck[368]: The physical size of the device is 3548795 blocks [ 13.937109] systemd-fsck[368]: Either the superblock or the partition table is likely to be corrupt! [ 13.944962] systemd-fsck[368]: _/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. are the cards exactly the same size? It looks as if the card you copiued to is smaller than the one you copied from... What does fdisk -l report for disk size for the old and new cards? /Louis -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On 08/06/2014 05:26 AM, Louis Lagendijk wrote: On Tue, 2014-08-05 at 23:44 -0400, Robert Moskowitz wrote: Starting File System Check on /dev/disk/by-uuid/1dc8...f055a32473b9... [ 13.911063] systemd-fsck[368]: _/: The filesystem size (according to the superblock) is 3587707 blocks [ OK ] Started dracut pre-mount hook. [ 13.919598] systemd-fsck[368]: The physical size of the device is 3548795 blocks [ 13.937109] systemd-fsck[368]: Either the superblock or the partition table is likely to be corrupt! [ 13.944962] systemd-fsck[368]: _/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. are the cards exactly the same size? It looks as if the card you copiued to is smaller than the one you copied from... What does fdisk -l report for disk size for the old and new cards? IT DOES look like that. I will try the fdisk. I suspect that although they are marketed as 16GB, they vary due to manufacturing quality by a block or so. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On 08/06/2014 04:26 AM, Alexis Jeandet wrote: Hi, In my case, most of the time for ARM images I use as root(be careful!): more /dev/sdb /dev/sdc # I use sdb as source and sdc as destination sync It makes an exact copy and you don't have to care about options. I am assuming that I unmount the drives first. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On 08/06/2014 05:26 AM, Louis Lagendijk wrote: On Tue, 2014-08-05 at 23:44 -0400, Robert Moskowitz wrote: Starting File System Check on /dev/disk/by-uuid/1dc8...f055a32473b9... [ 13.911063] systemd-fsck[368]: _/: The filesystem size (according to the superblock) is 3587707 blocks [ OK ] Started dracut pre-mount hook. [ 13.919598] systemd-fsck[368]: The physical size of the device is 3548795 blocks [ 13.937109] systemd-fsck[368]: Either the superblock or the partition table is likely to be corrupt! [ 13.944962] systemd-fsck[368]: _/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. are the cards exactly the same size? It looks as if the card you copiued to is smaller than the one you copied from... What does fdisk -l report for disk size for the old and new cards? Well, yes they are different: # fdisk -l /dev/sdb Disk /dev/sdb: 14.7 GiB, 15720251392 bytes, 30703616 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: 0xd42361d8 # fdisk -l /dev/sdc Disk /dev/sdc: 14.5 GiB, 15560867840 bytes, 30392320 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: 0xed0dd3b4 And nothing I can do about that. Seems that the size is based on whatever fits based on quality of the chip. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On 08/06/2014 04:26 AM, Alexis Jeandet wrote: Hi, In my case, most of the time for ARM images I use as root(be careful!): more /dev/sdb /dev/sdc # I use sdb as source and sdc as destination sync It makes an exact copy and you don't have to care about options. Using fdisk and parted, I can see my problem, and this won't work. The target card IS smaller than the source. But I can 'fix' that if there is a partition resize command where I can specify the end block in the resize. No reason I cannot shrink sdb3 to what will fit on the target card. Best regards, Alexis. Le 06/08/2014 05:44, Robert Moskowitz a écrit : This is a Fedora arm problem, but probably more experience with dd and sd cards here... SO I boot my Cubieboard2 from microSD. I grabbed 8 16GB cards from the bin at the MicroCenter checkout counter. They work fine for building F21 arm boots, but I am getting far enough into the process that if I do something wrong, I don't want to go all the way back to the beginning. I rather clone the card, play around, and soforth. So I tried using: sudo dd if=/dev/sdb of=/dev/sdc bs=4096 conv=notrunc,noerror; sync the target sd card has been previously use. The copy fails in use as follows: Mounting Configuration File System... [ OK ] Mounted Configuration File System. [ OK ] Found device /dev/disk/by-uuid/1dc878de-92d2-4a66-b352-f055a32473b9. [ OK ] Started dracut initqueue hook. [ OK ] Started Show Plymouth Boot Screen. [ OK ] Reached target Paths. [ OK ] Reached target Basic System. Starting dracut pre-mount hook... [ OK ] Reached target Remote File Systems (Pre). [ OK ] Reached target Remote File Systems. Starting File System Check on /dev/disk/by-uuid/1dc8...f055a32473b9... [ 13.911063] systemd-fsck[368]: _/: The filesystem size (according to the superblock) is 3587707 blocks [ OK ] Started dracut pre-mount hook. [ 13.919598] systemd-fsck[368]: The physical size of the device is 3548795 blocks [ 13.937109] systemd-fsck[368]: Either the superblock or the partition table is likely to be corrupt! [ 13.944962] systemd-fsck[368]: _/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. [ 13.950853] systemd-fsck[368]: (i.e., without -a or -p options) [ OK ] Started File System Check on /dev/disk/by-uuid/1dc87...2-f055a32473b9. Mounting /sysroot... [ 14.483857] random: nonblocking pool is initialized [ 14.571964] EXT4-fs (mmcblk0p3): bad geometry: block count 3587707 exceeds size of device (3548795 blocks) [FAILED] Failed to mount /sysroot. See 'systemctl status sysroot.mount' for details. [DEPEND] Dependency failed for Initrd Root File System. [DEPEND] Dependency failed for Reload Configuration from the Real Root. [ OK ] Stopped dracut pre-pivot and cleanup hook. [ OK ] Stopped target Initrd Default Target. [ OK ] Stopped dracut mount hook. [ OK ] Reached target Initrd File Systems. [ OK ] Stopped target Basic System. [ OK ] Stopped target System Initialization. Starting Emergency Shel Generating /run/initramfs/rdsosreport.txt Entering emergency mode. Exit the shell to continue. Type journalctl to view system logs. You might want to save /run/initramfs/rdsosreport.txt to a USB stick or /boot after mounting them and attach it to a bug report. :/# === I put the card back in my build system and looked at it with Gparted which shows the whole drive as unallocated, even though the system successfully mounted /boot (but not /). So the question is: HOw better can I clone the card? SDFormatter in Windows is one suggestion, but I don't want to have to jump over to the family XP system. thanks -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On 08/06/2014 02:16 PM, Robert Moskowitz wrote: And nothing I can do about that. Seems that the size is based on whatever fits based on quality of the chip. http://media.ccc.de/browse/congress/2013/30C3_-_5294_-_en_-_saal_1_-_201312291400_-_the_exploration_and_exploitation_of_an_sd_memory_card_-_bunnie_-_xobs.html Watch this, and you never look at an SD-Card the same ever again. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
Robert Moskowitz r...@htt-consult.com writes: I suspect that although they are marketed as 16GB, they vary due to manufacturing quality by a block or so. The other thing to consider if it is a bargain bin drive is that the drive might be a counterfeit with mismarked capacity. http://www.ebay.com/gds/All-About-Fake-Flash-Drives-2013-/1000177553258/g.html -wolfgang -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On 08/06/2014 09:58 AM, Wolfgang S. Rupprecht wrote: Robert Moskowitz r...@htt-consult.com writes: I suspect that although they are marketed as 16GB, they vary due to manufacturing quality by a block or so. The other thing to consider if it is a bargain bin drive is that the drive might be a counterfeit with mismarked capacity. http://www.ebay.com/gds/All-About-Fake-Flash-Drives-2013-/1000177553258/g.html These are not sold under any name. They are 'blank' packaged. So I figured that whatever that whatever is 'wrong' with them in perhaps malware, would get blown away by Linux. I once DID buy a usb drive from an online store that had a hidden partition with some strange looking stuff -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On Wed, 2014-08-06 at 08:16 -0400, Robert Moskowitz wrote: On 08/06/2014 05:26 AM, Louis Lagendijk wrote: On Tue, 2014-08-05 at 23:44 -0400, Robert Moskowitz wrote: Starting File System Check on /dev/disk/by-uuid/1dc8...f055a32473b9... [ 13.911063] systemd-fsck[368]: _/: The filesystem size (according to the superblock) is 3587707 blocks [ OK ] Started dracut pre-mount hook. [ 13.919598] systemd-fsck[368]: The physical size of the device is 3548795 blocks [ 13.937109] systemd-fsck[368]: Either the superblock or the partition table is likely to be corrupt! [ 13.944962] systemd-fsck[368]: _/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. are the cards exactly the same size? It looks as if the card you copiued to is smaller than the one you copied from... What does fdisk -l report for disk size for the old and new cards? Well, yes they are different: # fdisk -l /dev/sdb Disk /dev/sdb: 14.7 GiB, 15720251392 bytes, 30703616 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: 0xd42361d8 # fdisk -l /dev/sdc Disk /dev/sdc: 14.5 GiB, 15560867840 bytes, 30392320 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: 0xed0dd3b4 And nothing I can do about that. Seems that the size is based on whatever fits based on quality of the chip. Do a resizefs device/partition new-size to something smaller than what will fit on the new stick. After copying the content over it should boot ok and then correct the partiton table (delete the partition and create it again, fdisk should automatically set the size IIRC), then do a resize2fs device/partiton without size ro enlarge the partion to it's max size. The only problem: for the shrinking the partion must be unmounted. Louis -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
Robert Moskowitz r...@htt-consult.com writes: On 08/06/2014 09:58 AM, Wolfgang S. Rupprecht wrote: Robert Moskowitz r...@htt-consult.com writes: I suspect that although they are marketed as 16GB, they vary due to manufacturing quality by a block or so. The other thing to consider if it is a bargain bin drive is that the drive might be a counterfeit with mismarked capacity. http://www.ebay.com/gds/All-About-Fake-Flash-Drives-2013-/1000177553258/g.html These are not sold under any name. They are 'blank' packaged. So I figured that whatever that whatever is 'wrong' with them in perhaps malware, would get blown away by Linux. I once DID buy a usb drive from an online store that had a hidden partition with some strange looking stuff The above URL uses counterfeit to mean drives are sold as large capacity drives that really don't have large flash chips inside. The upstream sellers buy small drives and reprogram the controllers to advertise a larger size that the drive really can't deliver. -wolfgang -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On 08/06/2014 03:55 PM, Wolfgang S. Rupprecht wrote: Robert Moskowitz r...@htt-consult.com writes: On 08/06/2014 09:58 AM, Wolfgang S. Rupprecht wrote: Robert Moskowitz r...@htt-consult.com writes: I suspect that although they are marketed as 16GB, they vary due to manufacturing quality by a block or so. The other thing to consider if it is a bargain bin drive is that the drive might be a counterfeit with mismarked capacity. http://www.ebay.com/gds/All-About-Fake-Flash-Drives-2013-/1000177553258/g.html These are not sold under any name. They are 'blank' packaged. So I figured that whatever that whatever is 'wrong' with them in perhaps malware, would get blown away by Linux. I once DID buy a usb drive from an online store that had a hidden partition with some strange looking stuff The above URL uses counterfeit to mean drives are sold as large capacity drives that really don't have large flash chips inside. The upstream sellers buy small drives and reprogram the controllers to advertise a larger size that the drive really can't deliver. Well these are marketed as 16Gb. parted is showing one to be 15.6Gb. And I have put over 8Gb on a couple of them. I think if MicroCenter was seriously mismarketing them, their customers would be complaining in droves. Being off by .4Gb would not be noticed and as in my cases tossed off as low quality that needed to mark parts of it as not to be used and thus the smaller size. # parted /dev/sdb print Model: Generic- Multi-Card (scsi) Disk /dev/sdb: 15.6GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End SizeType File system Flags 1 1000kB 513MB 512MB primary ext3 2 513MB 1025MB 512MB primary linux-swap(v1) 3 1025MB 15.6GB 14.5GB primary ext4 -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
Robert Moskowitz r...@htt-consult.com writes: On 08/06/2014 03:55 PM, Wolfgang S. Rupprecht wrote: Robert Moskowitz r...@htt-consult.com writes: On 08/06/2014 09:58 AM, Wolfgang S. Rupprecht wrote: Robert Moskowitz r...@htt-consult.com writes: I suspect that although they are marketed as 16GB, they vary due to manufacturing quality by a block or so. The other thing to consider if it is a bargain bin drive is that the drive might be a counterfeit with mismarked capacity. http://www.ebay.com/gds/All-About-Fake-Flash-Drives-2013-/1000177553258/g.html These are not sold under any name. They are 'blank' packaged. So I figured that whatever that whatever is 'wrong' with them in perhaps malware, would get blown away by Linux. I once DID buy a usb drive from an online store that had a hidden partition with some strange looking stuff The above URL uses counterfeit to mean drives are sold as large capacity drives that really don't have large flash chips inside. The upstream sellers buy small drives and reprogram the controllers to advertise a larger size that the drive really can't deliver. Well these are marketed as 16Gb. parted is showing one to be 15.6Gb. And I have put over 8Gb on a couple of them. I think if MicroCenter was seriously mismarketing them, their customers would be complaining in droves. Being off by .4Gb would not be noticed and as in my cases tossed off as low quality that needed to mark parts of it as not to be used and thus the smaller size. # parted /dev/sdb print Model: Generic- Multi-Card (scsi) Disk /dev/sdb: 15.6GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End SizeType File system Flags 1 1000kB 513MB 512MB primary ext3 2 513MB 1025MB 512MB primary linux-swap(v1) 3 1025MB 15.6GB 14.5GB primary ext4 You do realize that whatever parted is showing is whatever the USB's controller is telling it? If you have having problems writing the full drive's worth of information (as your previous message indicated) my first sanity check would be to write the full *raw* drive with unique data and see if the expected data was still there on read. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
Allegedly, on or about 06 August 2014, Robert Moskowitz sent: Using fdisk and parted, I can see my problem, and this won't work. The target card IS smaller than the source. But I can 'fix' that if there is a partition resize command where I can specify the end block in the resize. No reason I cannot shrink sdb3 to what will fit on the target card. Just wondering about a simplistic solution: Partition the card, the original one, so that you don't use the whole card, by default. Then, when you clone the working partition of your template card, it's always going to be a bit smaller than your target copies. -- [tim@localhost ~]$ uname -rsvp Linux 3.9.10-100.fc17.x86_64 #1 SMP Sun Jul 14 01:31:27 UTC 2013 x86_64 All mail to my mailbox is automatically deleted, there is no point trying to privately email me, I will only read messages posted to the public lists. George Orwell's '1984' was supposed to be a warning against tyranny, not a set of instructions for supposedly democratic governments. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On 08/06/2014 09:36 PM, Tim wrote: Allegedly, on or about 06 August 2014, Robert Moskowitz sent: Using fdisk and parted, I can see my problem, and this won't work. The target card IS smaller than the source. But I can 'fix' that if there is a partition resize command where I can specify the end block in the resize. No reason I cannot shrink sdb3 to what will fit on the target card. Just wondering about a simplistic solution: Partition the card, the original one, so that you don't use the whole card, by default. Then, when you clone the working partition of your template card, it's always going to be a bit smaller than your target copies. that is where I am heading. For this stage of testing, I really don't need no 14Gb for storage. I have learned a bit during this. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
Install liveusb-creator-3.12.0-1.fc20.noarch.rpm and create a launch icon for it on the desktop (if you like) and launch it from there. It will prompt you for the source of the ISO file and will ask you for the destination, if there is more than one usb drive target. I have used it without fail !!! On Tue, Aug 5, 2014 at 9:44 PM, Robert Moskowitz r...@htt-consult.com wrote: This is a Fedora arm problem, but probably more experience with dd and sd cards here... SO I boot my Cubieboard2 from microSD. I grabbed 8 16GB cards from the bin at the MicroCenter checkout counter. They work fine for building F21 arm boots, but I am getting far enough into the process that if I do something wrong, I don't want to go all the way back to the beginning. I rather clone the card, play around, and soforth. So I tried using: sudo dd if=/dev/sdb of=/dev/sdc bs=4096 conv=notrunc,noerror; sync the target sd card has been previously use. The copy fails in use as follows: Mounting Configuration File System... [ OK ] Mounted Configuration File System. [ OK ] Found device /dev/disk/by-uuid/1dc878de-92d2-4a66-b352-f055a32473b9. [ OK ] Started dracut initqueue hook. [ OK ] Started Show Plymouth Boot Screen. [ OK ] Reached target Paths. [ OK ] Reached target Basic System. Starting dracut pre-mount hook... [ OK ] Reached target Remote File Systems (Pre). [ OK ] Reached target Remote File Systems. Starting File System Check on /dev/disk/by-uuid/1dc8...f055a32473b9... [ 13.911063] systemd-fsck[368]: _/: The filesystem size (according to the superblock) is 3587707 blocks [ OK ] Started dracut pre-mount hook. [ 13.919598] systemd-fsck[368]: The physical size of the device is 3548795 blocks [ 13.937109] systemd-fsck[368]: Either the superblock or the partition table is likely to be corrupt! [ 13.944962] systemd-fsck[368]: _/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. [ 13.950853] systemd-fsck[368]: (i.e., without -a or -p options) [ OK ] Started File System Check on /dev/disk/by-uuid/1dc87...2-f055a32473b9. Mounting /sysroot... [ 14.483857] random: nonblocking pool is initialized [ 14.571964] EXT4-fs (mmcblk0p3): bad geometry: block count 3587707 exceeds size of device (3548795 blocks) [FAILED] Failed to mount /sysroot. See 'systemctl status sysroot.mount' for details. [DEPEND] Dependency failed for Initrd Root File System. [DEPEND] Dependency failed for Reload Configuration from the Real Root. [ OK ] Stopped dracut pre-pivot and cleanup hook. [ OK ] Stopped target Initrd Default Target. [ OK ] Stopped dracut mount hook. [ OK ] Reached target Initrd File Systems. [ OK ] Stopped target Basic System. [ OK ] Stopped target System Initialization. Starting Emergency Shel Generating /run/initramfs/rdsosreport.txt Entering emergency mode. Exit the shell to continue. Type journalctl to view system logs. You might want to save /run/initramfs/rdsosreport.txt to a USB stick or /boot after mounting them and attach it to a bug report. :/# === I put the card back in my build system and looked at it with Gparted which shows the whole drive as unallocated, even though the system successfully mounted /boot (but not /). So the question is: HOw better can I clone the card? SDFormatter in Windows is one suggestion, but I don't want to have to jump over to the family XP system. thanks -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On 08/05/2014 11:50 PM, JD wrote: Install liveusb-creator-3.12.0-1.fc20.noarch.rpm and create a launch icon for it on the desktop (if you like) and launch it from there. It will prompt you for the source of the ISO file and will ask you for the destination, if there is more than one usb drive target. I have used it without fail !!! Great, but I do not have an ISO file. I laboriously built the card starting with a xzcat through configuring stuff after the 1st boot. So I guess the first step is how to make an ISO of the existing drive... On Tue, Aug 5, 2014 at 9:44 PM, Robert Moskowitz r...@htt-consult.com wrote: This is a Fedora arm problem, but probably more experience with dd and sd cards here... SO I boot my Cubieboard2 from microSD. I grabbed 8 16GB cards from the bin at the MicroCenter checkout counter. They work fine for building F21 arm boots, but I am getting far enough into the process that if I do something wrong, I don't want to go all the way back to the beginning. I rather clone the card, play around, and soforth. So I tried using: sudo dd if=/dev/sdb of=/dev/sdc bs=4096 conv=notrunc,noerror; sync the target sd card has been previously use. The copy fails in use as follows: Mounting Configuration File System... [ OK ] Mounted Configuration File System. [ OK ] Found device /dev/disk/by-uuid/1dc878de-92d2-4a66-b352-f055a32473b9. [ OK ] Started dracut initqueue hook. [ OK ] Started Show Plymouth Boot Screen. [ OK ] Reached target Paths. [ OK ] Reached target Basic System. Starting dracut pre-mount hook... [ OK ] Reached target Remote File Systems (Pre). [ OK ] Reached target Remote File Systems. Starting File System Check on /dev/disk/by-uuid/1dc8...f055a32473b9... [ 13.911063] systemd-fsck[368]: _/: The filesystem size (according to the superblock) is 3587707 blocks [ OK ] Started dracut pre-mount hook. [ 13.919598] systemd-fsck[368]: The physical size of the device is 3548795 blocks [ 13.937109] systemd-fsck[368]: Either the superblock or the partition table is likely to be corrupt! [ 13.944962] systemd-fsck[368]: _/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. [ 13.950853] systemd-fsck[368]: (i.e., without -a or -p options) [ OK ] Started File System Check on /dev/disk/by-uuid/1dc87...2-f055a32473b9. Mounting /sysroot... [ 14.483857] random: nonblocking pool is initialized [ 14.571964] EXT4-fs (mmcblk0p3): bad geometry: block count 3587707 exceeds size of device (3548795 blocks) [FAILED] Failed to mount /sysroot. See 'systemctl status sysroot.mount' for details. [DEPEND] Dependency failed for Initrd Root File System. [DEPEND] Dependency failed for Reload Configuration from the Real Root. [ OK ] Stopped dracut pre-pivot and cleanup hook. [ OK ] Stopped target Initrd Default Target. [ OK ] Stopped dracut mount hook. [ OK ] Reached target Initrd File Systems. [ OK ] Stopped target Basic System. [ OK ] Stopped target System Initialization. Starting Emergency Shel Generating /run/initramfs/rdsosreport.txt Entering emergency mode. Exit the shell to continue. Type journalctl to view system logs. You might want to save /run/initramfs/rdsosreport.txt to a USB stick or /boot after mounting them and attach it to a bug report. :/# === I put the card back in my build system and looked at it with Gparted which shows the whole drive as unallocated, even though the system successfully mounted /boot (but not /). So the question is: HOw better can I clone the card? SDFormatter in Windows is one suggestion, but I don't want to have to jump over to the family XP system. thanks -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On Tue, Aug 5, 2014 at 10:14 PM, Robert Moskowitz r...@htt-consult.com wrote: On 08/05/2014 11:50 PM, JD wrote: Install liveusb-creator-3.12.0-1.fc20.noarch.rpm and create a launch icon for it on the desktop (if you like) and launch it from there. It will prompt you for the source of the ISO file and will ask you for the destination, if there is more than one usb drive target. I have used it without fail !!! Great, but I do not have an ISO file. I laboriously built the card starting with a xzcat through configuring stuff after the 1st boot. So I guess the first step is how to make an ISO of the existing drive... Fine. Visit http://mirrors.kernel.org/fedora/releases/20/Images/armhfp/ and download the compressed image you prefer, and when liveusb asks you for the file, point it to the one you downloaded. Since I do not have ARM, I have never used these images. Good luck. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: cloned sd card is not booting
On 08/06/2014 12:26 AM, JD wrote: On Tue, Aug 5, 2014 at 10:14 PM, Robert Moskowitz r...@htt-consult.com wrote: On 08/05/2014 11:50 PM, JD wrote: Install liveusb-creator-3.12.0-1.fc20.noarch.rpm and create a launch icon for it on the desktop (if you like) and launch it from there. It will prompt you for the source of the ISO file and will ask you for the destination, if there is more than one usb drive target. I have used it without fail !!! Great, but I do not have an ISO file. I laboriously built the card starting with a xzcat through configuring stuff after the 1st boot. So I guess the first step is how to make an ISO of the existing drive... Fine. Visit http://mirrors.kernel.org/fedora/releases/20/Images/armhfp/ and download the compressed image you prefer, and when liveusb asks you for the file, point it to the one you downloaded. Since I do not have ARM, I have never used these images. You are missing a key point here. I already downloaded the F21 image from http://koji.fedoraproject.org/koji/tasks?state=allview=treemethod=applianceorder=-id I then build the first SD. Do first boot, get through the 'things that work'. NOW I want to clone the card so I can test the things that I have not figured out yet and can easily go back to a clean point with out going all the way back to the downloaded image and all the steps involved to get to my 'clean point'. So I have a working SD that has LOTS of changes from the image. This is what I want to clone. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org