(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 26 Sep 2020, 17:57
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
umount problems while shutdown
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
keyboard


Joined: 30 Nov 2014
Posts: 148

PostPosted: Fri 01 May 2015, 16:02    Post subject:  umount problems while shutdown
Subject description: cleaner way to umount all drives while shutdown ??
 

I am still rusty with shutdown process of puppy linux, and need some help. So the thing is , I have formatted my internal hard disk with ext4 and did a frugal install of puppy linux (tharpup 6.0.2) made a grub boot loader, now I have experimented with two types of saves one as folder and another as image file .

Problems that had occurred was that with shutdown the dev_save didn't umount which caused file system errors. These problems were there with vfat file system of flash drives and also ntfs partitions of another hard disk. In every case the dev_save didn't unmount. Due to this whenever i tried to save my session in a folder and not in a image file, the x got broke. (I had to take out the internal hard disk from my laptop to reformat it as it was booting from the same save file from hard disk in which x was broke and not from the flash drive .)

Right know I am keeping my save file in image (which as a limitation of 4 GB) which also gets errors but is relatively faster to fix at boot time.

My question is , isn;t there is a cleaner way to umount all drives than which is written in shutdown script ?? it is really causing problems while maintaining git repos in the partition too.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11331

PostPosted: Sat 02 May 2015, 05:02    Post subject:  

Welcome to the puppy way of doing things and the short answer is accept it... its sloppy hackiness does have its drawbacks at times.

It was a pain for me sharing ext3 with windows since it leaves the dirty flag set. I also found ext2 saves corrupted pretty quickly.

My fix...changed puppy to use an sfs save that loads to the tmpfs. As long as all sfs load to ram as well you can shutdown cleanly.

Otherwise you want something like slax or porteus that unmount cleanly.

I recommend you don't try modifying puppy to unmount cleanly ..its cpio initrd messes up any chance of that so you cannot revert to the initrd to do a proper unmount. My save method above would take a bit of writing too...I used the puppy 2 wrappers as they were much easier to work with.

I must mention someone apparently painstakingly managed to get the pup_save to unmount by killing processes which may be enough by removing it from the union...though removing the read/write layer sounds unlikely...plus this only works if the other sfs are loaded to ram.

mike
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Sat 02 May 2015, 05:40    Post subject:  

Hello, keyboard.

First: congratulations on your "staying power" facing such big problems...

The image of your problem is not absolutely clear in my head (what's not
clear to me is I don't know if your shutdown process actually "hangs" or if
it's just longish).

But maybe a few pointers can help anyway:

- saving frugally as a folder on disks with a non-linux format (vfat, ntfs) is
a no-no. The linux folder structure is not "understood" correctly by those
WhineDose formats.

- it seems that the new ext4 format can have a data corruption problem
http://puppylinux.org/wikka/EXT4
Maybe sticking to good old and extremely stable ext3 format would be
better, for now anyway; then we can eliminate the disk format as a
potential cause of your problem.

- shutdown with a "frugal folder" should be almost immediate, since
everything you did in your session has been saved as you go. It's pretty
much the same with a pup-save file, except that the "last 1 %" (+/-; my
understanding!) of your session has to be saved, so it takes a couple of
seconds longer.

- shutdown problems have been reported in previous years, on some
versions of Puppy running on some computers. (Details are not fresh
in my memory, though...) I thought the new Puppy team at the Puppy
Linux git repo had snaked through the various shutdown calls and solved
those problems...

- Maybe closing all programs and un-mounting all external drives manually
just before hitting the shutdown button can help.

- After you've done the above manual closing, the ultimate never-fail
shutdown solution is to return to the black initial console and type:
Code:
busybox poweroff

- The go-to person for TahrPup is of course its author 666philb. He
probably has more insights than anybody else about TahrPup.

I hope this helps.

In any case, keep your eyes peeled and your ears up, continue taking
notes as you've done: you're bound to succeed. Smile

BFN.

musher0

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. 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.0330s ][ Queries: 11 (0.0058s) ][ GZIP on ]