ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Переезд hda -> sda
@ 2004-11-03  8:04 Eugene Prokopiev
  2004-11-03 10:25 ` Sergey Vlasov
  0 siblings, 1 reply; 5+ messages in thread
From: Eugene Prokopiev @ 2004-11-03  8:04 UTC (permalink / raw)
  To: Community

Здравствуйте!

На hda стояла система (ALM2.2). С ней сделали следующее:

Загрузились с компакт-диска ALC 2.3
Выполнили:
cd /mnt
find ./ | cpio -o | gzip -9 -c > /data/system.cpio.gz

Файл system.cpio.gz утянули на другую машину, на которой диск разметили так:

fdisk -l /dev/sda

Disk /dev/sda: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          12       96358+  83  Linux
/dev/sda2              13         273     2096482+   5  Extended
/dev/sda5              13          48      289138+  83  Linux
/dev/sda6              49          78      240943+  83  Linux
/dev/sda7              79         139      489951   83  Linux
/dev/sda8             140         151       96358+  83  Linux
/dev/sda9             152         273      979933+  83  Linux

Т.е. аналогично первой машине с заменой h на s

И примонтировав указанные разделы, выполнили:

cat /data/system.cpio.gz | gzip -d -c | cpio -i --make-directories
chroot /mnt /bin/bash
mkinitrd /boot/initrd-2.4.20-alt5-up.img 2.4.20-alt5-up
grub-install /dev/sda

В ответ на последнюю команду получили:

/dev/sda does not have any corresponding BIOS drive.

При этом:

# cat /boot/grub/menu.lst
timeout 5
color blue/black cyan/blue
default 0
title linux-up
kernel (hd0,0)/boot/vmlinuz-up root=/dev/sda1
initrd (hd0,0)/boot/initrd-up.img
title failsafe
kernel (hd0,0)/boot/vmlinuz-up root=/dev/sda1  failsafe
initrd (hd0,0)/boot/initrd-up.img
title floppy
root (fd0)
chainloader +1

# cat /etc/fstab
/dev/sda1 / ext3 defaults 1 1
devpts /dev/pts devpts gid=5,mode=0620 0 0
/dev/sda8 /home ext3 defaults 1 2
/dev/cdrom /mnt/cdrom auto user,iocharset=koi8-r,exec,ro,noauto 0 0
/dev/floppy /mnt/floppy auto 
user,iocharset=koi8-r,umask=0,sync,quiet,exec,codepage=866,noauto 0 0
proc /proc proc gid=19 0 0
/dev/sda6 /usr ext3 defaults 1 2
/dev/sda7 /var ext3 defaults 1 2
/dev/sda5 swap swap defaults 0 0

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1              92M   68M   20M  78% /
proc                   92M   68M   20M  78% /proc
proc                   92M   68M   20M  78% /proc
/dev/sda6             228M  150M   67M  70% /usr

Результаты df -h особенно удивили, хотя может так и надо?

Где я ошибся?

-- 
С уважением, Прокопьев Евгений


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-11-03 12:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-03  8:04 [Comm] Переезд hda -> sda Eugene Prokopiev
2004-11-03 10:25 ` Sergey Vlasov
2004-11-03 11:21   ` Eugene Prokopiev
2004-11-03 12:01     ` Artem Pastukhov
2004-11-03 12:14       ` Eugene Prokopiev

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git