I can access data on HD, but parted sees it as unallocated space
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 can access data on HD, but parted sees it as unallocated space
Ok, thanks for your interest in the first place.
I bought a second hard drive, (seagate, 1TB) and followed some instructions about how should i format it. Unfortunately i don't remember where. I ended up with a fully functional disk and copied to it about 400 Gb of data. As far as i knew there was a single 935Gb partition. I needed to shrink the partition to create a smaller one i need in vfat, and every partition manager i tried (gparted, parted, Kde's partition manager, testdisk) sees the disk fine, as a 1TB unallocated space hard drive. I realize, the data was copied directly to /dev/sdb, not /dev/sdb1. I can access the data with no trouble, it gets mounted on boot and on use i have no issue. But i can't edit the partition table, because as far as parted is concerned, it's all unallocated space. I tried running testdisk (even deep) and parted rescue, but they don't see any partitions. Any thoughts? maybe some way of making a new partition table without erasing data=?
You didn't partition the disk.
So it has no partitions, so there's no partition table.
There is a filesystem, but that's all there is.
You did not do it "right", even if it is "working".
You need to save the data somewhere else, partition the 1TB disk, format it, and then copy the data back.
Then the partitioning tools will work as expected.
Yeah, i understand that much. The thing is, moving 400Gb around is impossible for me atm, so i was wondering if there is a way around, to partition it but stay able to rescue the information.
I also can't help, but interested in what sector zero looks like (the filesystem metadata). Want to post the output from this (merely reading that sector)?.
Are you booting off that disk ?.
Didn't expect to see that in the MBR - no reason why not I guess.
Soooo ...
I see a blank partition table. I'd reckon you could allocate a partition to cover the data you have.
Not recommending it for you if you can't back up your data, but I might have to go find an old disk to test this.
O.K., ignore the above. Your data will be at risk.
I had an old 4 Gig drive sitting around. Zeroed it, and formatted as ext3, copied some data over.
Made sure that was accessable, then added a partition to cover the entire drive. Can't mount it. Non-zero data starts at sector 2, not 63 as would normally be needed for a "standard" partition.
I played with the start sector of a partition covering the entire drive, but couldn't get it to mount.
Well, you sir are too kind. Now i know for sure that the only way i can partition my drive will erase all the data, so a full backup is in order. Thanks for your commitment.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.