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 15 Nov 2018, 13:29
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Does puppy automatically unmount all devices at shut-off?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
greenhat

Joined: 13 May 2006
Posts: 4

PostPosted: Sat 13 May 2006, 04:39    Post subject:  Does puppy automatically unmount all devices at shut-off?  

Hi, i've just installed 1.0.8r1 on the hard drive and it looks pretty good. But i'm still confused about the mounting and umounting. I noticed that editing fstab has no effect as it is re-written on reboot. Searching this forum others have said fstab isn't used anymore???

If I mount a partition using MUT, or the command line I noticed that /etc/mtab isn't updated as is the normal case in linux. So the basic question is, what if I were to power-down while forgetting to umount something (partition, cd, floppy, etc).... will Puppy detect it and cleanly umount it BEFORE powering down? Is it fool-proof or does one need an additional script for those cases.

Thanks.
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Sat 13 May 2006, 08:58    Post subject:  

http://www.murga.org/~puppy/viewtopic.php?t=3140
Mark
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 8707
Location: Perth, Western Australia

PostPosted: Sat 13 May 2006, 16:30    Post subject:  

yes, the shutdown script unmounts everything.
For Puppy1, see /etc/rc.d/rc.reboot, for Puppy2 see /etc/rc.d/rc.shutdown.
Back to top
View user's profile Send private message Visit poster's website 
greenhat

Joined: 13 May 2006
Posts: 4

PostPosted: Sat 13 May 2006, 23:58    Post subject:  

BarryK wrote:
yes, the shutdown script unmounts everything.
For Puppy1, see /etc/rc.d/rc.reboot, for Puppy2 see /etc/rc.d/rc.shutdown.


Thanks! That's exactly the info I was looking for.

I'm still getting a shutdown error on the small ext2 partition (hda7) where I have puppy installed though. Something like "device is busy, unable to remount hda7, resource is read-only" but then it does power down anyway. The message goes by very quickly so I might not have it exact.

My other linux distro keeps telling me to run efs2ck on it (hda7) if I mount it, indicating it's not unloading cleanly. This same warning appears in puppy's /var/log/messages when I restart. My grub entry for puppy looks like this, where everything including the pup1 file is on hda7 . Maybe that's the cause of the problem?

title Puppy Linux 1.0.8r1 at hda7
kernel (hd0,6)/vmlinuz root=/dev/ram0 PFILE=pup1-none-800000 PHOME=hda7 vga=791 quiet
initrd (hd0,6)/image.gz

Other than the shutdown quirk, everything is running great and very fast. Is there anyway to get itself to unmount cleanly at shutdown, or is this how it normally behaves on a harddrive install?

--------------------------------------------------------------------------------------------------
from puppy:

# grep warning /var/log/messages
May 13 20:37:26 (none) user.warn kernel: EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended

# mount
tmpfs on / type tmpfs (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/hda7 on /mnt/home type ext2 (rw)
/dev/loop1 on /root type ext2 (rw)
/dev/loop0 on /.usr_cram type squashfs (ro)
none on /usr type unionfs (rw,dirs=/root/.usr=rw:/.usr_cram=ro,debug=0,delete=all,copyup=preserve)

from other linux distro:

@0[~]$ e2fsck /dev/hda7
e2fsck 1.39-WIP (09-Apr-2006)
/dev/hda7 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/hda7: 19/783360 files (0.0% non-contiguous), 964579/1566306 blocks
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5087
Location: Arizona, U.S.A.

PostPosted: Sat 20 May 2006, 16:28    Post subject:  

I'm getting the same thing in EmptyCrust, upon every boot the error report is that ext2 part. was unmounted uncleanly, & it's checked.

Any suggestions?
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Sat 20 May 2006, 16:43    Post subject:  

kill any processes that use the mounted partition.

For example internet-connections.
I connect with adsl-start and exit with adsl-stop, so it unmounts fine.
If you connected with roaring penguin, disconnect with it first before rebooting.


adsl-start is available as dotpup, it should use the files set up by roaring penguin I think (chap-secrets and pppoe.conf in /etc/ppp)
http://dotpups.de/dotpups/Internet/adsl-start.pup

Mark
Back to top
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 5087
Location: Arizona, U.S.A.

PostPosted: Sat 20 May 2006, 17:17    Post subject:  

MU; That was my thought, but most of the time I don't use the ext2 part. at all, usually only when I'm doing package work.
The entire session I never open ROX or any other file browser to the ext2 part., yet every bootup has the same error.
The interesting thing is that for greenhat & my self at least, it's only the ext2 part. that has this trouble.
More testing could be done I suppose, but it may not provide any solutions.

##### I just tried: umount /mnt/hda3 & the mount command shows that it was unmounted, what's up?
I assume it was unmounted cleanly, I'll post back here after the next reboot if it errors after my unmounting it manually.
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 » 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.0467s ][ Queries: 11 (0.0126s) ][ GZIP on ]