Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Erase Specific File From HDD w/ Boot CD?

I've got a PowerPC G3 with Tiger. Yesterday, I created /etc/launchd.config to raise maxfiles to 1024 on startup, in an effort to better automate a backup program. After a restart, the computer stopped booting at the grey screen w/ spinner.

When I start up the iMac in either Safe Boot w/ debug or Single-User Mode, I get spammed with "file: table is full". Bottom line, if I could just delete /etc/launchd.config I imagine it would solve the issue. I have a Boot CD and access to USB drives - how can I accomplish this?

iMac, Mac OS X (10.4.11)

Posted on Mar 8, 2014 10:47 AM

Reply
16 replies

Mar 8, 2014 12:20 PM in response to vshack

If you cannot start up in single-user mode or regular mode nor connect with another computer via TDM, then I know of no other option unless you have a Tiger installation DVD. If you do, then boot from it. When the menubar appears select Terminal from the Utilities menu. Follow the same procedure for removing or editing the file. You will be in super-user mode and should not need to put the system into write mode as it should already be such.


However, since you will have booted from the DVD you will need to CD to the hard drive volume: cd /Volumes/volname.

Mar 8, 2014 2:21 PM in response to vshack

When I start up the iMac in either Safe Boot w/ debug or Single-User Mode, I get spammed with "file: table is full". Bottom line, if I could just delete /etc/launchd.config I imagine it would solve the issue. I have a Boot CD and access to USB drives - how can I accomplish this?


Boot up your installation cd/dvd/ . answer language. Look under utilities on the panel that comes up. You will see terminal. Run terminal.


You familiar with terminal?


nano will let you edit a file.

Robert

Mar 8, 2014 2:31 PM in response to Kappy

I of course do have the boot CD, at first it spit it out but after some cleaning it showed up in the Startup Manager. However, when the menubar appears there is no Terminal option under Utilities. The options are Startup Disk, Reset Password, Disk Utility, System Profiler, and Network Utility.

Mar 8, 2014 3:01 PM in response to vshack

What version of Mac OS X is the cd?


I know 10.4 had terminal. Not sure if 10.2 had terminal or not.


Restore Tiger 10.4 & Leopard 10.5 DVDs are available from Apple by calling 1(800) 275-2273. Have your serial number ready. Have your credit card ready too. There may be a small fee.

https://discussions.apple.com/thread/4720126?tstart=0 -- January 20,2013

https://discussions.apple.com/thread/5772721?answerId=24588313022#24588313022 -- January 22,2014



RObert

Mar 8, 2014 3:26 PM in response to rccharles

The disc is part 1 of several CDs (drive does not read DVDs) given to me along with the G3. I believe this would be the equivalent (making them 10.4.0).

http://www.ebay.com/itm/Apple-PowerMac-G5-Install-Discs-Mac-OS-X-10-4-0-Disc-Ver sion-1-0-Two-CD-Set-/121287852365


Apparently I can boot into Single-User mode from the disc, but I'm not sure where to go from here. The command "-uw" isn't recognized.

http://forums.appleinsider.com/t/71929/help-g4-mac-10-4-wont-boot-stalls-on-gray -screen#post_1044640

Mar 8, 2014 6:17 PM in response to vshack

Great idea to boot into single user mode from cd.


( Do you know Unix. You are in a Unix single user console. ) The setup commands you need should be listed on the screen. For Mac OS 10.4.11, the commands are:


Here is what you use if you are booting to single user mode.

# Type the follow two instructions to access the startup disk in read/write.


# check out the filesystem.

# ( in case of partial success repeat this command until errors go away. )

/sbin/fsck -fy


# Gain read / write access to your startup drive

/sbin/mount -uw /


You are going to have to figure out how to mount a partition on the hd.


maybe the disk is already mounted

mount


how to mount the hd partition.

mkdir /Volumes/myhd

# your going to have to figure out the right value for disk0s5 for your situtation 😟


mount_hfs /dev/disk0s5 / Volumes/myhd

cd /Volumes/myhd



Macintosh-HD -> Applications -> Utilities -> Terminal

