Error when writing to disk at sector # - Nook Touch General

I get this error when restoring my backed up img file of my microSD cardd.
I only have one SanDisk 8 GB class 6 microSD card. I backed it up to an image using Roadkil.
Wrote ClockWorkMod to it to install multi-touch and USB host support. After that, I used Easeus to delete the 128 MB partition (from burning CWM) to get back the whole capacity. Somehow Easeus leaves around 7 MB of it unallocated. I also tried Windows Disk Management to delete, allocate and format the partition.
Is there a way to resize an img file? I think the problem is due to the formatted capacity being some bytes smaller than the backed up img file. It writes up to 99.5% then gives me that error.

When you are "restoring" your backed up image to the SD card
you are using Win32DiskImager or something and not copying an .img file?
When you write an image to a disk it doesn't care about existing partitioning.
You only have to care about partitioning when you want to use your SD card for normal use again.

Hmm it worked without a hitch using Win32DiskImager. I tried so many times to write the img file to the microSD card using Roadkil.

Related

[Q] Backing up or Imaging SD card partitions

Has anybody succeeded in doing a backup/restore of the WP7 partition from a 2 partition (1 WP7 and 1 android) microSD card? What tools have you tried?
Would DD work? Trueimage? Ghost? Mac Disk Utility?
I want to setup my fresh WP7 partition the way I like it and then image it so I can restore to it if the current microSD starts having problems.
Greatly appreciate any help!
I did this in windows.
- Free up some space in your comp hard drive
- Go to Disk Management and shrink drive. (Free space should be equal to or greater than the SD card size)
- Install easeus partition manager
- Mount the SD card
- Right click on the partition on the SD card and choose copy.
- Choose the free space in the Comp's HDD.
- Repeat for all partitions that has to be copied.
Do the reverse when you want to copy back.
Does the reverse way also work with resizing the partition? On a larger SD card?
Thanks for the response! So the only way to copy would be to another partition? Is there a way to copy to an image file instead? And, have you successfully imaged it back onto the SD card?
I was able to successfully do this using DiskImage - a free download that I found here. I was able to save the entire SDCARD (not a single partition but the entire card) to an image file and then write to back onto another sdcard of the same size. It worked! I haven't tested this thoroughly so don't blame me if it doesn't work for you. If it does - please post here so others can benefit from your experience.
Yes its working...i have doen this 3-4 times...
I did that and i transfered my wp7 partition from a 8gb sd to another 16gb sd card...
Copy the partition to usb hd and then copy back to the new sd...
It works fine....And i have a backup of the partition in my USB sd.
My recomendation is not to mess with your computers hard drive...
Do this with an external usb hd..
Another free tool to use is the MiniTool Partition wizard from here
http://www.minitool-partitionrecovery.com/
colossus

Is win32imager supposed to handle > 4gb cards?

I tried to create an image backup and the file stopped at 4gb,
(both for 8gb and 32gb cards). I was able to boot a Linux
OS and use DD to image both cards successfully. Windows
refused to NTFS format a 16gb flash drive, I had to use
Linux to create it .
It seemed like the maximum file size win32imager.exe
could create was 4gb, (like it was stuck with fat32
rules , even though it was outputting to an NTFS
disk).
Thanks
EDIT: Sorry, didn't realize you meant you wanted to do an image backup (unless you mean from within CWM, then my post stands).
I just do what I need to do with disk imager, and when I'm done, format within Android to give it the full 16gb back. I've read some threads where CM7 didn't format the SD card correctly and wound up formatting the boot partition instead, so I formatted in my phone instead to be safe.
A couple noteworthy bugs...
4GB limit:
https://bugs.launchpad.net/win32-image-writer/+bug/724102
Incorrect device size (potentially truncated images even < 4GB):
https://bugs.launchpad.net/win32-image-writer/+bug/786060
Yes exactly my issue
win32imager.exe can't image > 4gb cards.
I guess I'll have to boot to Linux to image
the big cards, unless there is a working
win32 tool?
If you have enough space on the card so that you can use EASEUS to reduce the size of the last partition so that 4G or less is used on the card you can then make the image file. I did this to copy a CM7 install to a faster Sandisk card.
how?
I am trying to back up 8gb card
last 4.3 gb are unallocated
dd still fails "file too large"

