Sponsored Content
Full Discussion: reading the hard drive
Top Forums UNIX for Advanced & Expert Users reading the hard drive Post 33956 by RTM on Monday 27th of January 2003 04:00:48 PM
Old 01-27-2003
When you edited the /etc directory, did you save it as a file?


Try booting single user from cdrom. Mount up the / partion of the disk on /mnt. You then need to cd /mnt/lost+found. See it the system moved the directory there. If it did, move it back to /mnt/etc. Then run fsck on that disk. Shutdown and boot into single user off the disk.

(I was just looking at your post again - is this a X86 system? If yes, then I don't know if my post will help you - I don't believe you can boot single user from the Solaris X86 cd.)

(Another note - you can boot from cdrom for X86)
Booting Single-User From CDROM Using the Device Configuration Assistant (DCA) on the Hard Drive:
------------------------------------------------------------------------------------------------


1). Power the system on.

2). Insert the correct version Solaris Software cdrom for your system.

OPTIONAL: If there is a boot loader in operation on your system, select the Solaris partition as the partition to boot from.

3). After the "Solaris Secondary Boot Loader" and "Running Device Configuration Assistant" messages appear, hit the 'esc' key where prompted to do so.

4). At the "DCA intro screen" hit F2 (F2_Continue).

5). At the "list of devices found" hit F2 (F2_Continue).

6). At the "list of available boot devices" select the CDROM as the device from which to boot a Solaris kernel.

7). At the screen where you are prompted to select 1, 2, or 3 for what type of install you wish to do, enter 'b -s' instead of a number.

This will bring the system up to single-user mode from the cdrom.


Booting Single-User From the CDROM Using the Device Configuration Assistant (DCA) Floppy:
-----------------------------------------------------------------------------------------

1). With the power on, insert DCA floppy, then the correct version Solaris Software cdrom for your system.

2). At the "DCA intro screen" hit F2 (F2_Continue).

3). At the "list of devices found" hit F2 (F2_Continue).

4). At the "list of available boot devices" select the CDROM as the device from which to boot a Solaris kernel.

5). At the screen where you are prompted to select 1, 2, or 3 for what type of install you wish to do enter 'b -s' instead of a number.

This will bring the system up to single-user mode from the cdrom. It should be noted that even though there are fewer steps, this normally takes much longer than running the DCA from the hard drive.


Booting Single-User From the Hard drive:
----------------------------------------

1). Power the system on.

OPTIONAL: If there is a boot loader in operation on your system, select the Solaris partition as the partition to boot from.

2). Wait until the prompt for booting "with options" or "into the interpreter". At this point enter 'b -s' and hit [Return].

This will bring the system up to single-user mode from the hard drive.


Booting Single-User From the Hard Drive Using the DCA Floppy:
-------------------------------------------------------------

1). With the power on, insert DCA floppy,

2). At the DCA intro screen hit F2 (F2_Continue).

3). At the "list of devices found" hit F2 (F2_Continue).

4). At the "list of available boot devices" select the hard drive with the root partiton on it as the device from which to boot a Solaris kernel.

5). Wait until the prompt for "booting with options" (b) or "into the interpreter" (i). At this point enter 'b -s' and hit [Return].
Note that you only have 5 seconds to do this.

This will bring the system up to single-user mode from the hard drive.

Last edited by RTM; 01-27-2003 at 05:24 PM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

currupted my hard drive

Hello, earlier tonight I was installing BETA version of Mandrake Linux 9.0 and I realised I needed to partition my drive. I tried making the partition within mandrake but ther wasnt an option within the mandrake setup. So i go into my WindowsXP and do the disk management option but there want a... (5 Replies)
Discussion started by: xcaliber
5 Replies

2. Linux

hard drive specs?

Does anybody know what command will bring up my harddrive and how much room is left on it? (13 Replies)
Discussion started by: byblyk
13 Replies

3. UNIX for Dummies Questions & Answers

Removing hard drive

