Страница 2 из 2

Re: Как заBOOTиться с диска?

СообщениеДобавлено: 21 янв 2009, 12:51
Андрей
я так понял, что сам процесс установки хочет сделать мне /dist на моем CD-R. Но как уйти сейчас от CD-R и установить на HDD я понять не могу.
mount - только показывает мне что и куда смонтировано, но не может монтировать разделы.

Re: Как заBOOTиться с диска?

СообщениеДобавлено: 21 янв 2009, 13:04
root
расскажи подроно, по шагам, КАК и ЧТО ты делаешь, криншоты приветствуются

Re: Как заBOOTиться с диска?

СообщениеДобавлено: 21 янв 2009, 13:36
Андрей
вставляю диск с FreeBSD 7.0 для Sparc64 в привод, запускаю машину, затем в консоли появляется такое сообщение:

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel] in 10 seconds...

Нажимаю эту any other key и в начале строки появляется приглашение OK.

Затем пишу параметр set boot_cdrom и гружусь [b]boot[/b]
OK set boot_cdrom
OK boot


затем мне в консоль выводится следующее:

nothing to autoload yet.
jumping to kernel entry at 0xc0060000.
Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE #0: Fri Jan 12 23:30:59 UTC 2007
root@s-dallas.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "tick" frequency 548000000 Hz quality 1000
real memory = 1073741824 (1024 MB)
avail memory = 995590144 (949 MB)
cpu0: Sun Microsystems UltraSparc-IIe Processor (548.00 MHz CPU)
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413, REGOPS_FUNC)
nexus0: <Open Firmware Nexus device>
pcib0: <U2P UPA-PCI bridge> on nexus0
pcib0: Sabre, impl 0, version 0, ign 0x7c0, bus A
pcib0: [FAST]
pcib0: [FAST]
pcib0: [GIANT-LOCKED]
pcib0: [GIANT-LOCKED]
pcib0 dvma: DVMA map: 0x60000000 to 0x63ffffff
pci0: <OFW PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
pci0: <old, non-VGA display device> at device 3.0 (no driver attached)
pci0: <old, non-VGA display device> at device 3.0 (no driver attached)
dc0: <Davicom DM9102A 10/100BaseTX> port 0x10000-0x100ff at device 12.0 on pci0
miibus0: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc0: Ethernet address: 00:03:ba:4e:61:54
dc1: <Davicom DM9102A 10/100BaseTX> port 0x10100-0x101ff mem 0x2000-0x20ff at device 5.0 on pci0
miibus1: <MII bus> on dc1
ukphy1: <Generic IEEE 802.3u media interface> on miibus1
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc1: Ethernet address: 00:03:ba:4e:61:54
stray vector interrupt 2014
ohci0: <AcerLabs M5237 (Aladdin-V) USB controller> mem 0x1000000-0x1000fff at device 10.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
atapci0: <AcerLabs M5229 UDMA66 controller> port 0x10200-0x10207,0x10218-0x1021b,0x10210-0x10217,0x10208-0x1020b,0x10220-0x1022f at device 13.0 on pci0
atapci0: using PIO transfers above 137GB as workaround for 48bit DMA access bug, expect reduced performance
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
nexus0: <syscons>, type (unknown) (no driver attached)
rtc0: <Real Time Clock> at port 0x70-0x71 on isa0
uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 43 on isa0
uart0: console (9600,n,8,1)
uart1: <16550 or compatible> at port 0x2e8-0x2ef irq 43 on isa0
Timecounters tick every 1.000 msec
ad0: 38166MB <Seagate ST340014A 3.04> at ata3-master UDMA66
acd0: CDR <CD-224E/K.0B> at ata3-slave PIO4
Trying to mount root from cd9660:cd0
Trying to mount root from cd9660:acd0
Loading configuration files.
eval: cannot open /etc/fstab: No such file or directory
Entropy harvesting: interrupts ethernet point_to_point kickstart.
eval: cannot open /etc/fstab: No such file or directory
eval: cannot open /etc/fstab: No such file or directory
fstab: /etc/fstab:0: No such file or directory
Warning! No /etc/fstab: skipping disk checks.
fstab: /etc/fstab:0: No such file or directory
mount_cd9660: acd0: No such file or directory
eval: cannot create /etc/hostid: Read-only file system
/etc/rc: WARNING: could not store hostuuid in /etc/hostid.
Setting hostuuid: 8154cb12-e7ce-11dd-9d23-0003ba4e6154.
sysctl: unknown oid 'kern.hostuuid'
Setting hostid: 0xe761944e.
Mounting local file systems:fstab: /etc/fstab:0: No such file or directory
.
/etc/rc: WARNING: $hostname is not set -- see rc.conf(5).
net.inet6.ip6.auto_linklocal: 1 -> 0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
Additional routing options:.
Starting devd.
dc0: link state changed to UP
dc1: link state changed to DOWN
Generating host.conf.
eval: cannot create /etc/host.conf: Read-only file system
eval: cannot create /etc/host.conf: Read-only file system
eval: cannot create /etc/host.conf: Read-only file system
Additional IP options:.
Mounting NFS file systems:fstab: /etc/fstab:0: No such file or directory
.
fstab: /etc/fstab:0: No such file or directory
fstab: /etc/fstab:0: No such file or directory
fstab: /etc/fstab:0: No such file or directory
fstab: /etc/fstab:0: No such file or directory
Creating and/or trimming log files:.
Starting syslogd.
/etc/rc: WARNING: Dump device does not exist. Savecore not run.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Initial sparc64 initialization:.
Additional ABI support:.
Clearing /tmp (X related).
Starting local daemons:.
Updating motd ... /etc/motd is not writable, update failed.
Mounting late file systems:fstab: /etc/fstab:0: No such file or directory
.
Starting cron.
Local package initialization:.
eval: cannot open /etc/fstab: No such file or directory
Starting background file system checks in 60 seconds.

