bat_pi
Posts: 2
Joined: Sun Dec 08, 2013 6:09 pm

Crazy experience with Pi

Tue Dec 10, 2013 2:20 am

Due to some D bus error i formatted my SD card(8 gb) and kept a fresh Raspbain Image file.
€‹After i connected my Pi and trying to expand it.
almost 50% is done, my bad the power supply got interrupted and it haven't started.

So half of the image got expanded, so when i try to format it n keep in my PC(Lubuntu) it had shown 3 drives
1.Root
2.Settings
3.Boot
unable to delete any way, so i tired formatting all 3 separately

sudo mount
(i found all 3 interfaces, /dev/sdb3, /dev/sdb5, /dev/sdb6)
sudo umount /dev/sdb3
sudo mkfs.vfat -n RECOVERY -I /dev/sdb3
sudo umount /dev/sdb5
sudo mkfs.vfat -n RECOVERY -I /dev/sdb5
sudo umount /dev/sdb6
sudo mkfs.vfat -n RECOVERY -I /dev/sdb6

After that i understand what crap i did....... :?
the SD got corrupted i guess now its not showing in Linux PC n also not in any mobile
but showing as 1.18Gb in Windows.

I have no idea what happened, am New to Raspberry Pi
But for me this is lesson that i should be more careful @power supply
can any one tell me, how smarter can my situation can be handed previous.
1st place when i tried to format from windows thru command prompt
C:\ Format H:

it was showing completed n showing 1.18gb free, n when i kept in linux it was still showing those 3 folders ROOT, BOOT, SETTINGS as in 3 drives to me
I formated as i explained above, thats it.

Magic: No Clue what happened.
8 SD card is not getting detected in Linux PC and any Mobile but showing as 1.18gb Space SD card in Window .

Can any one tell me the reason rather possible reason.

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Crazy experience with Pi

Tue Dec 10, 2013 6:50 am

For use in the Pi, the SD card gets partitioned into two or more parts. Linux can see and use all of those parts. They appear as "drives" in some utilities.

MS decided that SD cards would never have more than one partition on, and coded Windows to only recognise the first one it finds. On NOOBS that is the 1.18GB that you can see.

To format the whole card for Windows you can:

1) Download and use the SD Card Association formatting program (do a web search for the free download) and format the card with "Format Size Adjust" option selected.

2) Put the card in a camera and select the "Format Card" option from the camera menus. This will reformat the entire card.

3) Use one of the Linux partitioning/disk management tools to delete all of the partitions and create a single new one with the type set to FAT32. Then format in Windows.

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1557
Joined: Sat Sep 10, 2011 11:43 am

Re: Crazy experience with Pi

Tue Dec 10, 2013 6:59 am

Just copy the NOOBS files onto your H: (make sure that bootcode.bin is in the H: directory) Then boot your Pi. It should reset all the partitioning correctly for you

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

Kymru
Posts: 18
Joined: Tue Aug 06, 2013 11:28 am
Location: Y Drenewydd, Cymru

Re: Crazy experience with Pi

Wed Dec 11, 2013 2:18 am

*** DO NOT DO THIS UNLESS YOU WANT TO COMPLETELY WIPE THE SD CARD ***

just my take, next time you want to completely wipe the SD card in windows, do not use format in command prompt

instead go to cmd, type diskpart, when it loads up, type list disk it will show all your connected drives as full drives, if your not sure which one is the SD card, remove the SD card and type list disk, take note of disks, insert SD card and type list disk again, new one is your SD card, now type select disk * depending what number is next to your SD card, in my case, as i have 3 hard drives, 0 = first hard drive, 1 = second hard drive, 2 = third hard drive so 3 is always my SD card

select disk 3, once its selected just type clean, now you have a clean unformatted SD card

quick format, go to Control Panel > Administrative Tools > Computer Management > Disk Management (under storage option), locate the unformatted SD card, right click and format to fat32

cmd
diskpart
list disk
select disk *
clean

i am using Windows 7 Ultimate, not sure if that makes a difference or not


Code: Select all

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

F:\Portable Apps\Console2>diskpart

Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: Computer Name

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          279 GB   100 MB
  Disk 1    Online         1397 GB  7168 KB
  Disk 2    Online          233 GB      0 B
  Disk 3    Online           14 GB    12 GB

DISKPART> select disk 3

Disk 3 is now the selected disk.

DISKPART> clean

DiskPart succeeded in cleaning the disk.

DISKPART>

Return to “Beginners”