# Press return to run a command.


# Disk Utility app would see partition 10 and greater. The number of hidden partitions depends on how you format the dirve.


mac $ diskutil list
/dev/disk0
   #:                   type name               size      identifier
   0: Apple_partition_scheme                    *74.5 GB  disk0
   1:    Apple_partition_map                    31.5 KB   disk0s1
   2:         Apple_Driver43                    28.0 KB   disk0s2
   3:         Apple_Driver43                    28.0 KB   disk0s3
   4:       Apple_Driver_ATA                    28.0 KB   disk0s4
   5:       Apple_Driver_ATA                    28.0 KB   disk0s5
   6:         Apple_FWDriver                    256.0 KB  disk0s6
   7:     Apple_Driver_IOKit                    256.0 KB  disk0s7
   8:          Apple_Patches                    256.0 KB  disk0s8
   9:        Apple_Bootstrap                    977.0 KB  disk0s9
  10:              Apple_HFS Classic            1.1 GB    disk0s10
  11:        Apple_UNIX_SVR2                    3.2 GB    disk0s11
  12:              Apple_HFS Macintosh-HD       69.9 GB   disk0s12
  13:        Apple_UNIX_SVR2                    177.4 MB  disk0s13


The sudo command will ask for your administrator password. No characters will appear when typing your password. Press return when done typing. sudo stands for super user do. It's just like root. Be careful.



mac  $ sudo pdisk -l

Partition map (with 512 byte blocks) on '/dev/rdisk0'
 #:                type name                    length   base      ( size )
 1: Apple_partition_map Apple                       63 @ 1        
 2:      Apple_Driver43*Macintosh                   56 @ 64       
 3:      Apple_Driver43*Macintosh                   56 @ 120      
 4:    Apple_Driver_ATA*Macintosh                   56 @ 176      
 5:    Apple_Driver_ATA*Macintosh                   56 @ 232      
 6:      Apple_FWDriver Macintosh                  512 @ 288      
 7:  Apple_Driver_IOKit Macintosh                  512 @ 800      
 8:       Apple_Patches Patch Partition            512 @ 1312     
 9:     Apple_Bootstrap untitled                  1954 @ 149319048
10:           Apple_HFS Apple_HFS_Untitled_1   2254440 @ 263968    (  1.1G)
11:     Apple_UNIX_SVR2 untitled               6617188 @ 149321002 (  3.2G)
12:           Apple_HFS Apple_HFS_Untitled_2 146538496 @ 2780552   ( 69.9G)
13:     Apple_UNIX_SVR2 swap                    363298 @ 155938190 (177.4M)
14:          Apple_Free Extra                   262144 @ 1824      (128.0M)
15:          Apple_Free Extra                   262144 @ 2518408   (128.0M)

Device block size=512, Number of Blocks=156301488 (74.5G)
DeviceType=0x0, DeviceId=0x0
Drivers-
1:  23 @ 64, type=0x1
2:  36 @ 120, type=0xffff
3:  21 @ 176, type=0x701
4:  34 @ 232, type=0xf8ff

Mar 8, 2014 6:29 PM in response to rccharles

This has been a journey, but I finally got it working!


First I tried what you (rccharles) suggested, /sbin commands. Unfortunately, those ran the commands on the CD itself instead of the internal HDD so it didn't get me anywhere. However I found this article.

http://forums.macrumors.com/showthread.php?t=232302


After reading, I discovered the hard disk device identifier (disk0s9) through Disk Utility and ran this command.

mount -t hfs /dev/disk0s9 ~


I then navigated to /etc/launchd.config and proceeded to rm it. Being a noob and assuming it saved the change, I then hard shutdown the Mac. After discovering nothing had changed, I repeated the mount and rm but this time ran the clearly spelled out command to boot the OS while still in Single-User mode (that being sh /etc/rc), after which point I was returned to the OS X installation screen.


Restart to HDD using Startup Disk and it's alive! Thank you both so much for pointing me in the right direction so many times. <3

Erase Specific File From HDD w/ Boot CD?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.