Wed Jan 21 15:17:06 UTC 2009

FreeBSD/sparc64 (Amnesiac) (ttyu0)

login: Jan 21 15:17:08 getty[709]: open /dev/ttyv3: No such file or directory
Jan 21 15:17:08 getty[716]: open /dev/ttyu2: No such file or directory
Jan 21 15:17:08 getty[706]: open /dev/ttyv0: No such file or directory
Jan 21 15:17:08 getty[710]: open /dev/ttyv4: No such file or directory
Jan 21 15:17:08 getty[707]: open /dev/ttyv1: No such file or directory
Jan 21 15:17:08 getty[711]: open /dev/ttyv5: No such file or directory
Jan 21 15:17:08 getty[708]: open /dev/ttyv2: No such file or directory
Jan 21 15:17:08 getty[713]: open /dev/ttyv7: No such file or directory
Jan 21 15:17:08 getty[712]: open /dev/ttyv6: No such file or directory

FreeBSD/sparc64 (Amnesiac) (ttyu0)

login:


захожу под рутом без пароля (!):
ogin: root
Jan 21 15:18:13 login: ROOT LOGIN (root) ON ttyu0
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.

FreeBSD ?.?.? (UNKNOWN)

Welcome to FreeBSD!

Before seeking technical support, please use the following resources:

o Security advisories and updated errata information for all releases are
at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
for your release first as it's updated frequently.

o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
along with the mailing lists, can be searched by going to
http://www.FreeBSD.org/search/. If the doc distribution has
been installed, they're also available formatted in /usr/share/doc.

