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.
Okay Guys, today when I enter Ubuntu as usual, i get on the screen to log on then i insert my login data, and the pc froze up. I try again and nothing. Came to mind that would be HDD bad-blocks, which have a long and boring history with them.
Okay, I log on Windows, I do some stuff, then I go back to ubuntu, and same thing. I've tried running fsck in the shell (recovery option on grub) , but has not had any results. The fsck just tried, but it get some error or something.
After fsck I restart, the screen show ERROR 17 in Grub, had given it before, I thought it was nothing, just reinstall grub. Ok
So i put the ubuntu liveCD to try to recover Grub, and the Grub was like impossible to recover or install. Nice to mention that i was checking the HDD to see if everything was straight, and only came to the Windows partition, ubuntu partition did not appear. I had noticed that was strange, but ok.
After a while i managed to recover the Windows MBR, then I want to use explore2fs to save some files from ubuntu and then format the entire hard drive, but nothing, had no unit available to chose there, all in white, no options, no hda or sda.
I lost everything? It is not possible, I have too many things there, they can not be thrown away
Some guys told me that my partition got lost into HDD.
Here some things that i try already -
Quote:
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa820a820
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 1658 13209600 6 FAT16
Partition 2 does not end on cylinder boundary.
/dev/sda3 1658 5099 27643904 7 HPFS/NTFS
Partition 3 does not end on cylinder boundary.
/dev/sda4 5100 9733 37222605 5 Extended
/dev/sda5 5100 9546 35720496 83 Linux
/dev/sda6 9547 9733 1502046 82 Linux swap / Solaris
Quote:
ubuntu@ubuntu:~$ sudo mount /dev/sda4
mount: can't find /dev/sda4 in /etc/fstab or /etc/mtab
Quote:
ubuntu@ubuntu:~$ sudo mount /dev/sda4 /media/disk
mount: you must specify the filesystem type
Quote:
ubuntu@ubuntu:~$ sudo mount -t ext2 /dev/sda4 /media/disk
mount: wrong fs type, bad option, bad superblock on /dev/sda4,
missing codepage or helper program, or other error
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
In some cases useful info is found in syslog - try
dmesg | tail or so
ps: sorry for the bad english
ps2? sorry if i post it at the wrong board
Hi,
my english isn't so good, but i sought to use it. Reading is quite useful ability and not so hard, than you should try it. fdisk -l! What is sda4? See?
this suggests that your linux partition is in sda4. your partition table shows sda4 as being the beginning of the extended partition and sda5 being your actual linux partition. grub.conf should be changed to
this suggests that your linux partition is in sda4. your partition table shows sda4 as being the beginning of the extended partition and sda5 being your actual linux partition. grub.conf should be changed to
sudo mount -t ext3 (or whatever file system type your using) /dev/sda5 /mount_point
Quote:
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt/tmp
mount: you must specify the filesystem type
Quote:
ubuntu@ubuntu:~$ sudo mount -t ext2 /dev/sda5 /mnt/tmp
mount: wrong fs type, bad option, bad superblock on /dev/sda5,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
i tried mounting as ext2 and ext3, same error
ps: maybe useful
Quote:
ubuntu@ubuntu:~$ sudo file -s /dev/sda5
/dev/sda5: ACB archive data
ubuntu@ubuntu:~$ sudo e2fsck -p /dev/sda5
e2fsck: Bad magic number in super-block while trying to open /dev/sda5
/dev/sda5:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.