PDA

View Full Version : [SOLVED] System doesn't see second hard drive



rodnower
October 26th, 2012, 07:06 PM
Hello.
I have Ubuntu 12.04.1

I have 2 hard drives:

1. SAMSUNG SP80A4H
2. WD3200AAKS-75B3A0

which are recognized by BIOS, but only second recognized by the system: I have just sda...
I added pictures from BIOS and from terminal related to hard drives.
Sorry about pictures of terminal, next time just text.

I tried search in the forum but found mostly problems with USB external disk, which is far from my case.

Thanks for any advice.

Bashing-om
October 26th, 2012, 07:57 PM
rodnower; Hi ! Welcome to the forum.

To see what the system sees on the system:
terminal command (ctl+alt+t):

sudo fdisk -l(lower case "L")
and what gets auto mounted by the system is controlled by the config file:
/etc/fstab

See these tutorials for instruction:
http://ubuntuforums.org/showthread.php?t=283131
https://help.ubuntu.com/community/Fstab
https://help.ubuntu.com/community/Mount/
https://help.ubuntu.com/community/FilePermissions
http://www.psychocats.net/ubuntu/mountlinux

edit the file /etc/fstab to mount the drive from the desired "mount point" -attaches the drive to the file system- with your desired mount options. Then you will have access to the drive.

Post back with any questions.
just try'n to help <== BDQ

oldfred
October 26th, 2012, 08:10 PM
The tree command shows all my drives, but the are partitioned & formatted. It really is showing partitions, not drives.

Bashing-om 's suggestion of fdisk may show drive, but unpartitioned?

gparted & fdisk instructions:
https://help.ubuntu.com/community/InstallingANewHardDrive
https://help.ubuntu.com/community/HowtoPartition

escentrix
October 26th, 2012, 08:34 PM
Are you familiar with dmesg? Does it output anything unusual about the boot up of your drives?

Edit: If you're not familiar try submitting the output of
dmesg | grep ata

rodnower
October 26th, 2012, 08:40 PM
Thanx all for replays.
I made apt-get upgrade and after restart my system discovered second disk (now it is "sda", and main boot device became "sdb"):



andrey@andrey-System-Product-Name:~$ sudo fdisk -l
[sudo] password for andrey:

Диск /dev/sda: 80.1 Гб, 80059342336 байт
255 головок, 63 секторов/треков, 9733 цилиндров, всего 156365903 секторов
Units = секторы of 1 * 512 = 512 bytes
Размер сектора (логического/физического): 512 байт / 512 байт
I/O size (minimum/optimal): 512 bytes / 512 bytes
Идентификатор диска: 0x6861f5c5

Valid partition table is missing on /dev/sda

Диск /dev/sdb: 320.1 Гб, 320072933376 байт
255 головок, 63 секторов/треков, 38913 цилиндров, всего 625142448 секторов
Units = секторы of 1 * 512 = 512 bytes
Размер сектора (логического/физического): 512 байт / 512 байт
I/O size (minimum/optimal): 512 bytes / 512 bytes
Идентификатор диска: 0x0009afc4

Устр-во Загр Начало Конец Блоки Id Система
/dev/sdb1 * 2048 623063039 311530496 83 Linux
/dev/sdb2 623065086 625141759 1038337 5 Расширенный
/dev/sdb5 623065088 625141759 1038336 82 Linux своп / Solaris
But the problem now is: "Valid partition table is missing on /dev/sda"...
Can I recover partition table?

rodnower
October 26th, 2012, 08:47 PM
Are you familiar with dmesg? Does it output anything unusual about the boot up of your drives?

Edit: If you're not familiar try submitting the output of
dmesg | grep ata

Thanx for replay :)
After upgrade of the system my disk discovered, now I have problem with it's partition table.

oldfred
October 26th, 2012, 08:49 PM
If it had partition table before try testdisk.

https://help.ubuntu.com/community/DataRecovery
http://www.cgsecurity.org/wiki/TestDisk
repairs including testdisk info & links
http://members.iinet.net.au/~herman546/p21.html
https://help.ubuntu.com/community/DataRecovery#Lost%20Partition

Instructions
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
http://www.cgsecurity.org/wiki/Menu_Analyse
http://www.cgsecurity.org/wiki/TestDisk:_undelete_file_for_NTFS

rodnower
October 26th, 2012, 09:04 PM
Thanx!
I will try tomorrow :)

escentrix
October 26th, 2012, 09:06 PM
You're welcome from before, glad it wasn't anything at boot honestly! oldfred is right, testdisk may be your best option. Do you know what the disk had on it before? We may be able to help more based on what type of partitions it had and how it was structured.

rodnower
October 27th, 2012, 10:27 PM
You're welcome from before, glad it wasn't anything at boot honestly! oldfred is right, testdisk may be your best option. Do you know what the disk had on it before? We may be able to help more based on what type of partitions it had and how it was structured.

Sure. It was formated for NTFS and kept ordinal windows files. It was non bootable devide and its letter was D.

I get MBR with dd and print it with hexdump.
Last records of MBR

000001b0 65 6d 00 40 00 63 7b da c5 f5 61 68 00 40 00 40 |em.@.c{...ah.@.@|
000001c0 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 |.@.@.@.@.@.@.@.@|
*
000001f0 00 40 00 40 00 40 00 40 00 40 00 40 00 40 55 ea |.@.@.@.@.@.@.@U.|
00000200

Seems that partition table didn't existed here... But it used as partitioned disk...
I will try use testdisk.

rodnower
October 28th, 2012, 11:18 AM
OK, so this is final output of testdisk...

TestDisk 6.13, Data Recovery Utility, November 2011
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sda - 80 GB / 74 GiB - CHS 9733 255 63

Current partition structure:
Partition Start End Size in sectors


Partition sector doesn't have the endmark 0xAA55

rodnower
October 28th, 2012, 12:28 PM
Wonderfull!
I just didn't mentioned "Quick search" in bottom of screen.
I succeed to recover MBR.

Thank you all!