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.
This is becoming a recurring problem (3 times) and if possible I would like to know how to get my HDD back as it was, more importantly I'd like to know whats likely to be causing it and how to stop it happening
I have 2 HDDs on the PC. dev/sda is a 128Gb SSD running Xubuntu 16.04 with a single partition. This became unreadable after I tried booting from a USB drive (possibly a coincidence) with the error
Error: Unknown filesystem,
grub rescue>
I tried booting from the other HDD which I know worked 2 days ago, it has an older version of Mint on that I use for printing because I cant get my printer going in Xubuntu, and it gave me the same error. I tried unplugging my SSD, in case it was still trying to boot through there somehow with no luck
With some googling I found these commands
set root =(HDD location)
set prefix= (HDD location)/boot/grub
insmod normal
normal
and for all partitions I got normal.mod not found
If it was happening on one HDD, I would be tempted to blame and replace the HDD. Seems unlikely 2 HDDs are starting to fail at a year old. How likely is it my motherboard (Gigabyte still looking for model no) is frying my HDDs?
I have used fdisk(I think) in the past with some success but any advice on how to recover my partitions would be appreciated. Mainly want the Mint one because it normally takes me a good few hours googling to get the printer going. Obviously theres stuff on the SSD I'd prefer not to loose but I'll live without it
currently on gparted, both partitions I'm having trouble with are showing up as "unknown" but they are there and the right sizes, and they both have the following warning. The other partitions on /sdb are all there and working properly, it is only the linux partition that is damaged
Unable to detect file system! Possible reasons are:
- The file system is damaged
- The file system is unknown to GParted
- There is no file system available (unformatted)
- The device entry /dev/sdb4 is missing
That is a weird issue I once encountered when trying to install PC-BSD, one the first attempt it fried my Linux partition and on the second attempt my whole partition table went out - although those hard disks haven't given me issues since. Also, what OS were you booting on the USB Drive?
I *STRONGLY* recommend before doing anything else, booting to another Live USB Thumbdrive or Cd with a live distro that contains "testdisk" and "photorec" (KNOPPIX includes it, although not too sure about Mint or (X)Ubuntu), and recovering your data. Whatever that's causing your issue may corrupt the partition table or other partitions, so I'd rescue what you can first.
I found a quick guide on how to use photorec to rescue data from a corrupt file system:
testdisk and photorec might also be able to look for things that would give you a clue on what got corrupted. There are also tests for the integrity of (at least) physical drives like "badblocks".
One last thing, perhaps you want to look up issues with the specific models of your motherboard, power supply, and hard disks.
This became unreadable after I tried booting from a USB drive (possibly a coincidence) with the error
Simply "trying" to boot from a usb in itself would not logically create a problem like this so did you actually boot something from the usb and what was it and what if anything did you do after booting it? The reason I ask is the message you report "I got normal.mod not found".
Have you run fsck on whichever partitions you get the message on?
Can you mount any of the partitions with the boot directory to see if you actually have a 'normal.mod' file?
Can you post the output of fdisk -l or an image of GParted screen?
Thank you all for replies, I am short of time now but will answer what I can quickly, I will have a go with fdisk etc. after work.
I know booting from a live USB shouldn't do any damage. The USB drive had either Mint or Xubunutu on it I was loading it to see which it was mainly. I didnt get that far because on the boot menu my keyboard wouldn't work (USB, but always has worked to set up in the past). I thought it was odd but Mrs was waiting to go shopping so came back to it later. When I did the PC wouldn't boot (unknown filesystem). The keyboard wasn't working still in the BIOS or boot menu thinking about it, I ended up removing my SSD so I could boot from the HDD without using boot menu. But after I made a fresh USB live disk to run on (on Windows laptop) the BIOS etc. was working fine. I did try with and without the old live USB plugged in
I can't mount either partition. But the good partitions on the HDD are mounted and usable
Personal data is mainly backed up. Theres bits I would like that I'm not certain are backed up, but nothing I'll lose sleep over. I would mainly like to get the Mint partition back up and running as it was so I still have a printer I can use
part of fdisk -l output. I assume only this is relevant but happy to post the lot if it helps. I notice the partitions are both showing up as linux here, not unrecognised
Code:
Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000e982b
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 250068991 250066944 119.2G 83 Linux
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 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
Disklabel type: dos
Disk identifier: 0xf8202312
Device Boot Start End Sectors Size Id Type
/dev/sdb1 1227923456 3890323455 2662400000 1.2T 83 Linux
/dev/sdb2 3890325504 3907028991 16703488 8G 82 Linux swap / Solaris
/dev/sdb3 2048 613963775 613961728 292.8G 7 HPFS/NTFS/exFAT
/dev/sdb4 * 613963776 1227922760 613958985 292.8G 83 Linux
Partition table entries are not in disk order.
Connect the adapter to the SSD.
Then ideally borrow a functioning Linux PC/laptop and plug in the adapter's USB connector.
Boot up the PC/laptop and the SSD should appear as a 128GB volume (probably less) external drive on your Desktop.
Click on volume/drive.
Click on the username and all the folders for your Documents, Downloads, Pictures, Videos etc should be shown.
Then copy & paste this personal data to another external drive (HDD2).
Repeat the operation for the 1.8TB HDD1.
If nothing shows up on the SSD and HDD1 then you will need to use TestDisk or PhotoRec to try to recover the data.
Once you have recovered your data, I suggest that you do something like *this:
beachboy2. I am going to have a go with the rescatux program I haven't come across it before but I like the idea of a nice wizard rather than trying to stumble through blindly like I normally do.
The tutorial link you have posted regarding SSDs, I assume this makes the PC run from the SSD but gives access to the full size HDD for storing? I have tried to do that before but with no luck. I currently use a big partition on the HDD and manually transfer files when I am done with them.
Is there any reason this wouldn't work with Xubuntu rather than Mint,
and is there any reason it wouldn't work if I had a separate partition on the HDD to run my older version of Mint, since thats all I can get my printer to work on
Yancek, I did come across that thread when I was looking for an obvious quick fix yesterday. It didn't help because the 2 partitions that should have grub on are "unknown"
The tutorial link you have posted regarding SSDs, I assume this makes the PC run from the SSD but gives access to the full size HDD for storing? I have tried to do that before but with no luck.
Dogman2 managed it recently after a hiccup or two:
The printer is Epson XP 322, there are linux drivers for it but there was a known bug with X/Ubuntu 16 at the time I was looking and Epson aren't supporting linux drivers anymore. I did have a look into it but gave up, I knew it would work on Mint anyway.
I have photorec running on SSD now to recover what I can. I will quickly have a go at restoring the partition on it tonight when that's done, but it will be tomorrow before I try much more than that
My main issue now is finding out what is causing the problem so I can try and stop it happening again
Thanks Beachboy2. That would save me having an OS just for printing if I can get it working in Xubuntu.
Regarding the main problem, I recovered all my files through Testdisk, but it wouldn't restore the partition. Rescatux gave me a failed message but when I looked afterwards the label on /sda had changed from "unable to mount" to "ubuntu". I took a chance and rebooted and I am back on my Xubuntu OS with nothing wrong as far as I can tell.
There was a few error messages when Rescatux was laoding up and most are still present on SSD booting, but the last bits flash off too quickly to read. This are the errors when it was booting into Rescatux anyway, I assume they are the same ones booting into Xubuntu
I hadn't noticed them before, but to be fair I usually turn the PC on and go and make a drink while it boots so they could have been there for an unknown time
The good news is I now have a working printer in Xubuntu which means I can probably go for a setup like you showed me before re OS on SSD and storage on HDD
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.