Sponsored Content
Full Discussion: Corrupted Hard Drive
Operating Systems Linux Red Hat Corrupted Hard Drive Post 302375678 by 2buck56 on Saturday 28th of November 2009 06:50:30 PM
Old 11-28-2009
Corrupted Hard Drive

I am running FC-7 which I realize is an older distro. But my question would apply to any distro.

I ran fsck on my mounted file system (I know, I shouldn't have). Now it won't boot. I get a kernel panic message.

I booted to a Knoppix Live Cd.

The desktop icon shows /dev/sda2 mounted at /media/sda2. When I perform ls -l on /media/sda2 it shows total 0.

When I perform dumpe2fs /dev/sda2 I get this message:
dumpe2fs 1.40-WIP (14-Nov-2006)
dumpe2fs: Bad magic number in super-block while trying to open /dev/sda2
Couldn't find valid filesystem superblock.

Is there any chance of recovering data from the drive or am I out of luck?

fdisk -l yields these results:
root@Knoppix:/ramdisk/home/knoppix# fdisk -l /dev/sda1

Disk /dev/sda1: 106 MB, 106896384 bytes
255 heads, 63 sectors/track, 12 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda1 doesn't contain a valid partition table
root@Knoppix:/ramdisk/home/knoppix# fdisk -l /dev/sda2

Disk /dev/sda2: 79.9 GB, 79925045760 bytes
255 heads, 63 sectors/track, 9717 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda2 doesn't contain a valid partition table

pvdisplay, vgadisplay, and lvdisplay yields these results:

root@Knoppix:/ramdisk/home/knoppix# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 74.41 GB / not usable 0
Allocatable yes
PE Size (KByte) 32768
Total PE 2381
Free PE 1
Allocated PE 2380
PV UUID 34v31h-rQS5-Lzjd-WuQC-F1EA-DnE2-Sj1ugr

root@Knoppix:/ramdisk/home/knoppix# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 74.41 GB
PE Size 32.00 MB
Total PE 2381
Alloc PE / Size 2380 / 74.38 GB
Free PE / Size 1 / 32.00 MB
VG UUID dhzswy-nDmJ-l32M-bTwJ-5tue-Qn1k-Ie9aad

root@Knoppix:/ramdisk/home/knoppix# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID fhLm4I-YxGM-uPrp-p54E-L0BZ-6RB1-4p9njg
LV Write Access read/write
LV Status NOT available
LV Size 72.44 GB
Current LE 2318
Segments 1
Allocation inherit
Read ahead sectors 0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID eFHGdu-0lUm-x2qa-vlJD-hayB-20ZT-wbJfYl
LV Write Access read/write
LV Status NOT available
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0

Any suggestion or help would be appreciated. Thanks in advance.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Partition Hard drive

Hello everyone. I am new to Linux so hope some one could help me here. I have a 30 Gb HD and windows Xp is my O/S, HD is not partitioned,but I want to Partitioned it, so I could Install Knoppix(Linux)on one of the partitioned one, how could I do this? OR should I erase every thing and then... (1 Reply)
Discussion started by: amir
1 Replies

2. SCO

Processor and Hard Drive

I trying to learn Unix and I am using SCO Unixware 7.1. Below are three question that I have: 1) Can someone tell me what command I can use to find out the system processor speed. 2) Can someone tell me what command I can use to find out what's the hard drive size of my unix box. 3) Can... (1 Reply)
Discussion started by: etaup02
1 Replies

3. UNIX for Dummies Questions & Answers

Removing hard drive

Hi, Can someone answer to my question.I' totally new to Unix. What is the command for removing the hard drive from the system? Thanks a lot, Puja (2 Replies)
Discussion started by: pujathakral
2 Replies

4. UNIX for Dummies Questions & Answers

Trying to copy old hard drive to new hard drive.

:confused: ........I have a new hard drive and I need to copy ALL info from the old to the new. I would like to use the dd command. I know the command is as follows...... dd if=/dev/rdsk/c1t1d0s0 of=/dev/rdsk/???????? Where I have the question marks is the problem. How do I find out what the... (4 Replies)
Discussion started by: shorty
4 Replies

5. Filesystems, Disks and Memory

The best partitioning schem for a 250GB Sata hard drive & a 75GB SCSI hard drive

