I have a damaged kernel on a Solaris 10 system (can't boot). I'd like to
use FTP to get some user files from that system. I can "boot cdrom -s",
but, of course, that doesn't bring up the network. So...
I used "ifconfig" and "route" to configure the ce0 interface and a default
route. But, as I see it (and I could be wrong-- correct me, please), I
still need the inetd daemon, er, service running. I tried 'svcadm enable
inetd', but got the following error message:
svcadm: svc:/network/inetd:default: Repository read-only.
Is there some way to get network access from Solaris 10 when using 'boot
cdrom -s'?
Thank you.
DG
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"I think not," said Descartes, and disappeared.
|
|
0
|
|
|
|
Reply
|
David
|
11/2/2005 1:45:29 AM |
|
David E. Grove wrote:
> I have a damaged kernel on a Solaris 10 system (can't boot). I'd like to
> use FTP to get some user files from that system. I can "boot cdrom -s",
> but, of course, that doesn't bring up the network. So...
>
> I used "ifconfig" and "route" to configure the ce0 interface and a default
> route. But, as I see it (and I could be wrong-- correct me, please), I
> still need the inetd daemon, er, service running. I tried 'svcadm enable
> inetd', but got the following error message:
>
> svcadm: svc:/network/inetd:default: Repository read-only.
>
>
> Is there some way to get network access from Solaris 10 when using 'boot
> cdrom -s'?
No idea.
But assuming the data on the disk is on partitions you can mount, would
it not be eaier to mount them on a temporarary directory from the cdrom
(which is ram) and copy from there to tape or another disk?
ok> boot -s cdrom
# mkdir /tmp/new
# mkdir /tmp/data-is-here
then copy it with cp, tar, to tape or whatever you like.
to copy it to a new disk:
# mkdir /dev/dsk/whatevver /tmp/data-is-here
# cp -pr /tmp/data-is-here /tmp/new
|
|
1
|
|
|
|
Reply
|
Dave
|
11/2/2005 3:40:43 PM
|
|
Dave wrote:
> No idea.
>
> But assuming the data on the disk is on partitions you can mount, would
> it not be eaier to mount them on a temporarary directory from the cdrom
> (which is ram) and copy from there to tape or another disk?
>
> ok> boot -s cdrom
> # mkdir /tmp/new
> # mkdir /tmp/data-is-here
>
I forgot the mount command's
# mount /dev/dsk/file-system-with-data-on
# mount /dev/dsk/new-file-system /tmp/new
Once the data is mounted, copying is easy, with no need for any network
access.
|
|
0
|
|
|
|
Reply
|
Dave
|
11/2/2005 3:43:52 PM
|
|
Thank you for your reply, Dave.
But..... The damaged machine has no tape drive. It relies on network to
extract data from the machine.
I can mount the file system with the files, and I can copy them to another
mounted file system. I just can't "get them off the machine".
Sun tech support sent me an "unsupported recipe", that consisted only of
instructions to use ifconfig to plumb and set address for an interface, and
that was all. Of course, those instructions by themselves, although
necessary, are insufficient to get network connectivity.
"Dave" <nospam@nowhere.com> wrote in message news:4368deb9@212.67.96.135...
> Dave wrote:
>
> > No idea.
> >
> > But assuming the data on the disk is on partitions you can mount, would
> > it not be eaier to mount them on a temporarary directory from the cdrom
> > (which is ram) and copy from there to tape or another disk?
> >
> > ok> boot -s cdrom
> > # mkdir /tmp/new
> > # mkdir /tmp/data-is-here
> >
>
> I forgot the mount command's
>
>
> # mount /dev/dsk/file-system-with-data-on
> # mount /dev/dsk/new-file-system /tmp/new
>
> Once the data is mounted, copying is easy, with no need for any network
> access.
>
|
|
0
|
|
|
|
Reply
|
David
|
11/2/2005 5:27:16 PM
|
|
David E. Grove wrote:
> Thank you for your reply, Dave.
>
> But..... The damaged machine has no tape drive. It relies on network to
> extract data from the machine.
>
> I can mount the file system with the files, and I can copy them to another
> mounted file system. I just can't "get them off the machine".
>
> Sun tech support sent me an "unsupported recipe", that consisted only of
> instructions to use ifconfig to plumb and set address for an interface, and
> that was all. Of course, those instructions by themselves, although
> necessary, are insufficient to get network connectivity.
>
>
>
>
> "Dave" <nospam@nowhere.com> wrote in message news:4368deb9@212.67.96.135...
>
>>Dave wrote:
>>
>>
>>>No idea.
>>>
>>>But assuming the data on the disk is on partitions you can mount, would
>>>it not be eaier to mount them on a temporarary directory from the cdrom
>>>(which is ram) and copy from there to tape or another disk?
>>>
>>>ok> boot -s cdrom
>>># mkdir /tmp/new
>>># mkdir /tmp/data-is-here
>>>
>>
>>I forgot the mount command's
>>
>>
>># mount /dev/dsk/file-system-with-data-on
>># mount /dev/dsk/new-file-system /tmp/new
>>
>>Once the data is mounted, copying is easy, with no need for any network
>>access.
>>
>
>
>
inetd is very useful, but isn't it just in the nature of a "traffic
cop?"
I mean, if you wanted to use, e.g., ftp, couldn't you start the ftp
daemon directly rather than have inetd load it? Of course, doing so
could have its own issues.
Just thinking "aloud" ...
--
The e-mail address in our reply-to line is reversed in an attempt to
minimize spam. Our true address is of the form che...@prodigy.net.
|
|
0
|
|
|
|
Reply
|
CJT
|
11/2/2005 10:04:05 PM
|
|
"CJT" <abujlehc@prodigy.net> wrote in message
news:436937D5.5020701@prodigy.net...
> David E. Grove wrote:
>
> > Thank you for your reply, Dave.
> >
> > But..... The damaged machine has no tape drive. It relies on network to
> > extract data from the machine.
> >
> > I can mount the file system with the files, and I can copy them to
another
> > mounted file system. I just can't "get them off the machine".
> >
> > Sun tech support sent me an "unsupported recipe", that consisted only of
> > instructions to use ifconfig to plumb and set address for an interface,
and
> > that was all. Of course, those instructions by themselves, although
> > necessary, are insufficient to get network connectivity.
> >
> >
> >
> >
> > "Dave" <nospam@nowhere.com> wrote in message
news:4368deb9@212.67.96.135...
> >
> >>Dave wrote:
> >>
> >>
> >>>No idea.
> >>>
> >>>But assuming the data on the disk is on partitions you can mount, would
> >>>it not be eaier to mount them on a temporarary directory from the cdrom
> >>>(which is ram) and copy from there to tape or another disk?
> >>>
> >>>ok> boot -s cdrom
> >>># mkdir /tmp/new
> >>># mkdir /tmp/data-is-here
> >>>
> >>
> >>I forgot the mount command's
> >>
> >>
> >># mount /dev/dsk/file-system-with-data-on
> >># mount /dev/dsk/new-file-system /tmp/new
> >>
> >>Once the data is mounted, copying is easy, with no need for any network
> >>access.
> >>
> >
> >
> >
> inetd is very useful, but isn't it just in the nature of a "traffic
> cop?"
>
> I mean, if you wanted to use, e.g., ftp, couldn't you start the ftp
> daemon directly rather than have inetd load it? Of course, doing so
> could have its own issues.
>
> Just thinking "aloud" ...
>
> --
> The e-mail address in our reply-to line is reversed in an attempt to
> minimize spam. Our true address is of the form che...@prodigy.net.
I did a 'svcs -a | grep ftp' (on the damaged machine that's currently booted
from cdrom) and didn't get any response, not even a "disabled" response. I
do get a "disabled" response from 'svcs -a|grep inetd'. Figured maybe inetd
would start ftp as needed, so I tried to start inetd. As I described
initially, no go.
Is there any way to get network access from a 'boot cdrom -s' ?
Thank you.
DG
|
|
0
|
|
|
|
Reply
|
David
|
11/2/2005 10:48:05 PM
|
|
David E. Grove wrote:
> "CJT" <abujlehc@prodigy.net> wrote in message
> news:436937D5.5020701@prodigy.net...
>
>>David E. Grove wrote:
>>
>>
>>>Thank you for your reply, Dave.
>>>
>>>But..... The damaged machine has no tape drive. It relies on network to
>>>extract data from the machine.
>>>
>>>I can mount the file system with the files, and I can copy them to
>
> another
>
>>>mounted file system. I just can't "get them off the machine".
>>>
>>>Sun tech support sent me an "unsupported recipe", that consisted only of
>>>instructions to use ifconfig to plumb and set address for an interface,
>
> and
>
>>>that was all. Of course, those instructions by themselves, although
>>>necessary, are insufficient to get network connectivity.
>>>
>>>
>>>
>>>
>>>"Dave" <nospam@nowhere.com> wrote in message
>
> news:4368deb9@212.67.96.135...
>
>>>>Dave wrote:
>>>>
>>>>
>>>>
>>>>>No idea.
>>>>>
>>>>>But assuming the data on the disk is on partitions you can mount, would
>>>>>it not be eaier to mount them on a temporarary directory from the cdrom
>>>>>(which is ram) and copy from there to tape or another disk?
>>>>>
>>>>>ok> boot -s cdrom
>>>>># mkdir /tmp/new
>>>>># mkdir /tmp/data-is-here
>>>>>
>>>>
>>>>I forgot the mount command's
>>>>
>>>>
>>>># mount /dev/dsk/file-system-with-data-on
>>>># mount /dev/dsk/new-file-system /tmp/new
>>>>
>>>>Once the data is mounted, copying is easy, with no need for any network
>>>>access.
>>>>
>>>
>>>
>>>
>>inetd is very useful, but isn't it just in the nature of a "traffic
>>cop?"
>>
>>I mean, if you wanted to use, e.g., ftp, couldn't you start the ftp
>>daemon directly rather than have inetd load it? Of course, doing so
>>could have its own issues.
>>
>>Just thinking "aloud" ...
>>
>>--
>>The e-mail address in our reply-to line is reversed in an attempt to
>>minimize spam. Our true address is of the form che...@prodigy.net.
>
>
>
>
>
> I did a 'svcs -a | grep ftp' (on the damaged machine that's currently booted
> from cdrom) and didn't get any response, not even a "disabled" response. I
> do get a "disabled" response from 'svcs -a|grep inetd'. Figured maybe inetd
> would start ftp as needed, so I tried to start inetd. As I described
> initially, no go.
>
> Is there any way to get network access from a 'boot cdrom -s' ?
>
> Thank you.
>
> DG
>
>
Did you try to start in.ftpd directly, as I suggested?
--
The e-mail address in our reply-to line is reversed in an attempt to
minimize spam. Our true address is of the form che...@prodigy.net.
|
|
0
|
|
|
|
Reply
|
CJT
|
11/3/2005 1:22:11 AM
|
|
David E. Grove wrote:
> Thank you for your reply, Dave.
>
> But..... The damaged machine has no tape drive. It relies on network to
> extract data from the machine.
>
> I can mount the file system with the files, and I can copy them to another
> mounted file system. I just can't "get them off the machine".
You seem to know what you are doing, so I don;t wish to teach my
grandmother to suck eggs (as we say in England).
But since you can copy the files to a mounted file system, can't you
then remove the good disk and transport that disk to another machine?
Once you move it to the other machine, you can boot that machine in
multi-user mode, mount the disk you just moved on /tmp and the job and
then you have the files on a networked machine.
I must be missing something somewhere!
> Sun tech support sent me an "unsupported recipe", that consisted only of
> instructions to use ifconfig to plumb and set address for an interface, and
> that was all. Of course, those instructions by themselves, although
> necessary, are insufficient to get network connectivity.
>
>
>
>
> "Dave" <nospam@nowhere.com> wrote in message news:4368deb9@212.67.96.135...
>
>>Dave wrote:
>>
>>
>>>No idea.
>>>
>>>But assuming the data on the disk is on partitions you can mount, would
>>>it not be eaier to mount them on a temporarary directory from the cdrom
>>>(which is ram) and copy from there to tape or another disk?
>>>
>>>ok> boot -s cdrom
>>># mkdir /tmp/new
>>># mkdir /tmp/data-is-here
>>>
>>
>>I forgot the mount command's
>>
>>
>># mount /dev/dsk/file-system-with-data-on
>># mount /dev/dsk/new-file-system /tmp/new
>>
>>Once the data is mounted, copying is easy, with no need for any network
>>access.
>>
>
>
>
|
|
0
|
|
|
|
Reply
|
Dave
|
11/3/2005 1:37:02 AM
|
|
>But since you can copy the files to a mounted file system, can't you
>then remove the good disk and transport that disk to another machine?
>Once you move it to the other machine, you can boot that machine in
>multi-user mode, mount the disk you just moved on /tmp and the job and
>then you have the files on a networked machine.
Well, the internal drives are FC-AL. Thus, moving those drives around
involves the "landmines" associated with (maybe it's just my association)
the WWNs that are part and parcel of FC-AL drives. Guess I can actually do
a little work and go refresh my memory on 'luxadm' and moving FC-AL drives.
The external drive is a large, heavy, multi-Terabyte RAID enclosure that
lives in a nice rack-mounted house.
But, your idea might be the only way. Between the two (FC-AL internal
drives, or big RAID external SCSI drive), I can probably physically
transport storage media and get the job done.
Because I'm lazy, I was hoping to find a way to get a network connection.
How would the folks with NAS do it, I wonder.
Thank you.
DG
|
|
0
|
|
|
|
Reply
|
David
|
11/3/2005 2:37:24 AM
|
|
> >
> Did you try to start in.ftpd directly, as I suggested?
>
I didn't, yet. I mean no disrespect, but, since 'ping' doesn't work after I
used 'ifconfig' to plumb and set address, and then set "hosts", etc., and
then used 'route' to set a default gateway, it seemed to me like ftp
couldn't be expected to work.
Come to think of it, since ping doesn't work, I'm not even sure why I was so
eager to get inetd working.
Is it really the case that no one does any networking when booted from
cdrom? It's beginning to look like it to me.
Thank you for taking the time to comment.
Regards,
DG
|
|
0
|
|
|
|
Reply
|
David
|
11/3/2005 3:01:48 AM
|
|
David E. Grove wrote:
>>Did you try to start in.ftpd directly, as I suggested?
>>
>
>
> I didn't, yet. I mean no disrespect, but, since 'ping' doesn't work after I
> used 'ifconfig' to plumb and set address, and then set "hosts", etc., and
> then used 'route' to set a default gateway, it seemed to me like ftp
> couldn't be expected to work.
>
> Come to think of it, since ping doesn't work, I'm not even sure why I was so
> eager to get inetd working.
>
> Is it really the case that no one does any networking when booted from
> cdrom? It's beginning to look like it to me.
>
> Thank you for taking the time to comment.
>
> Regards,
>
> DG
>
>
Well, there's a section in man in.ftpd that discusses its use
standalone during startup which might be of interest. It's in
the part about -S and -s options, and perhaps elsewhere.
--
The e-mail address in our reply-to line is reversed in an attempt to
minimize spam. Our true address is of the form che...@prodigy.net.
|
|
0
|
|
|
|
Reply
|
CJT
|
11/3/2005 3:21:32 AM
|
|
David E. Grove wrote:
> I have a damaged kernel on a Solaris 10 system (can't boot). I'd like to
> use FTP to get some user files from that system. I can "boot cdrom -s",
> but, of course, that doesn't bring up the network. So...
I used a 10 GA boot disk and see:
SunOS Release 5.10 Version Generic 64-bit
Copyright 1983-2005 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Booting to milestone "milestone/single-user:default".
Configuring devices.
Using RPC Bootparams for network configuration information.
Attempting to configure interface hme0...
Configured interface hme0
Requesting System Maintenance Mode
SINGLE USER MODE
# route add 0 gateway-ip#
ftp ip#
works fine.
|
|
0
|
|
|
|
Reply
|
gerryt
|
11/3/2005 4:06:28 PM
|
|
"CJT" <abujlehc@prodigy.net> wrote in message
news:4369823B.4060004@prodigy.net...
> >
> Well, there's a section in man in.ftpd that discusses its use
> standalone during startup which might be of interest. It's in
> the part about -S and -s options, and perhaps elsewhere.
>
Thank you, CJT. I will consult the documentation.
DG
|
|
0
|
|
|
|
Reply
|
David
|
11/3/2005 5:09:05 PM
|
|
"David E. Grove" <david_grove@correct.state.ak.us> writes:
> I used "ifconfig" and "route" to configure the ce0 interface and a default
> route.
Sounds good. You'll need to use numeric IP addresses at that point,
as name services aren't configured, and you won't be able to modify
/etc in the miniroot.
Note for future: use Live Upgrade, as it's easier to recover from
trouble like this.
> But, as I see it (and I could be wrong-- correct me, please), I
> still need the inetd daemon, er, service running. I tried 'svcadm enable
> inetd', but got the following error message:
No, you don't need or want inetd, nor any of the services under it.
That's for *inbound* services, not for outbound.
In other words, if someone is telnet-ing to your system, then inetd is
the one that answers the call. When you invoke telnet or ftp on your
own, you're causing inetd on somebody else's system to do work.
--
James Carlson, KISS Network <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
|
|
0
|
|
|
|
Reply
|
James
|
11/3/2005 5:27:52 PM
|
|
<gerryt@vcn.bc.ca> wrote in message
news:1131033987.757363.208790@z14g2000cwz.googlegroups.com...
>
> I used a 10 GA boot disk and see:
>
> SunOS Release 5.10 Version Generic 64-bit
> Copyright 1983-2005 Sun Microsystems, Inc. All rights reserved.
> Use is subject to license terms.
> Booting to milestone "milestone/single-user:default".
> Configuring devices.
> Using RPC Bootparams for network configuration information.
> Attempting to configure interface hme0...
> Configured interface hme0
> Requesting System Maintenance Mode
> SINGLE USER MODE
> # route add 0 gateway-ip#
>
> ftp ip#
> works fine.
>
When I do that I see the same, except for the network stuff. I get
{2} ok boot cdrom -s
Boot device: /pci@8,700000/ide@6/cdrom@0,0:f File and args: -s
SunOS Release 5.10 Version Generic 64-bit
Copyright 1983-2005 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Booting to milestone "milestone/single-user:default".
Configuring devices.
Using RPC Bootparams for network configuration information.
Attempting to configure interface ce1...
Skipped interface ce1
Attempting to configure interface ce0...
Skipped interface ce0
Requesting System Maintenance Mode
SINGLE USER MODE
#
Then I'm stuck, as I have described.
Thank you for commenting. At least I know it can work.
DG
|
|
0
|
|
|
|
Reply
|
David
|
11/3/2005 6:06:43 PM
|
|
I replaced the network patch cable.
VOILA! It works.
After the machine got damaged, we physically removed it from the rack and
set it up for testing and post-mortem work in another little-used location.
Never occurred to me, until much pain later, to suspect the physical
connection.
In retrospect, I should have suspected it yesterday. Earlier when I said
ping was not working, I wan't fully honest. I could do a loopback ping.
But, couldn't ping anything outside the box-- including the router. Should
have tipped me off right there.
Thank you all for your helpful comments.
I will now slink off and work on transfering the files.
Regards,
DG
|
|
0
|
|
|
|
Reply
|
David
|
11/3/2005 6:45:00 PM
|
|
|
15 Replies
710 Views
(page loaded in 0.167 seconds)
|