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 Sat 30 Aug 2014, 06:17
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
More /dev/loop Devices
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
ozboomer


Joined: 04 May 2005
Posts: 93
Location: Melbourne, Australia

PostPosted: Fri 07 Oct 2005, 10:28    Post subject:  More /dev/loop Devices  

I've been using a couple of the /dev/loop devices in a few of my scripts that manipulate pupnnn files (for backups and so on).

I've recently found out about the usr_devx.sfs file and with unionfs, it makes for a very nice way to add development abilities... but it does take away one of the /dev/loop devices.

As I understand it, the 'losetup' program can cope with 8 /dev/loop devices, so can we have those made available in the next release of Puppy, please?

Perhaps we could also think about a standard way of using/allocating them as well. For example, /dev/loop8 might be used (reserved) by the usr_devx.sfs file; /dev/loop0 would always be used for the pup001 file, /dev/loop1-4 would be available as 'user block devices'... and /dev/loop5-8 would be 'system block devices' (for example as previously suggested, in use by usr_devx.sfs and its ilk).
Back to top
View user's profile Send private message 
BarryK
Puppy Master


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

PostPosted: Fri 07 Oct 2005, 19:03    Post subject:  

Okay, now is my opportunity to document this!

/sbin/losetup is Busybox losetup.
It seems buggy, only properly handles loop0 and loop1.

/bin/losetup-FULL is the full losetup program, works fine.

loop0
This is reserved for usr_cram.fs to mount on /.usr_cram

loop1
This is reserved for the pupxxx file to mount on /root

loop2
This is used by various scripts in Puppy.
So, it is normally available. A script should use it, then release it.

loop3
This is reserved for use by usr_devx.sfs to mount on /.usr_devx.

loop4
This is reserved for usr_more.sfs to mount on /.usr_more.


So, loop2 is normally available, and loops 5+ are available.
This should go somewhere like the wiki I suppose.
Back to top
View user's profile Send private message Visit poster's website 
ozboomer


Joined: 04 May 2005
Posts: 93
Location: Melbourne, Australia

PostPosted: Sat 08 Oct 2005, 06:16    Post subject:  

BarryK wrote:
Okay, now is my opportunity to document this!

[...]

This should go somewhere like the wiki I suppose.

Started on the wiki at http://www.goosee.com/puppy/wikka/MounTing
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


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

PostPosted: Sat 08 Oct 2005, 11:16    Post subject:  

Thanks, Oz. I wondered where loop devices fit into the scheme of Puppy. Any chance you could add a brief explanation of why they are called "loop" devices, and why they are necessary? Just an overview, light on the technical details, so they make sense to a Linux beginner.
Back to top
View user's profile Send private message 
ozboomer


Joined: 04 May 2005
Posts: 93
Location: Melbourne, Australia

PostPosted: Sat 08 Oct 2005, 21:23    Post subject:  

Flash wrote:
Any chance you could add a brief explanation of why they are called "loop" devices, and why they are necessary?

Well, I'm no super-expert on Linux myself(!)... So for now, I've added a link to the Linux Doc. Project HOWTO, the first few paragraphs of which explain about how the /dev/loop devices and RAMdisks work in a fairly understandable way.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


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

PostPosted: Sat 08 Oct 2005, 23:19    Post subject:  

Thanks. Smile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
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.0596s ][ Queries: 12 (0.0138s) ][ GZIP on ]