Hi I have 2 75GB SCSI hard drives and 2 250GB SATA hard drives which are using RAID Level 1 respectively. I wana have both FTP and Apache installed on them as services. I'm wondering what's the best partitioning schem? I wana use FC3 as my OS, so, I thought I can use the 75GB hard drive as the /... (0 Replies)
Discussion started by: sirbijan
0 Replies

6. Solaris

Using the rest of my hard drive

Hi When I installed opensolaris, I installed it on a 20GB partition. How do I make use of the other 300GB I have spare? format shows:- -bash-3.2# format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c3d0 <DEFAULT cyl 2607 alt 2 hd 255 sec 63> ... (12 Replies)
Discussion started by: hellotommy
12 Replies

7. SCO

I need a help with accessing the hard drive

Hello guys, I have got from a friend a hard disk which was used in the SCO OpenServer. He needs some data from it. I have no clue how to copy its content with Linux or Windows-I have tried few Linux distros but the result is always the same-the file system is not recognized so can't be mounted.... (4 Replies)
Discussion started by: kataro
4 Replies

8. Red Hat

Hard drive formating

Im trying to install a fresh version of Fedora 17. I keep getting formating errors when trying to reformat the hard drive. I recieve errors as well I I try to use the entire disk for the install instead of creat new partitions from scratch. I even tried fromatting the disk using PartedMagic and... (7 Replies)
Discussion started by: Fingerz
7 Replies

9. UNIX for Advanced & Expert Users

External hard drive

I have connected an external hard drive. I can't find it. Both ls /media, fdisk -l and ls /dev show nothing. TIA (3 Replies)
Discussion started by: Meow613
3 Replies
ramdiskadm(1M)                                            System Administration Commands                                            ramdiskadm(1M)

NAME
ramdiskadm - administer ramdisk pseudo device SYNOPSIS
/usr/sbin/ramdiskadm -a name size [g | m | k | b] /usr/sbin/ramdiskadm -d name /usr/sbin/ramdiskadm DESCRIPTION
The ramdiskadm command administers ramdisk(7D), the ramdisk driver. Use ramdiskadm to create a new named ramdisk device, delete an existing named ramdisk, or list information about existing ramdisks. Ramdisks created using ramdiskadm are not persistent across reboots. OPTIONS
The following options are supported: -a name size Create a ramdisk named name of size size and its corresponding block and character device nodes. name must be composed only of the characters a-z, A-Z, 0-9, _ (underbar), and - (hyphen), but it must not begin with a hyphen. It must be no more than 32 characters long. Ramdisk names must be unique. The size can be a decimal number, or, when prefixed with 0x, a hexadecimal number, and can specify the size in bytes (no suffix), 512-byte blocks (suffix b), kilobytes (suffix k), megabytes (suffix m) or gigabytes (suffix g). The size of the ramdisk actually cre- ated might be larger than that specified, depending on the hardware implementation. If the named ramdisk is successfully created, its block device path is printed on standard out. -d name Delete an existing ramdisk of the name name. This command succeeds only when the named ramdisk is not open. The associated memory is freed and the device nodes are removed. You can delete only ramdisks created using ramdiskadm. It is not possible to delete a ramdisk that was created during the boot process. Without options, ramdiskadm lists any existing ramdisks, their sizes (in decimal), and whether they can be removed by ramdiskadm (see the description of the -d option, above). EXAMPLES
Example 1: Creating a 2MB Ramdisk Named mydisk # ramdiskadm -a mydisk 2m /dev/ramdisk/mydisk Example 2: Listing All Ramdisks # ramdiskadm Block Device Size Removable /dev/ramdisk/miniroot 134217728 No /dev/ramdisk/certfs 1048576 No /dev/ramdisk/mydisk 2097152 Yes EXIT STATUS
ramdiskadm returns the following exit values: 0 Successful completion. >0 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsr | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5), ramdisk(7D) NOTES
The abilities of ramdiskadm and the privilege level of the person who uses the utility are controlled by the permissions of /dev/ramdiskctl. Read access allows query operations, for example, listing device information. Write access is required to do any state- changing operations, for example, creating or deleting ramdisks. As shipped, /dev/ramdiskctl is owned by root, in group sys, and mode 0644, so all users can do query operations but only root can perform state-changing operations. An administrator can give write access to non-privileged users, allowing them to add or delete ramdisks. How- ever, granting such ability entails considerable risk; such privileges should be given only to a trusted group. SunOS 5.10 25 Mar 2003 ramdiskadm(1M)
All times are GMT -4. The time now is 05:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy