- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Is there such thing as a loop device in HP-UX?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2002 10:03 PM
тАО07-28-2002 10:03 PM
Is there such thing as a loop device in HP-UX?
although I know most of you haven't got a too high esteem for the free Unices like Linux or the BSDs, there are many goodies in those that I really miss in HP-UX.
One such for instance is the /proc virtual filesystem (which makes retrieval of HW info and online setting of kernel parameters so handy).
Another one is the so called loop device in Linux.
E.g. you can do so neat things like this (provided you have loop device support compiled into your kernel, but most distributed kernels already do):
dd if=/dev/cdrom of=/mnt/iso_store/cd_blabla.iso
mount -t iso9660 -o loop /mnt/iso_store/cd_blabla.iso
Now you roam around in the filesystem of the dd'ed cdrom.
Also you can easily create your own filesystems (this is often done when creating an initial ramdisk)
e.g.
dd if=/dev/zero of=/tmp/my_image bs=1m count=100
mkfs -t ext2 -b 2048 -m0 /tmp/my_image
mount -t ext2 -o loop /tmp/my_image /mnt/tmp1
cd /etc
tar cf - . | (cd /mnt/tmp1; tar xpf -)
umount /mnt/tmp1
cdrecord -v -fs=4m speed=8 dev=?,?,? /tmp/my_image
It would be great to have such loop device in HP-UX.
Maybe there is something similar which I only haven't come accross yet?
Regards
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2003 01:37 PM
тАО05-05-2003 01:37 PM
Re: Is there such thing as a loop device in HP-UX?
Also, has anyone ever tried a Linux based CD image server NFS shared to a HP-UX box? HP seems to have trouble with the loop device even through NFS.
Thanks!
DaveJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2003 01:45 PM
тАО05-05-2003 01:45 PM
Re: Is there such thing as a loop device in HP-UX?
The way that you get process data in HP-UX is via the pstat_XXXX system calls. Man pstat for details.
The /proc filesystem was/is a very useful feature of SVR4 UNIX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 12:12 AM
тАО05-06-2003 12:12 AM
Re: Is there such thing as a loop device in HP-UX?
2)loop file systems (LOFS)- YES , please read
mount_lofs (1m).However,I'm not sure about NFS
export support of such a mounts.BTW,lofs was simulated earlier by NFS loopback mount.
Regards,
Zeev
- Tags:
- LOFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 04:17 AM
тАО05-06-2003 04:17 AM
Re: Is there such thing as a loop device in HP-UX?
Reading abount mount_lofs(1m), I think that it corresponds rather to linux' mount with the --bind option.
A linux loop device, on the other hand, allows you to specify at mount time the file system type (= structure) of the underlying data, which is another thing.
Thanks for the hint anyway - I learned more about the capabilities of HPUX.
-rg-