If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list. If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page. If you are not familiar with manual pages, type `man man'.

You may also use sysinstall(8) to re-enter the installation and
configuration utility. Edit /etc/motd to change this login announcement.


как видно из все сказанного системой что версия ?.? и теперь смотрим а что же у нас есть:
# mount
acd0 on / (cd9660, local, read-only)
devfs on /dev (devfs, local)
/dev/md0 on /var (ufs, local)
/dev/md1 on /tmp (ufs, local)


Затем наивно пытаюсь выполнить sysinstall, который в данном случае проходит без слайса (сразу делим диск на разделы) (ниже я привожу скрины):
Код: Выделить всё
    +--------- FreeBSD/sparc64 6.2-RELEASE - sysinstall Main Menu ----------+
   | Welcome to the FreeBSD installation and configuration tool.  Please   |
   | select one of the options below by using the arrow keys or typing the |
   | first character of the option name you're interested in.  Invoke an   |
   | option with [SPACE] or [ENTER].  To exit, use [TAB] to move to Exit.  |
   | +-------------------------------------------------------------------+ |
   | |    Usage       Quick start - How to use this menu system          | |
   | |   Standard     Begin a standard installation (recommended)        | |
   | |   Express      Begin a quick installation (for experts)           | |
   | |    Custom      Begin a custom installation (for experts)          | |
   | |   Configure    Do post-install configuration of FreeBSD           | |
   | |   Doc          Installation instructions, README, etc.            | |
   | |   Options      View/Set various installation options              | |
   | |   Fixit        Repair mode with CDROM/DVD/floppy or start shell   | |
   | |   Upgrade      Upgrade an existing system                         | |
   | |   Load Config  Load default install configuration                 | |
   | |   Index        Glossary of functions                              | |
   | +-------------------------------------------------------------------+ |
   +-----------------------------------------------------------------------+
   |                        [ Select ]    X Exit Install                   |
   +-----------------------------------------------------------------------+

Естественно выбираю Standart, затем
Код: Выделить всё
+---------------------------------- Message -----------------------------------+
|First you need to create BSD partitions on the disk which you are             |
|installing to.  If you have a reasonable amount of disk space (1GB or more)   |
|and don't have any special requirements, simply use the (A)uto command to     |
|allocate space automatically.  If you have more specific needs or just don't  |
|care for the layout chosen by (A)uto, press F1 for more information on        |
|manual layout.                                                                |
+----------------------------------------------------------------------(100%)--+
|                                 [  OK  ]                                     |
+---------------------------[ Press enter or space ]---------------------------+

и сразу же появляется:
Код: Выделить всё
                         FreeBSD Disklabel Editor

Disk: ad0       Partition name: ad0     Free: 0 blocks (0MB)

Part      Mount          Size Newfs   Part      Mount          Size Newfs
----      -----          ---- -----   ----      -----          ---- -----
ad0a      <none>        513MB *
ad0b      <none>       2022MB *
ad0d      <none>       2034MB *
ad0e      <none>        513MB *
ad0f      <none>       3219MB *
ad0h      <none>      29858MB *





The following commands are valid here (upper or lower case):
C = Create        D = Delete   M = Mount pt.            W = Write
N = Newfs Opts    Q = Finish   S = Toggle SoftUpdates   Z = Custom Newfs
T = Toggle Newfs  U = Undo     A = Auto Defaults        R = Delete+Merge

Use F1 or ? to get more help, arrow keys to select.

переназначать разделы пробовал по-разному, да и не суть важно это. Создаю 2 раздела - / и своп:
Код: Выделить всё
                         FreeBSD Disklabel Editor

Disk: ad0       Partition name: ad0     Free: 0 blocks (0MB)

Part      Mount          Size Newfs   Part      Mount          Size Newfs
----      -----          ---- -----   ----      -----          ---- -----
ad0a      /           36865MB UFS2   Y
ad0b      swap         1296MB SWAP   









The following commands are valid here (upper or lower case):
C = Create        D = Delete   M = Mount pt.            W = Write
N = Newfs Opts    Q = Finish   S = Toggle SoftUpdates   Z = Custom Newfs
T = Toggle Newfs  U = Undo     A = Auto Defaults        R = Delete+Merge

Use F1 or ? to get more help, arrow keys to select.



жму q и далее:

Код: Выделить всё
+---------------------------- Choose Distributions ----------------------------+
| As a convenience, we provide several "canned" distribution sets.             |
| These select what we consider to be the most reasonable defaults for the     |
| type of system in question.  If you would prefer to pick and choose the      |
| list of distributions yourself, simply select "Custom".  You can also        |
| pick a canned distribution set and then fine-tune it with the Custom item.   |
|                                                                              |
| Choose an item by pressing [SPACE] or [ENTER].  When finished, choose the    |
| Exit item or move to the OK button with [TAB].                               |
| +--------------------------------------------------------------------------+ |
| | <<< X Exit              Exit this menu (returning to previous)           | |
| |     All                 All system sources, binaries and X Window System | |
| |     Reset               Reset selected distribution list to nothing      | |
| | [ ] 4 Developer         Full sources, binaries and doc but no games      | |
| | [ ] 5 X-Developer       Same as above + X Window System                  | |
| | [ ] 6 Kern-Developer    Full binaries and doc, kernel sources only       | |
| | [ ] 7 X-Kern-Developer  Same as above + X Window System                  | |
| | [ ] 8 User              Average user - binaries and doc only             | |
| +-----v(+)-----------------------------------------------------------------+ |
+------------------------------------------------------------------------------+
|                            [  OK  ]       Cancel                             |
+-------------[ Press F1 for more information on these options. ]--------------+


выбираю Exit нажатием Enter и новое окно:

Код: Выделить всё
  +----------------------- Choose Installation Media -----------------------+
  | FreeBSD can be installed from a variety of different installation       |
  | media, ranging from floppies to an Internet FTP server.  If you're      |
  | installing FreeBSD from a supported CD/DVD drive then this is generally |
  | the best media to use if you have no overriding reason for using other  |
  | media.                                                                  |
  | +---------------------------------------------------------------------+ |
  | |   1 CD/DVD       Install from a FreeBSD CD/DVD                      | |
  | |   2 FTP          Install from an FTP server                         | |
  | |   3 FTP Passive  Install from an FTP server through a firewall      | |
  | |   4 HTTP         Install from an FTP server through a http proxy    | |
  | |   5 DOS          Install from a DOS partition                       | |
  | |   6 NFS          Install over NFS                                   | |
  | |   7 File System  Install from an existing filesystem                | |
  | |   8 Floppy       Install from a floppy disk set                     | |
  | |   9 Tape         Install from SCSI or QIC tape                      | |
  | |   X Options      Go to the Options screen                           | |
  | +---------------------------------------------------------------------+ |
  +-------------------------------------------------------------------------+
  |                         [  OK  ]       Cancel                           |
  +------[ Press F1 for more information on the various media types ]-------+


ясное дело выбираю установку с CD/DVD и тут получаем вот что:
Код: Выделить всё
           +----------------------- Message ------------------------+
           |Couldn't create directory /dist: Read-only file system  |
           +------------------------------------------------(100%)--+
           |                      [  OK  ]                          |
           +----------------[ Press enter or space ]----------------+
нажимаю Enter

Код: Выделить всё
           +----------------------- Message ------------------------+
           |Couldn't create directory /dist: Read-only file system  |
           +------------------------------------------------(100%)--+
           |                      [  OK  ]                          |
           +----------------[ Press enter or space ]----------------+
опять Enter
Код: Выделить всё
           +------------- User Confirmation Requested --------------+
           | Unable to initialize selected media. Would you like to |
           | adjust your media configuration and try again?         |
           +--------------------------------------------------------+
           |                  [ Yes ]         No                    |
           +--------------------------------------------------------+


ну тут думаю все понятно. при нажатии YES Он начинает выбирать откуда будем ставить ос, а при NO появляется окошко:

Код: Выделить всё
         +------------------------- Message --------------------------+
         |Installation completed with some errors.  You may wish to   |
         |scroll through the debugging messages on VTY1 with the      |
         |scroll-lock feature.  You can also choose "No" at the next  |
         |prompt and go back into the installation menus to retry     |
         |whichever operations have failed.                           |
         +----------------------------------------------------(100%)--+
         |                        [  OK  ]                            |
         +------------------[ Press enter or space ]------------------+

жму Ок и выхожу в самое начало.

Re: Как заBOOTиться с диска?

СообщениеДобавлено: 23 янв 2009, 13:41
Андрей
Вобщем проблема моя решена.
Немного терпения и шевеления мозгами приносят результат всегда.
Решение проблемы в скором времени будет опубликовано в блоге.
Всем спасибо.

Re: Как заBOOTиться с диска?

СообщениеДобавлено: 23 янв 2009, 15:51
root
Андрей писал(а):Решение проблемы в скором времени будет опубликовано в блоге.

Как установить FreeBSD на SunFire v100