URN Logo
UNIX Resources » Linux » Linux Forum » Linux Data Storage Support » Page.14 » Problem Mounting Old Hard Drive
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Problem Mounting Old Hard Drive
Subject: Problem Mounting Old Hard Drive
Author: da644    Posted: 2004-10-31 04:06:02    Length: 3,334 byte(s)
[Original] [Print] [Top]
Hi All.

I have built a new system from scratch and install Fedora Core 2. I have then removed the hard drive from my old system (Fedora Core 1) and installed it as the slave device in the new system. I did this so I could copy data from the old hard drive to the new old. However, when it could to mounting the old drive it doesn't want to play. Here is what happens:

First I did:

[root@linuxserver /]# fdisk -l

Disk /dev/hda: 20.4 GB, 20496236544 bytes
16 heads, 63 sectors/track, 39714 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         203      102280+  83  Linux
/dev/hda2             204        2283     1048320   82  Linux swap
/dev/hda3            2284       39714    18865224   83  Linux

Disk /dev/hdb: 4334 MB, 4334722560 bytes
255 heads, 63 sectors/track, 527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1          13      104391   83  Linux
/dev/hdb2              14         401     3116610   83  Linux
/dev/hdb3             402         527     1012095   82  Linux swap

Which show everything ok. So I did:

[root@linuxserver /]# mount /dev/hdb2 /mnt/other/
mount: you must specify the filesystem type

So then I tried:

[root@linuxserver /]# mount -t ext2 /dev/hdb2 /mnt/other/
mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
       or too many mounted file systems

So then I tried:

[root@linuxserver /]# mount -t ext3 /dev/hdb2 /mnt/other/
mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
       or too many mounted file systems

So then I tried a filesystem check and got:

[root@linuxserver /]# fsck /dev/hdb2

fsck 1.35 (28-Feb-2004)
e2fsck 1.35 (28-Feb-2004)
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext2: Filesystem has unexpected block size while trying to open /dev/hdb2

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>


At this point I gave up and posted this message. Anyone got any bright ideas?

Thanks in advanced.

Andrew.
[Original] [Print] [Top]
Subject: Problem Mounting Old Hard Drive
Author: John_the_geek    Posted: 2004-10-31 04:28:16    Length: 205 byte(s)
[Original] [Print] [Top]
mkdir /mnt/other

ok?

after that maybe encryption has it locked up?
dma?

try
man hdparm

or

hdparm -i /dev/hdb

mount as su?  
----
how you run, how you upgrade,
and how well you backup, is all that matters..

[span style='font-size:14pt;line-height:100%']~~~~John the Geek~~~~~~[/span]
KUBUNTU @ 2.6.10
[span style='color:purple']Linux user #355715[/span]
[Original] [Print] [Top]
Subject: Problem Mounting Old Hard Drive
Author: da644    Posted: 2004-10-31 04:39:09    Length: 4,155 byte(s)
[Original] [Print] [Top]
> mkdir /mnt/other

Already done.

> after that maybe encryption has it locked up?
> dma?

Not sure this means?

>hdparm -i /dev/hdb

Did this and got:

[root@linuxserver root]# hdparm -i /dev/hdb

/dev/hdb:

 Model=FUJITSU MPE3043AE, FwRev=EE-C0-23, SerialNo=05000915
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=8959/15/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=unknown, BuffSize=512kB, MaxMultSect=16, MultSect=16
 CurCHS=8959/15/63, CurSects=8466255, LBA=yes, LBAsects=8466255
 IORDY=yes, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2
 AdvancedPM=yes: disabled (255) WriteCache=enabled
 Drive conforms to: device does not report version:  1 2 3 4

 * signifies the current active mode

I also notice from the man page you can get more info with the -I command, this gave:

[root@linuxserver root]# hdparm -I /dev/hdb

/dev/hdb:

ATA device, with non-removable media
        Model Number:       FUJITSU MPE3043AE
        Serial Number:      05000915
        Firmware Revision:  EE-C0-23
