LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-27-2006, 01:01 PM   #1
xgreen
Member
 
Registered: Aug 2003
Distribution: Slackware,Arch
Posts: 389

Rep: Reputation: 30
Lost data on reiserfs


hi,

I have formatted one 20GB harddisk with reiserfs & copy all my data onto it. After reboot the harddisk can't be accessed anymore. Anyway to recover the data? Below are the step taken,

umount /dev/hdb
mkreiserfs -f /dev/hdb
mount the drive and start copy all the data onto it. check the data on /dev/hdb found all ok.
reboot & .....

dmesg output :
Code:
      ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:DMA
hdb: Maxtor 2B020H1, ATA DISK drive
hdb: max request size: 128KiB
hdb: 40020624 sectors (20490 MB) w/2048KiB Cache, CHS=39703/16/63, UDMA(100)
hdb: cache flushes not supported
 hdb: unknown partition table
ReiserFS: hdb: found reiserfs format "3.6" with standard journal
hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdb: dma_intr: error=0x40 { UncorrectableError }, LBAsect=29622272, sector=29622272
end_request: I/O error, dev hdb, sector 29622272
ReiserFS: hdb: warning: sh-2029: reiserfs read_bitmaps: bitmap block (#3702784) reading failed
ReiserFS: hdb: warning: jmacd-8: reiserfs_fill_super: unable to read bitmap
hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdb: dma_intr: error=0x40 { UncorrectableError }, LBAsect=29884416, sector=29884416
end_request: I/O error, dev hdb, sector 29884416
hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
fdisk output :
Code:
[root@home ~]# fdisk -l /dev/hdb

Disk /dev/hdb: 20.4 GB, 20490559488 bytes
16 heads, 63 sectors/track, 39703 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Disk /dev/hdb doesn't contain a valid partition table
 
Old 05-27-2006, 03:59 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
After you ran mkreiserfs, you didn't define any partitions, and I'm assuming that when you said you mounted the drive you ran "mount /dev/hdb <mountpoint>".

You will need to create your partitions prior to mounting them, and the mount command should always refer to a specific partition rather than the device itself. Assuming that you created one partition that occupied the entire drive, the correct mount instruction would be
Code:
mount /dev/hdb1 <mountpoint>
where <mountpoint> is the actual mount point, eg, /mnt/backup or whatever

After that, your copy command should work. Good luck with it
 
Old 05-27-2006, 04:18 PM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Everything J.W. said is correct indeed. However, a disk can be used without partition table, just by creating a filesystem on it as you did. At least ext3 works in such an unconventional way. Don't know about Reiser (which IMO is a lousy filesystem anyway).
 
Old 05-27-2006, 06:07 PM   #4
xgreen
Member
 
Registered: Aug 2003
Distribution: Slackware,Arch
Posts: 389

Original Poster
Rep: Reputation: 30
thanks for the reply. It is my intention to create the whole harddisk as one partition. I saw a warning when i gave "mkreiserfs /dev/hdb" but repeat the command with "-f" option. I not sure whether we can format the whole harddisk as one partition.
 
Old 05-27-2006, 06:14 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You need to create that one partition first with fdisk, then you can create a filesystem on it.
 
  


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
Howto recover lost and formatted data on lost partitions. Sören Schneider LinuxQuestions.org Member Success Stories 2 04-05-2006 06:38 AM
The postgresql data directory content in the pgsql directory is lost (empty data dir) kisembo Linux - Software 1 02-13-2006 01:11 PM
ReiserFS data recovery jclu Linux - Software 1 07-13-2005 12:26 PM
copy data from reiserfs to ntfs liljhand Linux - General 3 01-23-2005 11:23 PM
reiserfs partition lost, any way to recover? kostian Linux - Newbie 7 10-29-2004 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:01 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