Hi, Can someone answer to my question.I' totally new to Unix. What is the command for removing the hard drive from the system? Thanks a lot, Puja (2 Replies)
Discussion started by: pujathakral
2 Replies

4. UNIX for Dummies Questions & Answers

Trying to copy old hard drive to new hard drive.

:confused: ........I have a new hard drive and I need to copy ALL info from the old to the new. I would like to use the dd command. I know the command is as follows...... dd if=/dev/rdsk/c1t1d0s0 of=/dev/rdsk/???????? Where I have the question marks is the problem. How do I find out what the... (4 Replies)
Discussion started by: shorty
4 Replies

5. Filesystems, Disks and Memory

The best partitioning schem for a 250GB Sata hard drive & a 75GB SCSI hard drive

Hi I have 2 75GB SCSI hard drives and 2 250GB SATA hard drives which are using RAID Level 1 respectively. I wana have both FTP and Apache installed on them as services. I'm wondering what's the best partitioning schem? I wana use FC3 as my OS, so, I thought I can use the 75GB hard drive as the /... (0 Replies)
Discussion started by: sirbijan
0 Replies

6. Solaris

wiping hard drive

I'm looking for a utility that will wipe data clean from a Solaris hard drive and make the data unreadable and unrecoverable. Any suggestions? Does SUN have something? (3 Replies)
Discussion started by: dangral
3 Replies

7. Solaris

Using the rest of my hard drive

Hi When I installed opensolaris, I installed it on a 20GB partition. How do I make use of the other 300GB I have spare? format shows:- -bash-3.2# format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c3d0 <DEFAULT cyl 2607 alt 2 hd 255 sec 63> ... (12 Replies)
Discussion started by: hellotommy
12 Replies

8. Filesystems, Disks and Memory

mount old hard drive

Hi guys, I have been looking around and searching for the past hour and did not see anything. but please forgive me if I missed something. I had a sparc 10 ultra cpu die on me, I got a replacement server from a very generous guy here, now I am getting around to remounting my old hard drive with... (0 Replies)
Discussion started by: DrDarkMatter
0 Replies

9. Hardware

checking non sequential reading/writing of hard drive

what command check that? Does it depend in the time it take to access the file? (1 Reply)
Discussion started by: programAngel
1 Replies
installgrub(1M) 														   installgrub(1M)

NAME
installgrub - install GRUB in a disk partition or a floppy SYNOPSIS
/sbin/installgrub [-fm] stage1 stage2 raw-device The installgrub command is an -only program. GRUB stands for GRand Unified Bootloader. installgrub installs GRUB stage 1 and stage 2 files on the boot area of a disk partition. If you specify the -m option, installgrub installs the stage 1 file on the master boot sector of the disk. The installgrub command accepts the following options: -f Suppresses interaction when overwriting the master boot sector. -m Installs GRUB stage1 on the master boot sector interactively. The installgrub command accepts the following operands: stage1 The name of the GRUB stage 1 file. stage2 The name of the GRUB stage 2 file. raw-device The name of the device onto which GRUB code is to be installed. It must be a character device that is readable and writable. For disk devices, specify the slice where the GRUB menu file is located. (For Solaris it is the root slice.) For a floppy disk, it is /dev/rdiskette. Example 1: Installing GRUB on a Hard Disk Slice The following command installs GRUB on a system where the root slice is c0d0s0: example# /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0d0s0 Example 2: Installing GRUB on a Floppy The following command installs GRUB on a formatted floppy: example# mount -F pcfs /dev/diskette /mnt # mkdir -p /mnt/boot/grub # cp /boot/grub/* /mnt/boot/grub # umount /mnt # cd /boot/grub # /sbin/installgrub stage1 stage2 /dev/rdiskette /boot/grub Directory where GRUB files reside. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ boot(1M), fdisk(1M), fmthard(1M), kernel(1M), attributes(5) Installing GRUB on the master boot sector (-m option) overrides any boot manager currently installed on the machine. The system will always boot the GRUB in the Solaris partition regardless of which fdisk partition is active. 24 May 2005 installgrub(1M)
All times are GMT -4. The time now is 01:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy