Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
I have booted into my other HDD, hoping to recover a few files from my usual HDD and go for a fresh install, but it doesnt appear on file explorer. The other parition on the drive does, but not the boot partition. Disk utility sees it as
Partition 1 629Gb Unknown (should be Ext4)
The other (working) partition appears as
Filesystem Partition 3 1.4Tb Ext4
I have run testdisk on the drive and a search of the disk shows the 2 partitions, the swap and the extended, when I try to explore files on the suspect partition it says "No file found, filesystem may be damaged". the partition I use for storage shows up the files there OK
I am unsure where to go next, I'm not bothered about the OS on there, I would just like to recover a handful of files that I know are only on that drive and I will go for a re-install, but if I could get it back to how it was that would be even better. Any help much appreciated.
For the record I am running on Linux Mint 17.1 on the second HDD, that is what should be on the broken partition too if it helps. thanks
I dont know how to do that as a command. But in Disk utitlity its not there as an option. A lot of the options are greyed out and theres no filesystem listed for it. Where the other say Ext4 or Swap for example, this says unknown
If testdisk can't find any evidence of an ext4 filesystem, that's pretty bad. It suggests that not only is the primary super block destroyed but the backup super blocks as well. Another possibility is that the partition table entry for that partition has been damaged. What is the output from "fdisk -lu /dev/sda" (substituting the correct device if it is not "sda")? What happens if you try to run "fsck.ext4 -n /dev/sda1"? (Again, substitute the correct device, and do not leave out the "-n". At this point you do not want fsck to try to "fix" anything. That could be disasterous.)
When you post output, please include the actual command you ran, and wrap it all in [CODE] ... [/CODE] tags to preserve formatting.
Thank you everyone for replies.
I don't know what I did if anything, other than scanning it with test disk, but this morning I have a different error on startup.
On another note I can now mount the disk when I startup on another HDD and it is showing as Ext4, and have backed up what I need, so far it all seems to be uncorrupt.
While I would like to know what happened, I think I'm just going to go for a format and reinstall on the drive and see if anything unusual happens. The only bit I'm not sure about in the commands suggested is the "partition 2 does not start on a physical sector boundary" or is this normal? sdb1 is the partition that wasn't working, sdb3 is the "storage" partition with no OS
Code:
mike-study mike # fdisk -lu /dev/sdb
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000238e5
Device Boot Start End Blocks Id System
/dev/sdb1 2048 1227923455 613960704 83 Linux
/dev/sdb2 3890325502 3907028991 8351745 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/sdb3 1227923456 3890323455 1331200000 83 Linux
/dev/sdb5 3890325504 3907028991 8351744 82 Linux swap / Solaris
Partition table entries are not in disk order
mike-study mike # fsck.ext4 -n /dev/sdb1
e2fsck 1.42.9 (4-Feb-2014)
/dev/sdb1: clean, 297309/38379520 files, 29420213/153490176 blocks
The only bit I'm not sure about in the commands suggested is the "partition 2 does not start on a physical sector boundary" or is this normal? sdb1 is the partition that wasn't working, sdb3 is the "storage" partition with no OS
Code:
mike-study mike # fdisk -lu /dev/sdb
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000238e5
Device Boot Start End Blocks Id System
/dev/sdb1 2048 1227923455 613960704 83 Linux
/dev/sdb2 3890325502 3907028991 8351745 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/sdb3 1227923456 3890323455 1331200000 83 Linux
/dev/sdb5 3890325504 3907028991 8351744 82 Linux swap / Solaris
Partition table entries are not in disk order
For the extended partition that physical sector alignment does not matter. What matters is that all of your other partitions are properly aligned. Misalignment severely affects write performance in drives with physical sectors larger than the logical sector size, but the only thing misaligned here is the header on that extended partition. The only time that header is written is when you are repartitioning the disk. (For that matter, the only time it is read is during booting or when you run commands like fdisk that read partition information from the disk.)
I have booted into my other HDD, hoping to recover a few files from my usual HDD and go for a fresh install, but it doesnt appear on file explorer. The other parition on the drive does, but not the boot partition. Disk utility sees it as
Partition 1 629Gb Unknown (should be Ext4)
The other (working) partition appears as
Filesystem Partition 3 1.4Tb Ext4
I have run testdisk on the drive and a search of the disk shows the 2 partitions, the swap and the extended, when I try to explore files on the suspect partition it says "No file found, filesystem may be damaged". the partition I use for storage shows up the files there OK
I am unsure where to go next, I'm not bothered about the OS on there, I would just like to recover a handful of files that I know are only on that drive and I will go for a re-install, but if I could get it back to how it was that would be even better. Any help much appreciated.
For the record I am running on Linux Mint 17.1 on the second HDD, that is what should be on the broken partition too if it helps. thanks
\
soory wrong post LoL removed what I had and put in right post ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.