X
X
xaimix2013-11-26 01:36:37
ubuntu
xaimix, 2013-11-26 01:36:37

How to mount dynamic EXT4 disk in Ubuntu?

There are 3 hard drives on the server - 2 in a
soft mirror with Ubuntu Server 11.04 ext4 (sda and sdb)
-1 with Windows 7 ntfs (sdc)
it had up-to-date information). After a while, the server stopped booting into Ubuntu at all. I booted into Windows 7 in order to use a program (Ext2Fsd or Ext2Explore) to access the file system of the actual hard disk with Ubuntu OS and copy important actual files.
But I couldn’t access the file system and I didn’t find anything smarter than how to convert 1 of the mirror hard drives (the one with the current Ubuntu) to dynamic in the Disk Management panel in Win7 (hoped that maybe after this railway will be defined in Ext2Fsd or Ext2Explore) but this was not successful.
Not having access to the necessary information from under Windows, after dancing with a tambourine, I booted from a hard drive with an outdated Ubuntu and tried to mount a now dynamic partition with up-to-date information. Nothing came out

[email protected]:/# mount /dev/sdb3 /mnt/
mount: неизвестный тип файловой системы 'linux_raid_member'

You need to somehow access the dynamic partition in order to copy the files.
Is it possible in Ubuntu to mount a dynamic hard disk that was in an Ext4 system before the conversion? Whether the partition's file system has changed since it was converted (in Win7) to dynamic (/dev/sdb2 SFS).
Ubuntu does not know such (SFS):
[email protected]:/# mount /dev/sdb2 -t sfs /mnt/
mount: неизвестный тип файловой системы 'sfs'

fdisk -l, uname, mount:
Софтовый рейд создавал при установке Ubuntы, 
Жесткие диски в зеркали были разбиты таким образом
раздел 1 20гб   root           -  в зеркале md0
разел 2 swap
раздел 3 480Гб /home        -  в зеркале md1

[email protected]:/home/sysadm# fdisk -l

Диск /dev/sda: 500.1 ГБ, 500107862016 байт
255 heads, 63 sectors/track, 60801 cylinders
Units = цилиндры of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00047c07

Устр-во Загр     Начало       Конец       Блоки   Id  Система
/dev/sda1               1        2432    19530752   fd  Автоопределение Linux raid
/dev/sda2            2432       60802   468852737    5  Расширенный
/dev/sda5            2432        3405     7811072   82  Linux своп / Solaris
/dev/sda6            3405       60802   461040640   fd  Автоопределение Linux raid

Диск /dev/sdb: 500.1 ГБ, 500107862016 байт
255 heads, 63 sectors/track, 60801 cylinders
Units = цилиндры of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004d2f4

Устр-во Загр     Начало       Конец       Блоки   Id  Система
/dev/sdb1               1           1         992+  42  SFS
Раздел 1 не заканчивается на границе цилиндра.
/dev/sdb2   *           1        2432    19530752   42  SFS
/dev/sdb3            2432       60802   468853784   42  SFS

Диск /dev/sdc: 500.1 ГБ, 500107862016 байт
255 heads, 63 sectors/track, 60801 cylinders
Units = цилиндры of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1d1abe00

Устр-во Загр     Начало       Конец       Блоки   Id  Система
/dev/sdc1   *           1          13      102400    7  HPFS/NTFS
Раздел 1 не заканчивается на границе цилиндра.
/dev/sdc2              13       12749   102296576    7  HPFS/NTFS
/dev/sdc3           12749       60802   385985536    7  HPFS/NTFS

Диск /dev/md0: 20.0 ГБ, 19998367744 байт
2 heads, 4 sectors/track, 4882414 cylinders
Units = цилиндры of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

На диске /dev/md0 отсутствует верная таблица разделов

Диск /dev/md1: 472.1 ГБ, 472104427520 байт
2 heads, 4 sectors/track, 115259870 cylinders
Units = цилиндры of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

На диске /dev/md1 отсутствует верная таблица разделов

Диск /dev/sdd: 4003 МБ, 4003463168 байт
84 heads, 20 sectors/track, 4654 cylinders
Units = цилиндры of 1680 * 512 = 860160 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18

Устр-во Загр     Начало       Конец       Блоки   Id  Система
/dev/sdd1   *           5        4655     3905600    c  W95 FAT32 (LBA)


[email protected]:/# uname -a
Linux yarosl 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux


[email protected]:/# mount /dev/sdb1 /mnt/
mount: неизвестный тип файловой системы 'linux_raid_member'

[email protected]:/# mount /dev/sdb3 /mnt/
mount: неизвестный тип файловой системы 'linux_raid_member'

[email protected]:/# mount /dev/sdb3 -t ext4 /mnt/
mount: /dev/sdb3 уже примонтирован или /mnt/ занят

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alukardd, 2013-11-26
@Alukardd

Well, actually, most likely Windows still didn’t do anything with the data, you just need to mount the old partitions. For which there are 2 ways: 1 - re-create the raid1 device by including only the disk necessary for recovery, and mark the second as missing immediately upon creation and then mount the md device as usual, 2 - find ext4 FS on the md partition, for example, as described here in this answer .
You can also try to just fdisk and change the partition labels back to 0xfd.
You can also play around with mdadm --examine --scan, but it's better not to do this, given that one disk has old data, and the other has changed partition labels.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question