LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-20-2010, 12:33 PM   #1
mgra99
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Rep: Reputation: 0
flash---damage


hi there
i have flash 32gb it is damage when i write fdisk -l

** Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc4e779f7

Device Boot Start End Blocks Id System
/dev/sda1 1 3825 30724281 7 HPFS/NTFS
/dev/sda2 3826 26772 184321777+ f W95 Ext'd (LBA)
/dev/sda3 * 26773 26798 204800 83 Linux
/dev/sda4 26798 30401 28945142+ 8e Linux LVM
/dev/sda5 3826 26772 184321746 7 HPFS/NTFS

Disk /dev/dm-0: 24.4 GB, 24352129024 bytes
255 heads, 63 sectors/track, 2960 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 5284 MB, 5284823040 bytes
255 heads, 63 sectors/track, 642 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

when i do less /dev
** brw-rw----. 1 root disk 253, 0 2010-02-20 22:05 dm-0
brw-rw----. 1 root disk 253, 1 2010-02-20 22:05 dm-1

my flash convert from directory to block device
how can i solve it ?
 
Old 02-20-2010, 12:59 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by mgra99 View Post
hi there
i have flash 32gb it is damage when i write fdisk -l

** Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc4e779f7

Device Boot Start End Blocks Id System
/dev/sda1 1 3825 30724281 7 HPFS/NTFS
/dev/sda2 3826 26772 184321777+ f W95 Ext'd (LBA)
/dev/sda3 * 26773 26798 204800 83 Linux
/dev/sda4 26798 30401 28945142+ 8e Linux LVM
/dev/sda5 3826 26772 184321746 7 HPFS/NTFS

Disk /dev/dm-0: 24.4 GB, 24352129024 bytes
255 heads, 63 sectors/track, 2960 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 5284 MB, 5284823040 bytes
255 heads, 63 sectors/track, 642 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

when i do less /dev
** brw-rw----. 1 root disk 253, 0 2010-02-20 22:05 dm-0
brw-rw----. 1 root disk 253, 1 2010-02-20 22:05 dm-1

my flash convert from directory to block device
how can i solve it ?
Put a valid partition table on the device.
 
Old 02-20-2010, 01:58 PM   #3
mgra99
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
TBone
how can i do that ?
plzzzz
 
Old 02-20-2010, 04:05 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by mgra99 View Post
TBone
how can i do that ?
plzzzz
First, spell out your words. Second, provide some actual details, like version/distro of Linux, etc.

Read the man pages for fdisk and mkfs.
 
Old 02-20-2010, 04:32 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Could you print the contents of /dev/mapper/? I don't see why a flash drive would be showing up as dm-0 or dm-1. Even if it is encrypted, there should be a /dev/sdb or /dev/sdc for the drive and /dev/sdb1 or /dev/sdc1 for the partition. Are any of your partitions encryped, part of a RAID array or are you using LVM?

Also, to examine a device you can use `file -s':
sudo file -s /dev/dm-0

Another thing to do is to run `sudo tail -f /var/log/messages' before inserting the pendrive. This will clear up what device is detected, the node it uses and whether the kernel has found partitions on the device.

Last edited by jschiwal; 02-20-2010 at 04:33 PM.
 
Old 02-22-2010, 02:03 AM   #6
mgra99
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Could you print the contents of /dev/mapper/? I don't see why a flash drive would be showing up as dm-0 or dm-1. Even if it is encrypted, there should be a /dev/sdb or /dev/sdc for the drive and /dev/sdb1 or /dev/sdc1 for the partition. Are any of your partitions encryped, part of a RAID array or are you using LVM?

Also, to examine a device you can use `file -s':
sudo file -s /dev/dm-0

Another thing to do is to run `sudo tail -f /var/log/messages' before inserting the pendrive. This will clear up what device is detected, the node it uses and whether the kernel has found partitions on the device.
when i do file -s /dev/dm-0 show this message
[root@Fedora12 ~]# file -s /dev/dm-0
/dev/dm-0: Linux rev 1.0 ext4 filesystem data (needs journal recovery) (extents) (large files) (huge files)

i am using fedora12
 
Old 02-26-2010, 02:09 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
/dev/dm-0 and /dev/dm-1 are probably logical volumes from the LVM volume.
It is normal that they wouldn't have a valid partiton table if they are partitions themselves.

Please post your /etc/fstab file. I am thinking that these two devices are from /dev/sda and not your flash drive, unless your system runs of a flash drive.

Look at your kernel messages from boot up. (enter dmesg or look in /var/log/ for logs starting with "boot.". If the flash drive is a second drive, then you need to find out what it is first. There may have been a problem with the flash drive, and the kernel didn't detect any partitions on it, but it has nothing to do with dm-0 or dm-1.

You line "less /dev" doesn't make sense. Using a directory as an argument to less, it presents you with files in the directory to choose from. Maybe you meant to use "ls /dev/".
  • Gather informations about your devices so you know which device is what. Then you know where to look further.
  • Knowing the name of the problem device, collect evidence such as boot error messages, which may indicate what the problem is with your device.
  • address the problem directly after you are armed with the information you need. If the filesystem is faulty, you may be able to repair it. If the device itself is faulty, look into whether you can produce an image file(s) and recover your files.

Last edited by jschiwal; 02-26-2010 at 02:18 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lightning damage Peterius Linux - Networking 4 10-30-2008 09:51 PM
Can mounting a usb flash drive with the sync option damage it ? electronpusher Linux - General 4 03-04-2008 11:46 AM
FLASH FLASH XP Home and Samba Fix FLASH FLASH zollodav Linux - Networking 1 02-19-2006 01:16 AM
damage in VCD's... sachitha Linux - Newbie 1 11-03-2003 11:44 AM
Mobo damage ... phoeniXflame General 13 08-18-2003 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:36 PM.

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