Can't Format Micro Sd Card

So I have 1 gb micro SD card made by Nokia and it just refuses to be formated.

I've tried many ways but it just won't completely format. This is what I've tried
ayy did "diskpart" utility in Windows to remove protection by command "volume disk clear readonly" allowed to format once but doesn't compelely blank it Tried the builtin "Disk Utility" to format but gave me an error, "Error synchronizing after initial wipe: Timed out waiting for object (udisks-error-quark, 0)" Installed Gparted. Did simple rightlclick format to NTFS but it gave me an error "LVM not supported loop disk label" Tried giving multipel commands, delete disk [makes it unallocated drive] create new ntfs Primary partion, gives me an error "too many primary partition"
I've attached the Gparted error log. [can't attach html, pasted the code]

What can I do now? It just keeps getting in its Nokia files back and wont leave FAT format, i want to make it NTFS so i can use it in the camera. It's not corrupted because I can paste files on to it on the desktop. Also its not locked by a physical button

Code:
GParted 0.19.0 --enable-libparted-dmraid --enable-online-resize

Libparted 3.2
Delete /dev/mmcblk0 (fat16, 968.75 MiB) from /dev/mmcblk0  00:00:00    ( SUCCESS )
     	
calibrate /dev/mmcblk0  00:00:00    ( SUCCESS )
     	
path: /dev/mmcblk0
start: 0
end: 1983999
size: 1984000 (968.75 MiB)
delete partition  00:00:00    ( SUCCESS )

========================================
Create Primary Partition #1 (ntfs, 967.00 MiB) on /dev/mmcblk0  00:00:00    ( ERROR )
     	
create empty partition  00:00:00    ( ERROR )
libparted messages    ( INFO )
     	
Too many primary partitions.

========================================

Code:
GParted 0.19.0 --enable-libparted-dmraid --enable-online-resize

Libparted 3.2
Format /dev/mmcblk0 as ntfs  00:00:00    ( ERROR )
     	
calibrate /dev/mmcblk0  00:00:00    ( SUCCESS )
     	
path: /dev/mmcblk0
start: 0
end: 1983999
size: 1984000 (968.75 MiB)
clear old file system signatures in /dev/mmcblk0  00:00:00    ( SUCCESS )
     	
write 68.00 KiB of zeros at byte offset 0  00:00:00    ( SUCCESS )
write 4.00 KiB of zeros at byte offset 67108864  00:00:00    ( SUCCESS )
write 4.00 KiB of zeros at byte offset 1015803904  00:00:00    ( SUCCESS )
flush operating system cache of /dev/mmcblk0  00:00:00    ( SUCCESS )
set partition type on /dev/mmcblk0  00:00:00    ( ERROR )
libparted messages    ( INFO )
     	
The flag 'lvm' is not available for loop disk labels.

========================================



Similar Content



Xubuntu MBR Partioning Question

I was wondering if I can repair my current partitioning setup using gparted, or if I should just reload Xubuntu. Basically I screwed up by making the primary partition only 256M, and made a massive extended logical partition for everything else, and did not leave swap space. I am doing this on an older PC with MBR, dual processor, 2G RAM each processor, 160GB hard drive space. It is single boot, no Windows. I would like the partioning to be as follows, leaving empty disk space for other Linux flavors:

/ 13GB ext4
/home 50GB ext4
swap 8GB swap

sudo parted /dev/sda print all
Code:
Model: ATA ST3160812AS (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size   Type      File system  Flags
 1      1049kB  256MB  255MB  primary   ext2         boot
 2      257MB   160GB  160GB  extended
 5      257MB   160GB  160GB  logical
                                                                       
Error: /dev/mapper/xubuntu--vg-swap_1: unrecognised disk label

Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/xubuntu--vg-root: 158GB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End    Size   File system  Flags
 1      0.00B  158GB  158GB  ext4
                                                                          
Error: /dev/mapper/sda5_crypt: unrecognised disk label

df -hT
Code:
Filesystem                   Type      Size  Used Avail Use Mounted on
/dev/mapper/xubuntu--vg-root ext4      145G  6.5G  131G   5% /
none                         tmpfs     4.0K     0  4.0K   0% /sys/fs/cgroup
udev                         devtmpfs  989M  4.0K  989M   1% /dev
tmpfs                        tmpfs     201M  1.1M  200M   1% /run
none                         tmpfs     5.0M     0  5.0M   0% /run/lock
none                         tmpfs    1003M   88K 1003M   1% /run/shm
none                         tmpfs     100M   24K  100M   1% /run/user
/dev/sda1                    ext2      236M  120M  104M  54% /boot
/home/mbrk/.Private          ecryptfs  145G  6.5G  131G   5% /home/mbrk

How To Partition A Computer To Accommodate Three Or More Distros?

Hey,

My PC has 298 GB of which approximately 179 GB is unallocated. The remaining estimated 119 GB is being used by two distro's: PCLinuxOS and Manjaro 0.8.12

When I have tried to add a new distro, having plenty of free space, I usually get a message telling me I can not proceed further due to my having four primary partitions.

I have a Swap partition of sufficient size to handle multiple distros almost 10 GB.

I installed PCLOS first and then Manjaro. I gave each approximately 12 GB for their 'Root' (/) Their Home (/home) partition was roughly 40 GB each.

{/dev/sda1 swap /dev/sda2 Extended (/dev/sda5, dev/sda6) "PCLinuxOS" /dev/sda3. /dev/sda4 "Manjaro 0.8.12"

For /dev/sda 5 & 6 I used 'Reiserfs' file system. For /dev/sda 3 & 4, I used Ext4.}

The way I look at it my root and home partitions are 'primary' thus taking up the four primary allowed. I seem ti either recall or seen somewhere, that beside 'Primary there was something called 'Logical'

Starting with PCLinux as a base could I make a new installation of Manjaro where (/) would be Primary and (/home) would be Logical?

Or would I need to start totally over with fresh installs of both Manjaro ant PCLinux?? Then make (/) primary and (/home) logical?

Would such a move allow me to install additional distros?

A thought could I make the changes in Gparted while keeping the distros as they are, just making the changes [primary & logical?]

TIA

herakles_14

I Am Trying To Install Mukulu Linux On A Desktop That Has XP On It .

I have followed all the instructions I have got from the net and made boot-able DVD's and USB sticks several different ways as people advise. I have done the same with Mint 17. I have created a partition (26G) and follow the install instructions 1: English 2:Has at least 7.4G available drive space. 4: Is connected to the internet. 5: Here it shows a page where I think it should display the drive options (but does not) If I push the "install now" button it comes up with an error "No root file system is defined --Please correct this from the partitioning menu" I close the installer and look at the drives in GParted and they are all there and the one I created for Linux is PARTITION - /dev/sda4 FILE SYSTEM - ext4
MOUNT POINT - /media/makulu/0C43086E0C43086E LABEL - Lin
SIZE - 26.02 GB USED - 590.07 Mb UNUSED - 24.44 GB FLAG - (blank)
No indication on how to fix the "No root file system" problem. I have tried so many bits of advise that I am beginning to think that I may be better of sticking to windows (perish the thought)
Can anyone help?
Col

Problem With Creating Partitions For Bootable SD Card

Hi everybody,

I am trying to set up my sd card with an embedded ubuntu I build lately according to this linkhttps://eewiki.net/display/linuxonar...-Ubuntu14.04.1 (Topic Setup microSD/SD card).
I am doing this on Ubuntu running in VirtualBox. I am quite new to linux and barely understand the command that causes the first warning. Here is what happened:

ubuntu@ubuntu-VirtualBox:~$ sudo sfdisk --in-order --Linux --unit M ${DISK} <<-__EOF__ --force
> 1,12,0xE,*
> ,,,-
> __EOF__
Checking that no-one is using this disk right now ...
BLKRRPART: Invalid argument
OK

Disk /dev/sdc1: 1019 cylinders, 246 heads, 62 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sdc1: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End MiB #blocks Id System
/dev/sdc1p1 * 1 12 12 12288 e W95 FAT16 (LBA)
/dev/sdc1p2 13 7591 7579 7760896 83 Linux
/dev/sdc1p3 0 - 0 0 0 Empty
/dev/sdc1p4 0 - 0 0 0 Empty
Successfully wrote the new partition table

Re-reading the partition table ...
BLKRRPART: Invalid argument

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
ubuntu@ubuntu-VirtualBox:~$ sudo mkfs.vfat -F 16 ${DISK}p1 -n BOOT
mkfs.fat 3.0.26 (2014-03-07)
/dev/sdc1p1: No such file or directory


So after I entered "sudo sfdisk --in-order --Linux --unit M ${DISK} <<-__EOF__ --force
> 1,12,0xE,*
> ,,,-
> __EOF__ "
everything looked fine since it sad that it created the partition sdc1p1 etc. but as soon as I want to format this partition with "sudo mkfs.vfat -F 16 ${DISK}p1 -n BOOT" it tells me that there is no partition called /dev/sdc1p1

I would be very gratefull if somebody could help me out on this. I thought about trying a different tutorial but they look really really different so I tried to stick to the one that worked well for me so far.

Thank you very much!

Regards,

Lenni

Flash Drive Read-only Half Solved

Lots of posts on internet about flash drives ending up read-only in Linux after using on a windows or mac systme. Gather it is a problem with incorrectly ejecting or the ejection being poorly done.

Usually I can go back to the box and re-eject and all is well. This time even GParted and the resident fedora 21 Disk Utility programs did not even see the drive (which Was visible under "files").

Using disk utility on the "offending" machine, it seems there were many files that were truncated (due to some eject issue? Note the ejection was done "according to Hoyle" ); regardless the flash drive was still read-only. Howeverk, re-trying GParted, which now recognized the drive, the drive was unmounted checked. Some repair was necessary. Currently, I can read, write and copy within the drive.

However, the drive itself is still only read-only for all but the owner (which is not even root). I cannot copy any file to the flash drive. Chmod does nothing (no matter if root or other user tries). I suppose I should be satisfied for the access there is, but if anyone has any more suggestions, it would be great.

Thanks in advance for any info/interest

HOW-TO: FAT32/NTFS/ext3 For Windows/Linux Cross-compatible

I own a NAS D-Link DNS-320 running fun_plug 0.7 & transmissionBT.

I just bought a Transcend 2.5 inch 2TB USB HDD which is preformatted to NTFS.

Just wondering whether my NAS(linux) can write to my USB HDD for a reliable storage for transmissionBT.

Otherwise, if writing to NTFS is unstable in linux, how should I format my USB HDD. I know I could format as FAT32... but FAT32 has a 4GB file size limit.
Is it possible to format USB HDD as ext3 (linux file system)... and still compatible/read/write by Windows XP/7/8?

Hard Disk Damaged?

I tried to install Debian 8 and 7 but I get error message at partitioning stage:

"Failed to create a file system
The ext4 file system creation in partition #1 of SCSI1 (0,0,0) (sda) failed."

After that I couldn't advance further.

I booted from a live Debian and the HardDisk actually shows there with some older files on it.

I tried to install even Windows but from the start it shows the computer doesn't have a Hard Disk Drive so the installation stops right at the start.

Any ideas what is wrong and is there any fix?

Better Way Of Writing This Command Of Leaving Multiple Blank Lines

Hi All..

I need to give four lines of gap(Freespace) between two command outputs.

what i did was below

Code:
echo "" >>$LOG_DIR/$LOG_NAME
echo "" >>$LOG_DIR/$LOG_NAME
echo "" >>$LOG_DIR/$LOG_NAME
echo "" >>$LOG_DIR/$LOG_NAME
print "***************** LEVEL 2: Truncating  Tables: Success:  tables Truncated ***********************" >> $LOG/$LOG_NAME
echo "" >>$LOG_DIR/$LOG_NAME
echo "" >>$LOG_DIR/$LOG_NAME
echo "" >>$LOG_DIR/$LOG_NAME
echo "" >>$LOG_DIR/$LOG_NAME
# Run the load scripts.
echo "***************** LEVEL 3: Loading Dupe Check Tables: Success: Dupe Check tables Loaded***********************" >> $LOG/$LOG_NAME


Is there any better way of writing this command to leave multiple lines between two commands.

Please advise...

Stdout, Stderr And Redirection -- What Is The Correct Order Or Format ?

Hi all,

Been reading on stdin, stdout and stderr and encounter 2 questions, hope gurus here can advise.

0 = stdin
1 = stdout
2 = stderr

Code:
Sun Dec 21 03:53:42 SGT 2014 > cat test5.sh
#!/bin/bash

echo "Please enter value for name :"
read name
echo "Your name is $name."

echo "Next echo will be a syntax error"
ehco

Code:
Sun Dec 21 03:53:46 SGT 2014 > test5.sh 1> output.txt 2> error.txt
Noob

Sun Dec 21 03:54:56 SGT 2014 > cat output.txt
Please enter value for name :
Your name is Noob.
Next echo will be a syntax error

Sun Dec 21 03:55:23 SGT 2014 > cat error.txt
/home/alan/scripts/test5.sh: line 8: ehco: command not found
Sun Dec 21 03:55:26 SGT 2014 >

Which so far all is good and the correct way to output everything including error to a single file is

Code:
Sun Dec 21 03:59:14 SGT 2014 > test5.sh > output.txt 2>&1


Q1) How is a command being interpreted in linux , the sequence in which it is interpreted ? from left to right ? right to left ?

Shouldn't it be

Code:
test5.sh 2>&1 1>output.txt 
or 
test5.sh 2>&1>output.txt ?

Regards,
Noob

.o: File Not Recognized: File Format Not Recognized When Compiling

Hello,

I am working on a board (sbc6000x with at91sam9261 micro, linux 2.6.24 to be precise) and having some fun making script i wanted to make real application.
The board is coming with a cross compilation toolchain. When trying to make a simple "hello world" executable to print on the terminal there is no problem.
I open my terminal, give the path of the compiler, cd into the folder where my .c file is and then i type :
Code:
arm-linux-gcc -o hello hello.c

Which create my executable "hello" and this one is working. But like i said, this program only played with the terminal.

The board is starting with a script calling another executable which use the lcd display, i have the source of this executable. My idea was to look at what was in the source of this application (lots of folders and files) in order to understand how it was working. I wanted to test the toolchain on the source (with the makefile) to see if i was able to generate an executable from a application with folderS/fileS but when i try to "make" it i have this error.

In my understanding this is an object file but aside from that i don't see why it would not works.

Thank you for your future answers !