LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-13-2008, 01:17 AM   #1
timothyb89
Member
 
Registered: Jul 2006
Location: Colorado, USA
Distribution: openSuSE 11.4
Posts: 118

Rep: Reputation: 15
Can't format partition?


This seems like a stupid problem, but here goes...

I have a Micro SD card plugged in with a USB adapter. I managed to corrupt the filesystem so I've been trying to reformat it (with fat32) without any luck.

First I plug it in an unmount the partition (/dev/sdb1), and I try fdisk'ing it, with:
Code:
fdisk /dev/sdb
But apparently I'm not doing domething right:
Code:
You will not be able to write the partition table.
I'm guessing that won't work, so I pull open GParted with hope that it will do whatever I forgot to do automatically. No luck:
Quote:
...
Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Can't write to /dev/sdb, because it is opened read-only.
...
Anyone see where I may have gone wrong?
 
Old 03-13-2008, 01:45 AM   #2
leebrent
Member
 
Registered: Oct 2007
Location: Nanaimo
Distribution: Red Hat 5
Posts: 39

Rep: Reputation: 15
What does fdisk -l yield?
 
Old 03-13-2008, 01:50 AM   #3
timothyb89
Member
 
Registered: Jul 2006
Location: Colorado, USA
Distribution: openSuSE 11.4
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by leebrent View Post
What does fdisk -l yield?
Quote:
Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd0f4738c

Device Boot Start End Blocks Id System
/dev/sda1 1 6 48163+ de Dell Utility
/dev/sda2 * 7 3664 29382885 7 HPFS/NTFS
/dev/sda3 19061 19452 3148740 db CP/M / CTOS / ...
/dev/sda4 3665 19060 123668370 5 Extended
/dev/sda5 10006 10475 3775243+ b W95 FAT32
/dev/sda6 18506 19060 4458006 82 Linux swap / Solaris
/dev/sda7 10476 18505 64500943+ 83 Linux
/dev/sda8 3665 10005 50934019+ 83 Linux

Partition table entries are not in disk order
Here it is. Thanks!
 
Old 03-13-2008, 05:26 AM   #4
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
For what it's worth, on several memory sticks I've used it was actually /dev/sda2 and not sda1 as one might expect that held the normal storage space. Hope that helps!
 
Old 03-13-2008, 07:26 AM   #5
timothyb89
Member
 
Registered: Jul 2006
Location: Colorado, USA
Distribution: openSuSE 11.4
Posts: 118

Original Poster
Rep: Reputation: 15
In a burst of genius, I forgot to have the card plugged in while running fdisk :P. Here's the missing info:
Quote:
Disk /dev/sdb: 1015 MB, 1015808000 bytes
32 heads, 63 sectors/track, 984 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 1 984 991747+ 6 FAT16
Quote:
Originally Posted by Poetics View Post
For what it's worth, on several memory sticks I've used it was actually /dev/sda2 and not sda1 as one might expect that held the normal storage space. Hope that helps!
Unfortunately /dev/sdb2 doesn't exist.

Thanks for the help so far!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Different Partition format nil618 Linux - Newbie 3 12-17-2006 08:28 AM
should i format X partition after creat Y partition No2002 Linux - General 3 07-16-2005 10:13 AM
Format a partition ar1 Linux - General 1 01-28-2004 11:05 AM
How do I format a partition snatale1 Linux - Newbie 2 10-08-2003 11:02 PM
partition w/o format Netrack Linux - General 4 01-14-2003 07:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration