Re: Mounting a file as a filesystem
Hamish Moffatt writes: Dale Scheetz [EMAIL PROTECTED] writes: This may be true (most probably is) but mkisofs is the tool I know about from personal experience. How would I create an ext2fs in a file? Wouldn't it still need to be a ro file system? You use losetup to make the loop, then make the fs, and then mount it. See the losetup(8) man page for details. And no, it wouldn't be ro. Although you need to make a file of the desired size first so you have something to losetup. eg for 10mb file system, dd if=/dev/zero of=file bs=1k count=10240 losetup /dev/loop0 file mke2fs /dev/loop0 mount -t ext2 /dev/loop0 /mnt For all that I know about Linux, here comes along a new feature to fasinate me 8-) -- -= Sent by Debian Linux =- Thomas Kocourek KD4CIK [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
Dale Scheetz said: If you use loop devices at all you will certainly want more than one. My system has loop0 thru loop7. As does mine. 'MAKEDEV loop' creates them all (at least, it did on my Debian 1.1 system). This would allow your mount to look like: mount -o loop=/dev/loop2 -t ext2 /path/to/file /mount/point That works too. My way (mount -o loop -t ext2 ...) make mount choose the first available loop device. If you need to know which specific loop device is being used, Dale's way is better. -- Scott Barker Linux Consultant [EMAIL PROTECTED] http://www.cuug.ab.ca:8001/~barkers/ (under construction) [ I try to reply to all e-mail within 3 days. If you don't ] [ get a response by then, I probably didn't get your e-mail. ] [ Unsolicited commercial and junk e-mail will be proof-read for US$100 ] A man sometimes devotes his life to a desire which he is not sure will ever be fulfilled. Those who laugh at this folly are, after all, no more than mere spectators of life. - Ryunosuke Akutagawa -- This message was delayed because the list mail delivery agent was down. From miss Received: from mongo.pixar.com (138.72.50.60) by master.debian.org with SMTP; 7 Dec 1996 00:48:52 - Received: (qmail 10885 invoked from network); 7 Dec 1996 00:32:40 - Received: from softdnserror (HELO master.debian.org) ([EMAIL PROTECTED]) by mongo.pixar.com with SMTP; 7 Dec 1996 00:31:27 - Date: Fri, 6 Dec 1996 19:29:35 -0500 (EST) Sender: Greg Smith [EMAIL PROTECTED] From: Greg Smith [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] To: debian-user@lists.debian.org Subject: Wine, sources of other debian packages In-Reply-To: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: XX_IU1.0.Hh3.avBgo@master.debian.org Resent-From: debian-user@lists.debian.org Resent-Reply-To: debian-user@lists.debian.org X-Mailing-List: debian-user@lists.debian.org archive/latest/969 X-Loop: debian-user@lists.debian.org Precedence: list Priority: non-urgent Importance: low Resent-Sender: [EMAIL PROTECTED] With the discusion of Wine, I was wondering if a Wine package was in the works? Also, are there any other good sources of .deb packages other than ftp.debian.org and its mirrors. I'm thinking of stuff too new/experimental to even put in unstable. Or maybe non-free/demo packages companies didn't want in non-free. Thanks, Greg -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
Dale Scheetz [EMAIL PROTECTED] writes: This may be true (most probably is) but mkisofs is the tool I know about from personal experience. How would I create an ext2fs in a file? Wouldn't it still need to be a ro file system? You use losetup to make the loop, then make the fs, and then mount it. See the losetup(8) man page for details. And no, it wouldn't be ro. Although you need to make a file of the desired size first so you have something to losetup. eg for 10mb file system, dd if=/dev/zero of=file bs=1k count=10240 losetup /dev/loop0 file mke2fs /dev/loop0 mount -t ext2 /dev/loop0 /mnt Hamish -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Mounting a file as a filesystem
Hi all, I have two disks on my PC, hda=127 MB and hdb=1.6 GB. I am using hda for Debian, hdb is Win95. I installed Debian on hda as a test and promptly fell in love with it. Unfortunately I earn my living developing for Win 3.x/Win 95 and so cannot easily repartition my main disk. I heard some noise on this list about setting being able to mount a file as a filesystem. I would like to know how I can create say a 200MB file on hdb (Win 95) and mount it as a filesystem on say /usr. Is this possible? What do I need to do it? | [EMAIL PROTECTED] | Simon Martin | Old software engineers never die, | they just fail to boot | | Any Trademarks used in this document are recognized | as Registered Trademarks of their respective owners. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
On Thu, 5 Dec 1996, Simon Martin wrote: I installed Debian on hda as a test and promptly fell in love with it. Unfortunately I earn my living developing for Win 3.x/Win 95 and so cannot easily repartition my main disk. I heard some noise on this list about setting being able to mount a file as a filesystem. I would like to know how I can create say a 200MB file on hdb (Win 95) and mount it as a filesystem on say /usr. Doesn't sound like a good idea to use a mounted file as a Linux file system. Nothing compares to a real ext2 file system. ;-) If i were you i'd rather repartition by using FIPS-1.5 which does no harm to your existing data. You can get the most recent information and version at it's homepage at http://www.student.informatik.th-darmstadt.de/~schaefer/fips.html;. I think Debian distributions normally provide FIPS but not the most recent version with all (minor) bugfixes included. I regularily use FIPS for splitting harddisk partitions (20 times so far) and never managed to get data destroyed on any up to now. FIPS is a very secure tool and makes it possible to undo a partiton splitting without doing harm to the data on it. Works well with Win95 vfat file systems. Regards, P. *8^) -- Paul Seelig [EMAIL PROTECTED] African Music Archive - Institute for Ethnology and Africa Studies Johannes Gutenberg-University - Forum 6 - 55099 Mainz/Germany Our AMA Homepage in the WWW at http://www.uni-mainz.de/~bender/ -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
On Thu, 5 Dec 1996, Simon Martin wrote: Hi all, I have two disks on my PC, hda=127 MB and hdb=1.6 GB. I am using hda for Debian, hdb is Win95. I installed Debian on hda as a test and promptly fell in love with it. Unfortunately I earn my living developing for Win 3.x/Win 95 and so cannot easily repartition my main disk. I heard some noise on this list about setting being able to mount a file as a filesystem. I would like to know how I can create say a 200MB file on hdb (Win 95) and mount it as a filesystem on say /usr. Is this possible? What do I need to do it? You can create an iso9660 read only file system image file with mkisofs on your win95 partition and then mount it with the loop device. You will need loop support in your kernel. Luck, Dwarf -- aka Dale Scheetz Phone: 1 (904) 877-0257 Flexible Software Fax: NONE Black Creek Critters e-mail: [EMAIL PROTECTED] If you don't see what you want, just ask -- -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
a filesystem. I would like to know how I can create say a 200MB file on hdb (Win 95) and mount it as a filesystem on say /usr. Is this possible? What do I need to do it? You can create an iso9660 read only file system image file with mkisofs on your win95 partition and then mount it with the loop device. You will need loop support in your kernel. why iso9660, especially since you say it's readonly? You can put any file system (AFAIK) in the loopback, so ext2fs should be no problem. Performance might not be so hot but acceptable. hamish -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
Partition Magic will repartition a DOS or win95 volume without destroying data. It is also very easy to use. On Thu, 5 Dec 1996, Simon Martin wrote: Hi all, I have two disks on my PC, hda=127 MB and hdb=1.6 GB. I am using hda for Debian, hdb is Win95. I installed Debian on hda as a test and promptly fell in love with it. Unfortunately I earn my living developing for Win 3.x/Win 95 and so cannot easily repartition my main disk. I heard some noise on this list about setting being able to mount a file as a filesystem. I would like to know how I can create say a 200MB file on hdb (Win 95) and mount it as a filesystem on say /usr. Is this possible? What do I need to do it? | [EMAIL PROTECTED] | Simon Martin | Old software engineers never die, | they just fail to boot | | Any Trademarks used in this document are recognized | as Registered Trademarks of their respective owners. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] - Mike Schmitz [EMAIL PROTECTED]http://www.bend-or.com/~mschmitz Don't blame me - I voted libertarian!http://www.lp.org/ Use Debian Linux - the free Gnu/Linuxhttp://www.debian.org/ - -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
On Fri, 6 Dec 1996, Paul Seelig wrote: I think Debian distributions normally provide FIPS but not the most recent version with all (minor) bugfixes included. I regularily use FIPS for splitting harddisk partitions (20 times so far) and never managed to get data destroyed on any up to now. FIPS is a very secure tool and makes it possible to undo a partiton splitting without doing harm to the data on it. Works well with Win95 vfat file systems. Just out of curiousity... does fips work with an NT file system as well? Nick -- Nick Busigin Sent from my Debian/GNU Linux Machine[EMAIL PROTECTED] To obtain my pgp public key, email me with the subject: get pgp-key -- -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
On Fri, 6 Dec 1996, Nick Busigin wrote: data destroyed on any up to now. FIPS is a very secure tool and makes it possible to undo a partiton splitting without doing harm to the data on it. Works well with Win95 vfat file systems. Just out of curiousity... does fips work with an NT file system as well? As far as i have understood it from reading it's documentation it can only split DOS/VFAT and nothing more. I remember that it stated something about OS/2 but don't know. Check out the website i posted earlier. It will answer all your questions sufficiently. Or download FIPS and read the accompanying texts. Regards, P. *8^) -- Paul Seelig [EMAIL PROTECTED] African Music Archive - Institute for Ethnology and Africa Studies Johannes Gutenberg-University - Forum 6 - 55099 Mainz/Germany Our WWW pages to be visited at http://www.uni-mainz.de/~bender; -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Mounting a file as a filesystem
Hi all, Thanks for the suggestions. I dowloaded FIPS and used it to repartition my hard disk. I haven't found any problems yet. Thanks Simon -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
Dale Scheetz [EMAIL PROTECTED] writes: This may be true (most probably is) but mkisofs is the tool I know about from personal experience. How would I create an ext2fs in a file? Wouldn't it still need to be a ro file system? You use losetup to make the loop, then make the fs, and then mount it. See the losetup(8) man page for details. And no, it wouldn't be ro. Guy -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
On Fri, 6 Dec 1996, Hamish Moffatt wrote: a filesystem. I would like to know how I can create say a 200MB file on hdb (Win 95) and mount it as a filesystem on say /usr. Is this possible? What do I need to do it? You can create an iso9660 read only file system image file with mkisofs on your win95 partition and then mount it with the loop device. You will need loop support in your kernel. why iso9660, especially since you say it's readonly? You can put any file system (AFAIK) in the loopback, so ext2fs should be no problem. Performance might not be so hot but acceptable. This may be true (most probably is) but mkisofs is the tool I know about from personal experience. How would I create an ext2fs in a file? Wouldn't it still need to be a ro file system? Thanks, Dwarf -- aka Dale Scheetz Phone: 1 (904) 877-0257 Flexible Software Fax: NONE Black Creek Critters e-mail: [EMAIL PROTECTED] If you don't see what you want, just ask -- -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
Dale Scheetz said: This may be true (most probably is) but mkisofs is the tool I know about from personal experience. How would I create an ext2fs in a file? Wouldn't it still need to be a ro file system? dd if=/dev/zero of=/path/to/file bs=1k count=size mke2fs /path/to/file size mount -t ext2 /path/to/file /mount/point That should do it. No need for a ro file system, especially if you want to be able to write things to it! -- Scott Barker Linux Consultant [EMAIL PROTECTED] http://www.cuug.ab.ca:8001/~barkers/ (under construction) [ I try to reply to all e-mail within 3 days. If you don't ] [ get a response by then, I probably didn't get your e-mail. ] [ Unsolicited commercial and junk e-mail will be proof-read for US$100 ] Knowing how things work is the basis for appreciation, and is thus a source of civilized delight. - William Safire -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
The loop device is pretty nifty. I use it to maintain a root-disk image used on a special-purpose diskless machine. To make changes to the root disk, i mount the image, update the FS, unmount it, compress it, and copy the compressed file to a floppy. Then i can bootstrap the system from that new and improved compressed root disk. This works great, except for one annoying detail. After some amount of editing the root fs in the file, the mount count exceeds the routine fsck threshold, and the next time i commit the image to my root floppy and boot off it, the system complains when mounting the file system: maximum mount count exceeded or something like that. So my question is this: how do i fsck the filesystem in a file? TIA Sebastian Kuzminsky [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
Scott Barker said: mount -t ext2 /path/to/file /mount/point oops. That should be mount -o loop -t ext2 /path/to/file /mount/point And, don't forget to make sure that the loop devices have been created: cd /dev ./MAKEDEV loop -- Scott Barker Linux Consultant [EMAIL PROTECTED] http://www.cuug.ab.ca:8001/~barkers/ (under construction) [ I try to reply to all e-mail within 3 days. If you don't ] [ get a response by then, I probably didn't get your e-mail. ] [ Unsolicited commercial and junk e-mail will be proof-read for US$100 ] The ideal situation is to have real computing power close at hand - right at home. Something that dims streetlights and shrinks the picture on the neighbors TV when you crank it up. - Unknown -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
Sebastian Kuzminsky [EMAIL PROTECTED] writes: So my question is this: how do i fsck the filesystem in a file? Use losetup(8) to associate the loop device with a file first, then fsck, and then mount. losetup /dev/loop0 /the/loopback/file fsck -t ext2 /dev/loop0 mount -t ext2 /dev/loop0 /mnt Guy -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
On Fri, 6 Dec 1996, Scott Barker wrote: Scott Barker said: mount -t ext2 /path/to/file /mount/point oops. That should be mount -o loop -t ext2 /path/to/file /mount/point And, don't forget to make sure that the loop devices have been created: cd /dev ./MAKEDEV loop If you use loop devices at all you will certainly want more than one. My system has loop0 thru loop7. This would allow your mount to look like: mount -o loop=/dev/loop2 -t ext2 /path/to/file /mount/point Luck, Dwarf -- aka Dale Scheetz Phone: 1 (904) 877-0257 Flexible Software Fax: NONE Black Creek Critters e-mail: [EMAIL PROTECTED] If you don't see what you want, just ask -- -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Mounting a file as a filesystem
Sebastian Kuzminsky [EMAIL PROTECTED] writes: ]So my question is this: how do i fsck the filesystem in a file? Guy Maor [EMAIL PROTECTED] wrote: ] Use losetup(8) to associate the loop device with a file first, then ] fsck, and then mount. ] ] losetup /dev/loop0 /the/loopback/file ] fsck -t ext2 /dev/loop0 ] mount -t ext2 /dev/loop0 /mnt Oh yeah, that makes perfect sense. Thanks! -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]