Linux - HardwareThis 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.
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.
I had Fedora Core 1 installed on a system with 2 hard disks. One disk crashed though (totally, no chance of getting anything back). Aparently was /home / /sbin /bin etc on the disk that stayed healty. But /usr was on the crashed disk, so that Fedora refused to boot properly after that.
Now I have bought a new hard disk, and re-installed Fedora Core 1 on it. But I cannot access the old healthy hard disk anymore (without formating it and loose all data on it). I have tried the following:
If I use webmin to try to mount it again, I get following error:
Failed to save mount: Mount failed :
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
or to many mounted file systems
So I went back to linuxquestions, read some articles about mounting without getting wiser, and found out that the reason I can't mount is that I cannot have 2 linux system disks at the same time or something. Also that fdisk -l will tell a lot about the system, so I have display it below. Now. My new disk is the 80 GB one, that I boot off now. The old working disk where I used to have Fedora Core 1 installed is the 41.1 GB disk. It is /dev/hda1 which I cannot mount.
So. Anyone got an idea how I can copy the data from /dev/hda1 (the stuff that is in the /home directory mostly, like emails) to the new disk (/dev/hdd2).
Quote:
[root@linux root]# fdisk -l
Disk /dev/hdd: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 * 521 9733 74003422+ 83 Linux
/dev/hdd2 1 520 4176868+ 82 Linux swap
Partition table entries are not in disk order
Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 4489 36057861 83 Linux
/dev/hda2 4490 4998 4088542+ 83 Linux
[root@linux /]# mkdir /mnt/oldFC1
[root@linux /]# mount -t ext3 /dev/hda1 /mnt/oldFC1
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
or too many mounted file systems
Same error as webmin gave more or less... I am certain I used ext3 when I installed Linux both now and then... Now what...
Ups. Read a bit further on, and saw that someone had used the mke2fs -j /dev/hda1 command with luck, so I tried it too. Worked , but now all my data on the old hard disk is erased ... Hmm. How to break this to the users... Ah well. I am sure they did backup...
Code:
[root@linux root]# mke2fs -j /dev/hda1
mke2fs 1.34 (25-Jul-2003)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
4513152 inodes, 9014465 blocks
450723 blocks (5.00%) reserved for the super user
First data block=0
276 block groups
32768 blocks per group, 32768 fragments per group
16352 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.