Unix/Linux Go Back    


UNIX for Beginners Questions & Answers If you're not sure where to post a Unix or Linux question, post it here. All unix and Linux beginners welcome in this forum!

Ufsrestore on SunBlade 2500

UNIX for Beginners Questions & Answers


Tags
solaris 9, sunblade, ufsrestore

Reply    
 
Thread Tools Search this Thread Display Modes
    #15  
Old Unix and Linux 3 Days Ago   -   Original Discussion by Stellaman1977
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 23 January 2018, 4:50 AM EST
Location: Devon, UK
Posts: 1,734
Thanks: 248
Thanked 440 Times in 377 Posts
Well you've already successfully booted into single user from this hard disk so you might as well try going multi-user with CTRL-D
The Following User Says Thank You to hicksd8 For This Useful Post:
Stellaman1977 (3 Days Ago)
Sponsored Links
    #16  
Old Unix and Linux 3 Days Ago   -   Original Discussion by Stellaman1977
Stellaman1977's Unix or Linux Image
Stellaman1977 Stellaman1977 is offline
Registered User
 
Join Date: Sep 2017
Last Activity: 22 January 2018, 1:53 PM EST
Posts: 55
Thanks: 44
Thanked 2 Times in 2 Posts
OK I put run level 3 and


Code:
Cannot access /var/adm/utmpx, remaining in single user mode

and then back to the

Code:
ctrl-d to proceed with normal...

Sponsored Links
    #17  
Old Unix and Linux 3 Days Ago   -   Original Discussion by Stellaman1977
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 23 January 2018, 4:50 AM EST
Location: Devon, UK
Posts: 1,734
Thanks: 248
Thanked 440 Times in 377 Posts
Is /var a separate filesystem? Have you allocated the slice, newfs'd and restored it? Have you modified /etc/vfstab with the right device node to point to it?

If you boot into single user:



Code:
ok> boot -sw

and give the root password to get to a # prompt, can you then manually mount /dev/dsk/c?t?d?s? on /var? Does it work or does it complain?

If it works, take a look in /var/adm to see if the file is there.

Or have you restored the /var contents into /var on the root filesystem with the vfstab mounting over the top and hiding the files????

Repeat, is /var a separate filesystem or not?
The Following User Says Thank You to hicksd8 For This Useful Post:
Stellaman1977 (20 Hours Ago)
    #18  
Old Unix and Linux 3 Days Ago   -   Original Discussion by Stellaman1977
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 23 January 2018, 4:50 AM EST
Location: Devon, UK
Posts: 1,734
Thanks: 248
Thanked 440 Times in 377 Posts
Double check your entries in /etc/vfstab (/a/etc/vfstab when mounted on the DVD) to ensure that the devices you have set for root (/), /usr, and /var (if separate) point to the slices that you restored them to.

An incorrect setting for root (/) could be causing this.
The Following User Says Thank You to hicksd8 For This Useful Post:
Stellaman1977 (19 Hours Ago)
Sponsored Links
    #19  
Old Unix and Linux 20 Hours Ago   -   Original Discussion by Stellaman1977
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 23 January 2018, 4:50 AM EST
Location: Devon, UK
Posts: 1,734
Thanks: 248
Thanked 440 Times in 377 Posts
You have one of two scenarios.

The /var is either (a) a separate filesystem (which you will have dumped separately from the original system), or (b) it is not separate and is therefore included in the root filesystem.

If it is (a) then when you boot from DVD and mount your hard disk root filesystem under /a, when you look in /a/var it will be empty since the other /var slice will be mounted here. Also, in this case, there will be an entry in /a/etc/vfstab to mount this other slice under /var at boot time.

If it is (b) then when you boot from DVD and mount your hard disk root filesystem under /a, when you look in /a/var the normal files will be in there. Also, there will be no entry in /a/etc/vfstab to mount anything on /var.

If you have checked everything is in order for (a) or (b) and the system still won't boot correctly, then recreate the device nodes for all disks using 'devfsadm' as described previously.
The Following User Says Thank You to hicksd8 For This Useful Post:
Stellaman1977 (19 Hours Ago)
Sponsored Links
    #20  
Old Unix and Linux 19 Hours Ago   -   Original Discussion by Stellaman1977
Stellaman1977's Unix or Linux Image
Stellaman1977 Stellaman1977 is offline
Registered User
 
Join Date: Sep 2017
Last Activity: 22 January 2018, 1:53 PM EST
Posts: 55
Thanks: 44
Thanked 2 Times in 2 Posts
Good Morning..

Good news- its starting to look like something! It lets me log in as root.

Yes,

Code:
/usr

is its own slice. Never did anything with it so I formatted and restored it.

Amended

Code:
vfstab

for that slice.

Booted without reconfigure switch.

Its coming up with

Code:
Cannot start X-Server

and driver error, which I expected.

Next, I intend to:

1. Install the driver for that card.
2. Format and restore the other slices.

Sound about right?
Sponsored Links
    #21  
Old Unix and Linux 19 Hours Ago   -   Original Discussion by Stellaman1977
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 23 January 2018, 4:50 AM EST
Location: Devon, UK
Posts: 1,734
Thanks: 248
Thanked 440 Times in 377 Posts
That's looking better. Well done!

Don't forget the obvious that, at some point, you should backup this system as a separate entity to protect all the changes you've made. You don't want to have to start again.

Also, you'll need to change the node name if it's going to sit on the same subnet as the original, and configure the network interface (for real this time). Is the network interface card the same as the original? e.g. bge0 or whatever?

But, yes, you can create slices and ufsrestore the other filesystems one at a time remembering to keep vfstab up to date so that the system can find them at boot time.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cloning a Sunblade 2500 Stellaman1977 Solaris 8 10-25-2017 01:25 PM
Installing OpenBSD for Xorg on Sunblade 2500 harqobi22 BSD 2 08-20-2015 12:05 PM
StorageTek 2500 sprehodec Hardware 1 03-14-2013 10:53 AM
Now Over 2500 FB Fans for Our New Timeline Neo What is on Your Mind? 0 08-06-2012 10:51 AM
Anyone has problems with new Blade 2500???? facaizhu Solaris 4 01-11-2006 07:43 PM



All times are GMT -4. The time now is 06:18 AM.