From: "Alexey I. Froloff" <raorn@immo.ru> To: Mailing list for ALT Linux users <community@lists.altlinux.org> Subject: [Comm] [SUCCESS] Переезд на новый хард Date: Fri, 4 Nov 2005 13:03:30 +0300 Message-ID: <20051104100330.GA6568@hell.immo.ru> (raw) [-- Attachment #1: Type: text/plain, Size: 1851 bytes --] Не далее как вчера переехал своим апгрейженым Spring2001 на новый SATA диск, надеюсь кому-ньдь пригодится это pico-HOWTO ;-) Мать P4C800, 2 2-х канальных IDE, 2 канала SATA. Пока SATA устройства не подключены, сам SATA контроллер не виден. Подключаю диск, загружаюсь, ata-piix и libata загружены хотплюгом. # mkinitrd --help и запускаем предлагаемую им в Example строку (предварительно подвинув старый initrd). В initrd добавись scsi_mod, sd_mod, libata и ata_piix. При желании процедура повторяется для всех установленных ядер. # lilo Дальше разбиваем новый /dev/sda как хочется и форматируем: # for i in 1 5 7 8 9; \ do mke2fs -v -j /dev/sda$i; \ tune2fs -c0 -i0 -m0 /dev/sda$i; \ done Где 1 5 7 8 9 - номера разделов, в моём случае /boot, /, /usr, /var и /home # mkswap /dev/sda6 Дальше идём в runlevel 1 (single user), с udev в этом случае проблем нет, потому как на RL 1 он остановлен. Новые разделы монтируем в недра /mnt, создавая по необходимости недостающие /mnt/{boot,home,usr,var} и переносим систему: # find / /boot /home /usr /var -xdev -print0 | cpio -p0dmv /mnt Аргументами у find являются точки монтирования на старом диске. За описанием аргументов cpio обращайтесь к info cpio ;-) # subst 's,hda,sda,' /mnt/etc/{fstab,lilo.conf} Я на самом деле открыл эти файлы vim'ом и сделал :%s/hda/sda/gc ;-) !!! В /mnt/etc/lilo.conf добавляем: disk=/dev/sda bios=0x80 disk=/dev/hda bios=0x81 # chroot /mnt # lilo # logout # sync # umount -a # reboot Далее заходим в BIOS, говорим что "первый" диск у нас SATA, проверяем что загрузка будет именно с него и выходим. У меня почти заработало с первого раза, я только забыл в lilo.conf диски отмапить (но в этом случае я смог загрузиться с hda с root=/dev/sda5). -- Regards, Sir Raorn. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --]
reply other threads:[~2005-11-04 10:03 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20051104100330.GA6568@hell.immo.ru \ --to=raorn@immo.ru \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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