[Q] Recover Space on SD Card after Root

After rooting with TouchNooter 2.1.31, including re-formatting my SD Card, I find that I have only 75 megs available on a 2 G card. Running check disk shows a total of 75 megs with no bad sectors reported. Searching the forums indicates this is not an uncommon problem, but I didn't find anything specific to TouchNooter.
One solution suggested for other systems is to copy the files of the SD and then reformat. Is this the correct procedure for TouchNooter?
Another was offered at:
http://forum.xda-developers.com/showthread.php?t=1863222
but, that one has me a tad baffled as to how to find hboot on a NST (and, no, I'm not buying an iPhone).
Bear in mind chkdsk indicates the TOTAL space on the 2G SD is only 75 megs -- it does not show that the SD card is actually has 2G of total space. If it means anything, I used Win32DiskImager to write the .img file to my SD card when I first started the rooting process.
Thanks!
When you write the .img on the card, it creates a 75M partition on your card because it is the size of the image and the remaining space is unallocated, that is why it doesn't show up on windows explorer.
You have to use a partition manager to delete the 75M partition and create a new one with all the unallocated space.
I use MiniTool Partition Wizard Home Edition
Right click on the 75M partition->delete
Right click on the unallocated space ->create
Choose the settings you want for the partition, click OK
Then click apply
That worked exactly as advertised. I had copied all my files from my SD to a backup folder on my computer. Once I resized the partition on the SD card with MiniTool Partition Wizard Home Edition, I put it back in the NST which wanted to format the card. I reformatted, pulled the card, transferred my files back to the SD card and everything worked.
Thanks!

[Q] Rooted Nook Simple Touch, Help Partitioning micro SD card

Hi! Successfully rooted my Nook ST using Nook Manager, except I used a 32 GB micro SD card to do the rooting. After rooting, I ended up with two partitions on the SD card, Nook (239 MB) and Nook Manager (62.9 MB). I was wondering what I need to do to be able to utilize the rest of the space on the card? The reason I bought a 32 GB card was so I could store all my sideloaded books there, and now I find I'm just limited to the space/partitions showing up when I connect the nook via USB.
You need to repartition your card.
Partition Magic can do that.
If you want to use multiple partitions on the SD card (like 2 x 16 GB) you might want to look at:
http://forum.xda-developers.com/showthread.php?t=2184495
Renate NST said:
You need to repartition your card.
Partition Magic can do that.
If you want to use multiple partitions on the SD card (like 2 x 16 GB) you might want to look at:
http://forum.xda-developers.com/showthread.php?t=2184495
Click to expand...
Click to collapse
Thanks, will download a copy of Partition Magic later. I really am completely clueless when it comes to programming though. In fact, I'm only here because the folks at mobileread told me I'd probably have better luck having my question/s answered here than there. So just to confirm, I can repartition the drive using partition magic so I'll have one extra partition for the books I want to sideload, and I'm good to go already when I re-insert the SD card into the Nook? Or do I have to attempt the code that you gave in the thread you linked?
If you want to have a single FAT partition on your SD card you can do that without much change.
It comes down to whether you want to be able to pull the SD card and plug it into random desktops and things.
If you want to have multiple partitions or ext3 partitions you will have to use the new vold in the link above.
if used windows 7,8. Insert a memory card into the card reader. Go to cmd(administrator mode) and run command:
Diskpart
List Disk
Select Disk 1 (#select sdcard)
clean (#clean partition sdcard)
create partition primary
active
format fs=fat32 quick
assign (#run command if not view sdcard in mycomputer )
Renate, I tried to repartition my SD card, but got a "disk is not formatted, do you want to format it now?" message. So I had no choice but to do a data recovery using EaseUs Partition Master first, then went ahead and clicked format now. Then I tried using Minitool Partition Wizard (couldn't find a free version of Partition Magic) to create new partitions in the formatted SD card so that the NookManager partition would be larger (27 GB) while the NookBackup partition would be 2 GB. Except that I can't seem to create any new partitions at all. And I also have no idea how to restore the data I'd backed up earlier either.
Sorry, I missed seeing this come up when you posted it.
When your Nook asks you if you want to format you should say "No!".
It could be that it misidentified the situation.
In any case, you want to look closer before formatting anything.
Here's a gotcha.
If you are using ext3 and the internal clock has reset itself then the last mount will be in the future.
That makes things angry. Check that the date/time on the Nook is correct.
You can use gparted to give the card the partition layout you need (i.e. first NookManager partition is big, second NookBackup partition is only large enough to hold a backup), then write the first partition from NookManager.img into first partition of the card (you need to do something roughly similar to this. Then you can use gparted to set the "boot" flag on the first partition and use the card to backup&root your Nook. Then remove the "boot" flag, and keep using the card for storage (it's a bit messy to have both user&app files AND NookManager boot files in the same place, but if you only have one card, then this is inevitable - i haven't found a way to mount the second or the third partitions from the card). The card will act as normal storage device when flag is not set, and as NookManager bootable card when flag is set.

[Q] Restoring CM7 image on SD Card Problem

I installed CM7 on a 16GB SD card for my Nook Color about a year ago and it has been working fine since then with no problems. I've been doing regular image backups of the SD card using Win32DiskImager. I recently had problems with an app update so decided to try and do an image restore of a recent backup. I get error messages from Win32DiskImager that there's not enough room on the SD card. I've tried reformatting/repartitioning the SD card using various tools (Windows format, Nook SD card format, EaseUS, SDFormatter, etc.) but haven't been able to get the full disk space back. The message I get from Win32DiskImager is: " Not enough space on disk: Size 30390270 sectors, available 30248960 sectors." This was the original SD card that had the CM image on it. Any ideas? Thanks!
zinger14 said:
I installed CM7 on a 16GB SD card for my Nook Color about a year ago and it has been working fine since then with no problems. I've been doing regular image backups of the SD card using Win32DiskImager. I recently had problems with an app update so decided to try and do an image restore of a recent backup. I get error messages from Win32DiskImager that there's not enough room on the SD card. I've tried reformatting/repartitioning the SD card using various tools (Windows format, Nook SD card format, EaseUS, SDFormatter, etc.) but haven't been able to get the full disk space back. The message I get from Win32DiskImager is: " Not enough space on disk: Size 30390270 sectors, available 30248960 sectors." This was the original SD card that had the CM image on it. Any ideas? Thanks!
Click to expand...
Click to collapse
Try burning the SD image file again and before rebooting, try doing the restore.
Sent from my Nook HD+ running CM10.1 on emmc.
leapinlar said:
Try burning the SD image file again and before rebooting, try doing the restore.
Sent from my Nook HD+ running CM10.1 on emmc.
Click to expand...
Click to collapse
Thanks but I think I've figured out what the problem is. I have two 16gb sd cards but each is from a different vendor. Apparently each card has a slightly different storage capacity (~70M) so the image created from the card with the larger capacity won't fit on the sd card with the lower capacity. Does anyone know if there is a safe way to shrink the partition size on the sd card that currently has CM7 installed without losing the data? I could easily get by with 4gb instead of the current 16gb. I'd like to be able to use both sd cards using the same image.
Use minitools partition manager and shrink partition 4... as long as there's enough free space... nothing is lost.
DizzyDen said:
Use minitools partition manager and shrink partition 4... as long as there's enough free space... nothing is lost.
Click to expand...
Click to collapse
I was able to change the size of partition 4 but it just move it to unallocated space and kept the total memory of the sd card the same. Sounds like I would need to reformat the sd card to change the overall size.
I ended up using an imaging program called usbit. It has an option when restoring an image to truncate oversize images. It does warn that there is a chance of data loss when doing this but I tried it and it seemed to work without any problems. I was able to restore the images that I had created with Win32DiskImager with this tool. Another good feature with this tool is that it can also compresses the image files that are created with it.

Categories

Resources