Standards:
        Supported: 4 3 2 1
        Likely used: 4
Configuration:
        Logical         max     current
        cylinders       8959    8959
        heads           15      15
        sectors/track   63      63
        --
        CHS current addressable sectors:    8466255
        LBA    user addressable sectors:    8466255
        device size with M = 1024*1024:        4133 MBytes
        device size with M = 1000*1000:        4334 MBytes (4 GB)
Capabilities:
        LBA, IORDY(cannot be disabled)
        Buffer size: 512.0kB    bytes avail on r/w long: 4      Queue depth: 1
        Standby timer values: spec'd by Vendor
        R/W multiple sector transfer: Max = 16  Current = 16
        Advanced power management level: unknown setting (0x0000)
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 *udma4
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
                READ BUFFER cmd
                WRITE BUFFER cmd
                Host Protected Area feature set
           *    Look-ahead
           *    Write cache
                Power Management feature set
           *    SMART feature set
                Advanced Power Management feature set

> mount as su?

I'm logged in as root, which is the same right?

Any ideas from that lot?

Andrew
[Original] [Print] [Top]
Subject: Problem Mounting Old Hard Drive
Author: John_the_geek    Posted: 2004-10-31 05:20:55    Length: 1,489 byte(s)
[Original] [Print] [Top]
QUOTE
ATA device, with non-removable media
Model Number: FUJITSU MPE3043AE
Serial Number: 05000915
Firmware Revision: EE-C0-23

device size (4 GB)
Capabilities:
LBA, IORDY(cannot be disabled)
Buffer size: 512.0kB bytes avail on r/w long: 4 Queue depth: 1

Advanced power management level: unknown setting (0x0000)
DMA: *udma4


ok now the bios reads this drive the same as above?

and you set the drive as slave right... with the jumpers...

after that it realy depends on the way the old os was writeing to the drive
LBA32 = on
and if you used such program that altered the partition table with a key...

the udma4 can be changed...
NOW THIS CAN WIPE THE DRIVE SO DO AT OWN RISK
To enable DMA for a hard drive:
hdparm -d1 /dev/hda
NOW THIS CAN WIPE THE DRIVE SO DO AT OWN RISK
To disable DMA for a hard drive:
hdparm -d0 /dev/hda

To measure transfer rate of a hard drive:
hdparm -Tt /dev/hda

set it up the same and you will be ok
the info looks good to me...
 try booting knoppix or a small linux to see if they find it...
sorry I cant be much more help...
I gave up on fc2... fixing errors needs to be easier...
----
how you run, how you upgrade,
and how well you backup, is all that matters..

[span style='font-size:14pt;line-height:100%']~~~~John the Geek~~~~~~[/span]
KUBUNTU @ 2.6.10
[span style='color:purple']Linux user #355715[/span]
[Original] [Print] [Top]
Subject: Problem Mounting Old Hard Drive
Author: John_the_geek    Posted: 2004-10-31 05:30:11    Length: 1,135 byte(s)
[Original] [Print] [Top]
Hey I take that back read the output
QUOTE

Disk /dev/hdb: 4334 MB, 4334722560 bytes
255 heads, 63 sectors/track, 527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

and[/div]
CODE

 hdparm -I /dev/hdb

[table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'][tr][td]QUOTE

Logical max current
cylinders 8959 8959
heads 15 15
sectors/track 63 63
--


not sure which is right but is a start...
----
how you run, how you upgrade,
and how well you backup, is all that matters..

[span style='font-size:14pt;line-height:100%']~~~~John the Geek~~~~~~[/span]
KUBUNTU @ 2.6.10
[span style='color:purple']Linux user #355715[/span]
[Original] [Print] [Top]
« Previous thread
Can Write With Root Only
Linux Data Storage Support
Page. 14
Next thread »
Suse 9.1 Locks Up When Moving Files
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 11:54:49, cost 0.029320001602173 ms.