General :: Cannot Read / Write SD Card After Improper Format (sector Size 0) - Fix It?
Jun 12, 2011
I was attempting to reformat a 16GB MicroSD card in my camera when the battery died mid-way. After that, any time I try to read the card in my camera, it gives me a "Card Error" and does not allow me to reformat it in my camera.
So, I thought I would plug the camera in to the laptop with it set to host the card as media when plugged in as USB, in an attempt to fix the formatting issue.
However, when I plug it in to my linux machine, it does not register as a device (e.g., /dev/sda) due to some errors, therefore I cannot reformat it. Essentially, I think I need to fix the partition table but I'm not sure how to when it doesn't register as a device. code...
View 7 Replies
ADVERTISEMENT
Dec 17, 2010
I am wondering if it would be possible to format an 8g SDHC card in a way that it will be able to be written to and read by an SD reader?
Reading about SDHC vs SD suggests that the only difference is the block/cluster/byte configurations. Is that true?
Could I format the 8g FAT32 SDHC with gparted to a 1g FAT16 partition with the rest of the space left un-formatted so an SD reader could handle it?
View 2 Replies
View Related
Jun 23, 2011
I'm looking to set up a server with attached mass storage device and tape autoloader to run linux. It's set up under Windows at the moment. Goal is to have users, connecting from individual workstations and laptops, backup their data to the linux server. On their personal machine, some users run linux, some MacOS, some Windows. I plan to set up the 5 500 GB drives as RAID5. I understand that if setting up as software raid the format is "physical volume for RAID". Under this setup, will Windows users be able to read/write and function as expected? I can't assume only linux user access.
View 3 Replies
View Related
Jun 28, 2010
I need to copy a file into a Flash memory which is connected to my computer via USB. The file must start at a specific sector.
Can anyone guide me how to do this? (it can be through a C program, a line command, or any other way)
View 8 Replies
View Related
Feb 25, 2011
I've got some trouble trying to format a SD card. I tried to format it in the GUI and the terminal, but couldn't make it. I couldn't even copy or move any file to the directory in the SD card, even logged as root.
It's a SD card from a digital camera. When I insert it in the camera, it says the card is blocked, so that it's not possible to take any picture.
I tried using "fdisk" to set a new fyle system in it, and tried "mkdosfs" trying to format it under the current file system.
View 4 Replies
View Related
Feb 9, 2010
My Canon PowerShot A470 + CHDK can write to SD-cards that are "locked" (the lock switch is used to make the card bootable), but GNU/Linux
`/dev/mmcblk1': Read-only file system
(I'm using "Texas Instrument 5-in-1 Multimedia Card Reader")
So I have to switch that switch on and off again and again. ("unlocked" to write to the card in Linux, "locked" to boot the camera from it).
How to force locked card to be writable in GNU/Linux?
View 1 Replies
View Related
Dec 10, 2010
I am new to linux at driver level. I want to read/write at specified memory location in microSD card in linux. I do not want to used SD card with any file system. How to do that. My linux distribution is Fedora13.
View 3 Replies
View Related
Mar 4, 2011
The card in question is a PC Card (PCMCIA) 16Bit Intel Series 2 Flash Memory Card (2MB) and I want to be able to read from and write to the card. I've rebuilt latest stable kernel (2.6.37.2) with all the PCMCIA options turned on or built as modules. I've got an SRAM card, a CompactFlash Card (in a CF to PC-Card adapter) and the Linear Flash card to try, the SRAM card I'm not expecting greatness from, but hoping to prove that the slot works (it registers, but doesn't get much reported from lspcmcia). The CF card in the adapter works. I'm expecting to see a block device in /dev but nothing appears lspci:
[Code]....
View 11 Replies
View Related
Feb 25, 2011
I was just reading about the whole boot process on computers and am curious as to why the BIOS can only read and execute code and data from only cylinder 0, track 0 and sector 1 of the disk being booted from? Why can't the BIOS read from any other disk location?
View 3 Replies
View Related
Apr 5, 2010
I'm trying to learn Kerberos and I'm doing so by following O'Reillys book. Kind of turn-off when things are not functioning properly when one follows instruction. It fails basically at the very beginning - creation of a new realm, when I execute the command:
kdb5_util create -s
I get the error message:
Quote:(null) Improper format of Kerberos configuration file while initializing Kerberos code I'm not finding anything in any log. My configuration files (followed by the book, but tweaked to my environment):
Code:
[Code]...
View 1 Replies
View Related
Nov 24, 2010
So I finally bought an advanced format drive, the 2 TB Samsung f4. I will be using it on my slackware box, running slackware 12.2 with kernel 2.6.27-7. I intend to format the drive by hand with fdisk and start the first partition on sector 2048, or perhaps boot a livecd and format it with a newer version of fdisk or parted that will natively partition this drive correctly. My real question is, do I have to do anything special to add this drive to an existing LVM volume group? I'm thinking no, since LVM basically just breaks all your data into 4 MB chunks and spreads them across the pool of partitions you've defined, but I've found many conflicting opinions from searching google. To simplify things, I'm not using RAID of any sort, neither hardware nor mdraid.
View 2 Replies
View Related
Feb 4, 2010
What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.
View 1 Replies
View Related
Jan 25, 2011
I am trying to format 4 GB sd memory using mkfs.vfat. I want to use the card both in linux and windows so I am formatting with Vfat filesystem. When I format the card from command line with "mkfs.vfat -F 32 /dev/mmcblk1" I am getting a warning message like "unable to get drive geometry, using default 255/63" but the data in the card is erased.
But when I mount the card and checks for the size using df -h its showing 1 GB instead of 4 GB. how to format the SD memory card or any other alternate way to format the card.
View 1 Replies
View Related
Mar 5, 2011
It's many years since introducing of installation of Linux live CDs like Ubuntu from USB flash drives. I never been able to use such services on my 2GB KingStone flash drive, because it's sector size is 2048 and the famous linux error: "Not all ... support more than 512B sector size". Although I formatted my flash drive many times and even erased the whole partition table and cleared all flash contents with 0xFF values but it still has sector size of 2048.I want to know where the hell those softwares like "USB Startup Disk Creator" in ubuntu and kubuntu and fdisk in almost all linux distro's get to know that the sector size is 2048?
View 2 Replies
View Related
Jul 4, 2010
I'm writing a C program that reads the boot sector of a USB disk. (it is mounted as /dev/sda1). I'm able to read the sector, by the calls code...
The problem is when I wish to write. I use the call:
bytesWrite = write(fd, buf, 512)
The 'write' returns the value of 512, which looks as if the write was successful, yet
when I read again the /dev/sda1 device, I see that no writing was actually made.
Can anybody tell me what do I need to do in order to allow an actual write to the
device?
View 2 Replies
View Related
Jan 16, 2010
So when i install ubuntu it gets to 47% and than i get this error message. After that the install doesn't really seem to do much.Code:Device /dev/sbd has a logical sector size of 4096. Not all parts of GNU Parted Support this at the moment, and the working code is HIGHLY EXPERIMENTAL.Now i did search and i found another topic where someone had the same problem. His solution was to reburn the CD and try again. I did that and it still got me the same messageP.S. I do have two boot options now however. One for ubuntu and one for windows though i already ran the uninstall.
View 1 Replies
View Related
Mar 22, 2010
Gparted won't let me install Ubuntu 9.10 64 bit. Every time it hangs at 47% and throws a sector size error, something like: doesn't support sector size 2048 and the code is HIGHLY EXPERIMENTAL. My 1TB hard drive exists out of the following partitions:
100MB Windows 7 Reserved
900GB+ Windows 7
30GB EXT4
1MB unallocated space
Is there a workaround for this? I've tried installing Linux Mint and Ubuntu but both gave me the same error.
View 7 Replies
View Related
Jul 15, 2011
I bought new hdd (WD2002FAEX-007BA0). This disk have normal block size (512bytes) so I do not bother with the alignment.I trying make test write speed.
Code:
dd if=/dev/zero of=/dev/sda oflag=direct bs=16384 count=100000
100000+0 records in
[code]...
View 6 Replies
View Related
Dec 9, 2010
In the past I have been able to succesfully install ubuntu on several external usb drives with up to 500gb in size.Now I am trying to install a copy of ubuntu 10.10 on an external usb iomega 1tb eGo drive but I am having major issues.The installer reports the total disk size as only 124 gb, instead of the 998gb that gParted reports for the same disk. Proceeding with "use the full disk" installs ok, but it doesn't boot.Grub2 reports that it cannot find the kernel.After some desperate attempts to repartition and after some googling I think that the issue may be with the sector size, which fdisk -l reports as 4096kb (all my other drivers report 512kb) and I have the impression that linux is not ready for it (or I lack the knowledge, which seems more likely).I have also tried to install fedora 14. This distribution reports the correct disk size, installs properly, but again, it cannot boot (Fedora uses grub, not grub2), with a very similar message to the grub2 installer.Because of the way I work, I need my external usb drive to be able to boot linux. And I find it difficult to believe that linux doesn't handle 4096kb sector disks, so here I am asking for help . Please note I am not a linux expert.
View 3 Replies
View Related
Apr 30, 2010
I'm going to replace damaged HDDs in my server with new drives, which have sector size of 4096 bytes instead of 512. Does CentOS natively support such drives? If yes, since which version? If no, what actions should I take to correctly prepare such a drive to work. How to check that such a drive is correctly recognized by OS?
View 3 Replies
View Related
Jun 7, 2011
I'm trying to do an installation of Ubuntu 11.04 on my Windows 7 setup. I have another harddrive, which only has one partition. It is fresh formatted with NTFS, I launch Wubi, choose the partition, everything's fine, reboot, and when I choose Ubuntu for the first time, I get this error[URL]My Windows 7 installation is on a SSD harddrive, and my Ubuntu installation is a Western Digital WD360 SATA disk. In my BIOS I have "SATA Mode" set to "IDE".
View 9 Replies
View Related
Oct 27, 2010
2 months ago, I built a dedicated backup server using 4 2TB SATA drives for software RAID5 (6TB total). A few days ago, smartd sent out mail saying it found an unreadable sector on one of the drives. I ran selftest using smartctl and the error persisted. So far, neither software RAID nor ext4fs running on top of the RAID volume have reported errors.
MOST OPTIMISTIC: It is normal to have a few bad sectors among billions. Software RAID takes care of alternatives. Keep using the system until RAID spits a more serious warning in the future.
MOST PESSIMISTIC: It is a really bad sign to lead a disaster. No good disk drive should have bad sectors especially when it is only 2 months old. The error is simply not detected by software RAID and ext4. Replace the drive immediately and return the bad drive to the supplier.
View 8 Replies
View Related
Mar 20, 2011
I am a beginner in ubuntu and only recently did i install Ubuntu 10.10 using Wubi. I am dual booting along with Windows 7 64bit. Before I got to know of Wubi, I created a free 20GB partition for installing linux. But since it was of no use, I decided to extend another partition adding this 20GB space. The problem now is that I am getting the following error while trying to access the partition.
"Error mounting: mount exited with exit code 12: Failed to read last sector (605949951): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda5': Invalid argument
The device '/dev/sda5' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?"
These are the results after running sudo fdisk -l /dev/sda:
"Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x76c4009c
Device Boot Start End Blocks Id System
/dev/sda1 1 1 992+ 42 SFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 1 13 102400 42 SFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 13 6528 52326400 42 SFS
Partition 3 does not end on cylinder boundary.
/dev/sda4 6528 42717 290694144 42 SFS
View 6 Replies
View Related
Jun 7, 2010
write a script to compress any file with 10 MB size to tar.gz
Say /var/log/tes directory has a file with 10 MB I want it to compress to tar.gz
View 2 Replies
View Related
Feb 19, 2011
I have been given a headless linux system running from a SD card. I get into it by putty, directly to root, not other user and even /home dir. Whatever I copy or write will dissapear because is ro.
my etc/fstab file is:
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda1 /boot vfatnoauto,rw 0 0
View 5 Replies
View Related
Feb 22, 2010
how to read and write i.e setting of hardware clock through c program on linux
View 5 Replies
View Related
Nov 30, 2010
if i have a dir with several mp3's files:
example:
[root@xxx]ls -l
-rwxr-xr-x 1 web2 client1 6222573 Nov 26 17:34 01 Artist1 - Song1.mp3
-rwxr-xr-x 1 web2 client1 4989384 Nov 26 17:34 02 Artist2 - Song2.mp3
-rwxr-xr-x 1 web2 client1 6987438 Nov 26 17:36 03 Artist3 - Song3.mp3
and i need to update the id3 tag of all files with the command:
/usr/bin/id3v2 -a "Artist1" -t "Song1" Artist1 - Song1.mp3
how i do a loop to read the filename and execute the id3v2 command for each file, as i have filenames with spaces and special chars ex:"".
View 1 Replies
View Related
Dec 17, 2010
Is there a Linux command, or a series of commands, which will allow me to get the permissions of a file in "0644" format?
View 9 Replies
View Related
Sep 7, 2010
I'm trying to mount my new Western Digital Elements 2tb hard drive, but every time I try to plug it into the computer I get this error message:
Quote:
Error mounting: mount exited with exit code 12: Failed to read last sector (3907027119): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet, or it was not setup correctly (e.g. by not using mdadm --build ...), or a wrong device is tried to be mounted, or the partition table is corrupt (partition is smaller than NTFS),
[code].....
But when I tried opening the hard drive from nautilus I still got the same error message as above (no other volumes was connected at the time). I've also tried opening and watching it in GParted, and I can see it there as a volume that's not allocated. When I tried to allocate the hard it I got the message that it had no partition table. And that I cold make one. I tried and Ubuntu suggested to make a MS-DOS partition table for it. But there I got a little scared as I've not done this before. The external hard drive is brand new and was brought today. And I don't have the possibility to test it with Windows or Mac as I'm using Linux only on my machines.
View 6 Replies
View Related
Mar 18, 2011
I am trying to write a C++ Code to read write a XML file in C++.I researched a lot and find xerces is used for that but I am not able to write the code for that.Please provide me some links on how to run a code that R/W a xml file in C++.
View 1 Replies
View Related