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 Thu 31 Jul 2014, 18:15
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Lost my hard drive partitions
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
johnpaul013

Joined: 10 Dec 2010
Posts: 9

PostPosted: Mon 10 Jan 2011, 17:25    Post subject:  Lost my hard drive partitions  

I am running puppy 5.1.1, released Sept 2010.

I boot from flash and it sees my disk drive:
/dev/sda1 ext3 fs
/dev/sda2 ext3 fs
/dev/sda3 swap
/dev/sda4 ext3 fs

I then save my session to lupusave.3fs (ext3) and then shutdown.

Now I unplug my 160GB hard disk and plug in another 160GB hard disk.
The new disk looks as follows:
/dev/sda1 ext3 fs
/dev/sda2 swap
/dev/sda3 ext3 fs
/dev/sda4 ext3 fs

On bootup puppy fails to load the swap partition onto /dev/sda2

The funny thing is that the entries for sda1 thru sda4 disappear from /dev.
I re-create the entries manually
mknod /dev/sda1 b 8 1
mknod /dev/sda2 b 8 2
mknod /dev/sda3 b 8 3
mknod /dev/sda4 b 8 4

Then I execute : swapon /dev/sda2
Not all is ok.....
But it took me all day to figure out how to recover.
Is this a bug???
If you guys think this is a bug, then I will file a bug report.
Thanks
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Mon 10 Jan 2011, 17:55    Post subject:  

You are speaking about IDE/sata HDD's or USB HDD's?
The boot is done from CD?
There is no save file then?

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch

Last edited by Béèm on Mon 10 Jan 2011, 19:22; edited 1 time in total
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3956
Location: Kiel,Germany

PostPosted: Mon 10 Jan 2011, 19:20    Post subject:  

The files at /dev are partly fixed. They are part of the original pup.sfs . The kernel or apps can delete or add new entries at /dev if youre plugging in some USB for example or modprobe some drivers . How it would behave without a savefile I do not know.

probepart or partprobe command does create new entries for hds at /dev

It is possible to configure a kernel with the option
Device Drivers --->
Generic Driver Options --->
[ ] Create a kernel maintained /dev tmpfs (EXPERIMENTAL) (NEW)

which would delete all inside /dev and create new as detected every boot
which is not implemented for the 2.6.30 kernel but at least at 2.6.33 and 34
Back to top
View user's profile Send private message Visit poster's website 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Mon 10 Jan 2011, 21:39    Post subject:  

Karl Godt wrote:

It is possible to configure a kernel with the option
Device Drivers --->
Generic Driver Options --->
[ ] Create a kernel maintained /dev tmpfs (EXPERIMENTAL) (NEW)
which would delete all inside /dev and create new as detected every boot
which is not implemented for the 2.6.30 kernel but at least at 2.6.33 and 34

Very interesting option.
UDEV also can run in that manner (not used in Puppy). It creates small tmpfs in RAM, mounts It on /dev and makes the device nodes.

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3956
Location: Kiel,Germany

PostPosted: Tue 11 Jan 2011, 23:03    Post subject:  

Another point to think of :

BIOS : Hardrive AUTO instead of USER
Back to top
View user's profile Send private message Visit poster's website 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Tue 11 Jan 2011, 23:20    Post subject:  

Suum cuique pulchrum est - Cicero

Is beautiful, yes? Wink

Aitch Smile
Back to top
View user's profile Send private message 
johnpaul013

Joined: 10 Dec 2010
Posts: 9

PostPosted: Fri 14 Jan 2011, 11:09    Post subject:  

OK..Now it happens all the time.
I do not see my hard drive partitions.
If I go into GParted then I see them ok.
They don't show up on my desktop.
I have to create the special nodes every time.
mknod sda1 b 8 1
mknod sda2 b 8 2
mknod sda3 b 8 3
mknod sda4 b 8 4
I think I broke something in my Linux.
Can I fix this short of creating a new puppy linux?
thanks.
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Sat 15 Jan 2011, 23:20    Post subject:  

At the 5 second boot page, type

Code:
Puppy pfix=purge


This fixes broken filesystems, usually

If it is the save file, you have to fsck it. Gparted doesn't see this file as a partition and thus can't do anything about it.

Else just forsake your savefile and make a new one....


Aitch Smile
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3956
Location: Kiel,Germany

PostPosted: Sat 15 Jan 2011, 23:35    Post subject:  

I've got the same problem now because of switching between hd and sd kernels on one full install. SATA treats the joints on the board differently then ATAPI/EIDE does .

So perhaps I'll put a function into /sbin/pup_event_frontend_d or a #!/bin/bash into /root/Startup .

My problems : Only one HD now instead of three ( removed two HDs into another box ) : SDC became HDB or SDA . And I made a 16th partition on the drive four months ago ( swap ) which is working ok but
Code:
# ls -l /dev/sda16
brw-rw---- 1 root root 259, 0 2011-01-16 01:46 /dev/sda16
Code:
# ls -l /dev/sdc16
b--------- 1 root root 8, 48 2010-12-13 04:17 /dev/sdc16
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0605s ][ Queries: 11 (0.0041s) ][ GZIP on ]