Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 19 Jun 2013, 18:50
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Booting with broken hard drive
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
klager

Joined: 29 Oct 2008
Posts: 3

PostPosted: Wed 29 Oct 2008, 12:36    Post subject:  Booting with broken hard drive
Subject description: I cant boot from CD
 

I have problems too boot Puppy from CD on a laptop with a broken hard drive. The problem is that the hard drive is broken, but still found by the system. When I try too boot Puppy it searches for Puppy files on the disks and it never stops trying to access the broken hard drive. How can I make Puppy not searching for files on the broken hard drive? I have tried to just remove the hard drive, but with out the hard drive it cant boot at all from the CD.
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 10824
Location: The Peoples Republic of California

PostPosted: Wed 29 Oct 2008, 12:48    Post subject:  

Yup, Linux is pretty good about finding those hard drives, especially on the first channel.

You could try some boot parameters, I certainly can't say for sure they will work in your case.

puppy hdX=noprobe ide=nodma

where X is the letter of the drive not to probe, add more if you want.

< 4.10 used /dev/hdX

4.10 uses /dev/sdX

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 9910
Location: Arizona USA

PostPosted: Wed 29 Oct 2008, 13:16    Post subject:  

You can pause the boot process with the up arrow, to give you time to enter the boot parameters Bruce mentioned. When you get them entered, hit Enter to continue booting.
Back to top
View user's profile Send private message 
ezeze5000


Joined: 10 May 2005
Posts: 345
Location: Missouri U.S.A

PostPosted: Wed 29 Oct 2008, 15:21    Post subject: re-broken hard drive  

You could try disabling the hard drive in the BIOS.
That way it wont even find the broken drive, and the motherboard wont be upset ether.

I hope this helps.

_________________
If at first you don't succeed try try again!
Back to top
View user's profile Send private message Yahoo Messenger 
Bruce B


Joined: 18 May 2005
Posts: 10824
Location: The Peoples Republic of California

PostPosted: Wed 29 Oct 2008, 15:51    Post subject: Re: re-broken hard drive  

ezeze5000 wrote:
You could try disabling the hard drive in the BIOS.
That way it wont even find the broken drive, and the motherboard wont be upset ether.

I hope this helps.


Yes, and believe it or not Linux will still find the drive. Which I'm sure is hard to believe.

And I'd recommend doing just what you suggest anyway, along with the noprobe, but something I read, made me think he couldn't do it, and still boot the CD-ROM, but I probably (hopefully) didn't read right.

Or? Disconnecting it, threw off the slave/master/single relationship on the jumpers or whatever.

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
ac2011

Joined: 09 Feb 2011
Posts: 6

PostPosted: Fri 24 Feb 2012, 19:16    Post subject: An alternative option  

Apologies for resurrecting a dead thread, but it still turns up in search results so this may help someone, and 'noprobe' didn't work for me.

I had a similar problem, but on an Asus Eee PC with a soldered-in SSD drive that was broken, so no way of removing it. Running Puppeee 1.0 would hang for 3-5 minutes on every boot.

First, tell the initrd.gz scripts to ignore the drive, and second tell the main boot-up script to ignore it.

So, the first. From the command line, need to gain access to the contents of the initial ramdrive, which is usually initrd.gz:

[this part is from another thread on here]

Perform commands starting in directory containing initrd.gz

To extract:

mkdir initdir
cd initdir
zcat ../initrd.gz | cpio -i -d

To compress:

cd initdir
find . | cpio -o -H newc | gzip -9 > ../initrd.gz

In between those two operations, you need to edit the appropriate file(s). For Puppeee 1.0 (using eee-504.sfs), need to edit /sbin/probepart.init and add the following *after* the two variables have already been defined:

# All I've actually done to the PARTITIONS line is add "| sda" to the list of excluded (grepped out) partition names.
# Dodgy drive is sda, boot drive is usually sdb, so change as appropriate here
PARTITIONS="`grep -E '^ .*[^k][0-9]$' /proc/partitions | tr -s ' ' | cut -f 4-5 -d ' ' | grep -vE ' loop| ram| sda' | tr ' ' '|'`"
ALLDRVS="sdb "

Then recompress the initrd.gz file and that should be the first step done (try it; it should get further before hanging).

Next step, possibly a little more straightforward. Boot the system and then load /etc/rc.d/rc.sysinit into a text editor. Find where its hanging next (for Puppeee it was after the 'Loading kernel modules' message appeared, so I searched for that). The problem is probably something like ATADRIVES=blah so simply comment out that line (in case it actually accesses the drives) and add a line after it saying ATADRIVES="sdb ", then reboot (saving your save file as you do).

Then, in the same file, need to comment out the line that reads something like [ "$SWAPON" != "yes" ] && loadswap_func

because the procedure 'loadswap_func' uses fdisk -l to read the partition table. So you can't have a swap file here (or if you do, need to modify loadswap_func so it doesn't use fdisk).

A slightly neater option is to leave the above line intact, but modify the 'fdisk -l' line in loadswap_func to read 'fdisk -l /dev/sdb' instead (or whichever disk you're using), so you could have a swap file on that drive, but no other.

Close down with a save file (so the script is updated) and it should now work OK.

In summary, what happens is that whenever the OS first tries to access the broken SSD hard drive, it will hang. Whether that's when looking for the Puppy files, finding partitions or setting swap on (which uses fdisk), it'll hang for 3-5 minutes. Making these changes will prevent that, but it will *still* hang (probably) if you use fdisk -l or some similar command once booted. So don't.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 2691
Location: Earth

PostPosted: Fri 24 Feb 2012, 19:56    Post subject: The ability to boot Puppy on a PC with bad HDD  

For about a year, the ability to boot an OS on a PC without the PC's HDD or USB or CD-DVD units has been made available to this community.

Should any ones of us want to do this, simple follow this guide. If you can use your package manager (PPM) the max aount of time to do this is 15 minutes. Every user who has attempted this has found it "really simple". And, you will get help via the forum on that thread should you need it. No CD-DVD/HDD/USB needed at all.

Hope this helps.

_________________
Get ACTIVE; Create Circles; Do those good things which benefit the people's needs!
We are all related ... Its time to show that we know this!
Google's Puppy Search Engine
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0505s ][ Queries: 12 (0.0035s) ][ GZIP on ]