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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-27-2006, 02:01 PM
|
#1
|
Member
Registered: Aug 2003
Distribution: Slackware,Arch
Posts: 389
Rep:
|
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
|
|
|
05-27-2006, 04:59 PM
|
#2
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
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
|
|
|
05-27-2006, 05:18 PM
|
#3
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
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).
|
|
|
05-27-2006, 07:07 PM
|
#4
|
Member
Registered: Aug 2003
Distribution: Slackware,Arch
Posts: 389
Original Poster
Rep:
|
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.
|
|
|
05-27-2006, 07:14 PM
|
#5
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
You need to create that one partition first with fdisk, then you can create a filesystem on it.
|
|
|
All times are GMT -5. The time now is 03:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|