Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Not really sure where to start but I had an ext3 fs mounted as /home on /dev/sdb3. I then attempted to create a swap partition on that running:
mkswap /dev/sdb3 1000000 STUPID!!
I then thought to run fsck but it warned me about running on a mounted file system.
I then issued : umount /home
This has since unmounted it but now I cannot remount it. I think the systems is confused with 2 file systems on it. Please see the following disk stats:
What should I do next to get /home recreated. I'm pretty sure my data is gone but I'm just afraid to do anything else for fear of blowing something else away. Uugh! Help!!!
/dev/sdb5 on / type ext3 (rw)
none on /proc type proc (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
/dev/sdb1 on /usr type ext3 (rw)
/dev/sdb6 on /var type ext3 (rw)
fdisk -l
Disk /dev/sda: 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6 48163+ 83 Linux
Disk /dev/sdb: 255 heads, 63 sectors, 4427 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 382 3068383+ 83 Linux
/dev/sdb2 383 636 2040255 82 Linux swap
/dev/sdb3 637 897 2096482+ 83 Linux
/dev/sdb4 898 4427 28354725 5 Extended
/dev/sdb5 898 946 393561 83 Linux
/dev/sdb6 947 4427 27961101 83 Linux
major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq
Wow well done my friend.
Well, I suggest you start to pray.
You might be able to recover SOME (FEW) to none things. Ext2/3 usually backup super blocks each 8192 blocks. Mean you might be able to mount your partition using some freak options. try to mount your partition using :
mount /dev/sdb3 /mnt/whatever -o sb=1007616
(I'm really not sure if this block make sense neither if your partition is large enought I haven't took the time to count the size of it with the data you provided).
In any case, don't expect too much from it, even if you suceed mounting it, most file will be badly damaged (if you are lucky, only filename will be corrupt) and you'll have to format this again... but you might be able to backup (very) important data you might have. take a look at man mount (especially about ext2/3 options) and feel free to try everything you think of.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.