It seems like modifications to a loopback mounted file are only in memory.
How do I flush them to the mounted file?
# mount -t msdos -o loop pqdiboot.img /mnt
# ls /mnt
aspi8dos.sys aspicd.sys autoexec.bat command.com delscpt.txt io.sys
msdos.sys
aspi8u2.sys atapicd.sys choice.com config.sys himem.sys
mscdex.exe taisatap.sys
# md5sum /mnt/autoexec.bat
c5204d8e68d8ad6c714df02584d0b5d3 /mnt/autoexec.bat
# vi /mnt/autoexec.bat (modify, save, exit)
# umount /mnt
# mount -t msdos -o loop pqdiboot.img /mnt
# md5sum /mnt/autoexec.bat
ac12a4b88ad43f1023806fb620475edb /mnt/autoexec.bat
inspection of the file reveals that the file hasn't been modified.
I have used this method before; I don't know what's different this time.
Other info:
# mount |grep loop (when image is mounted)
/home/akeck/cdimage/MWCD/pqdiboot.img on /mnt type msdos
(rw,loop=/dev/loop0)
# uname -a
Linux yupa 2.4.17 #6 SMP Sun Jan 20 23:27:42 EST 2002 i686 unknown
Msdos and loopback device support is compiled into the kernel.
floppy image is 1.44mb
Please help: dd'ing to disk, modifying with vi/mtools, then dd'ing back to
file is getting really old ;)
-Adam
"lingua machinationis creo, ergo sum"
_____________________________________________
Adam Keck The Mathworks
Natick, Ma
www.mathworks.com
FreeNIX/Backup/Unix Administrator
_____________________________________________
Hi all. I'm lost trying to install suse 7.2 on a P166 with an ELSA GLoria vid card.
I'm getting quite experienced with the different xfree setup utilities.
When I was installing the software, I couldn't get past the video test and could
only install text mode.
If I use xf86config and use the vga16 driver, I can get into X, but all I see is the
background color, and the only way out is ctrl-alt-back. I had to manually edit
/etc/XF86Config to get rid of the 800X600 virtual screen and force it to 640X480. I
did that so I could use sax without it going offscreen and out of reach of my
mouse.
Oh yeah, sax wasn't able to do the job, and sax2 told me I was using XFree v.3
and promised to install v.4, but it just hung totally - blank screen, hit the reset
button to reboot.
Using XF86Setup, I was able to install the XF86_3DLabs server (the right one)
and can now get as far as the KDE desktop starting to open. It hangs when it's
checking peripherals. Does that mean that some hardware is not set up
properly, and if so, how do I find out which it is?
Many thanks if anyone can point me in the right direction.
Greg
Anyone play with these things (and associated Perl/php tools)? I just got
4 of 'em from a local Radio Shack for free. My coworkers and I are about
to attempt to setup a backup tape tracking system with them. I was
wondering if anyone had any comments on them.
-Adam
"lingua machinationis creo, ergo sum"
_____________________________________________
Adam Keck The Mathworks
508-647-7298 Natick, Ma
www.mathworks.com
FreeNIX/Backup/Unix Administrator
_____________________________________________
How do I report a bug (or at least ask for help) in a newer kernel?
(The gory details are below, if you are interested.) I sent some
email to a developer whose name I found in the suspect source, but I
did not get any response. Any suggestions?
TIA,
Bill
****************************************************************
Date: Fri, 25 Jan 2002 14:40:01 -0500 (EST)
From: Bill Mills-Curran <Mills-Curran_Bill(a)emc.com>
To: claus(a)momo.math.rwth-aachen.de
Subject: nfs readdir bug?
Claus,
I am reporting a bug that I suspect is in nfs readdir. I am reporting
it to you, because I found your email address in the source. If this
is wrong, please tell me.
Symptom: Several programs (details below) do not read the contents of
an nfs-mounted directory. There is no indicated failure -- there just
is no data. The nfs server is DG/UX. The nfs client is linux, kernel
version 2.4.16. The problem does not show up with the 2.4.2 kernel
(RedHat 7.1 dist.) or on nfs systems from a SUN server.
Note: We are using reiserfs on an array which is locally mounted to
the linux host. The hardware is: DG (Data General) Aviion 8900 4
cpu, 500 MHz.
strace note: I ran strace on my program. It reported that getdents64
function was finding the right number of directory entries.
****************
These operations/programs fail to read a directory. In all cases, the
OS is linux 2.4.16 and the filesystem is served by DG/UX. All
directories (that I tested) on the filesystem have the problem.
tcsh file completion (using the tab key)
readdir in Perl
readdir in my own test program (included below)
****************
These operations work with the 2.4.16 kernel.
All operations on other filesystems, nfs (SUN server) and local
The "ls" command works everywhere
Thanks for your time.
Bill Mills-Curran
--
Bill Mills-Curran Mills-Curran_Bill(a)emc.com
EMC Corporation Tel: 508 382-7642
Coslin Drive, MS C33 Fax: 508 382-7913
Southboro, MA 01772
****************************************************************
Here's the source for my test program:
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
int main(int argc, char *argv[]) {
DIR *dir;
struct dirent *dirent;
printf("Reading %s\n", argv[1]);
dir = opendir(argv[1]);
while((dirent = readdir(dir))) {
printf("%s\n", dirent->d_name);
}
return (0);
}
Actually it does. I tried /bin/false and it fails to setup the ssh
connection properly. I guess the shell will let sftp only run specific sftp
commands, anything else causes it to exit.
-----Original Message-----
From: Scott Venier [mailto:scottven@umich.edu]
Sent: Wednesday, January 30, 2002 10:58 AM
To: wlug(a)mail.wlug.org
Subject: Re: [Wlug] ssh-dummy-shell for OpenSSH???
does the ssh-dummy-shell have to actually do anything for sFTP to work, or
does it just have to be in /etc/shells? If it just has to be in
/etc/shells, /bin/false works. Been using that for years for
(non-s)FTP-only accounts.
Scott
On Wed, 30 Jan 2002, Keller, Tim wrote:
> I'm setting up a test environment using OpenSSH built in sFTP server.
What
> I want to-do is build a chroot environment where people can connect to the
> machine via sFTP but not via SSH.
>
> I know with the commercial version of SSH they have ssh-dummy-shell which
> when you try to connect via SSH just bails on you, but lets sFTP work
> properly.
>
> I've done some digging on the web and I haven't found anything that'll
> replace this functionality on the OpenSSH side of things.
>
> Anybody got any ideas/links of an open source version of ssh-dummy-shell.
>
> Thanks,
> Tim.
> _______________________________________________
> Wlug mailing list
> Wlug(a)mail.wlug.org
> http://mail.wlug.org/mailman/listinfo/wlug
>
_______________________________________________
Wlug mailing list
Wlug(a)mail.wlug.org
http://mail.wlug.org/mailman/listinfo/wlug
I'm setting up a test environment using OpenSSH built in sFTP server. What
I want to-do is build a chroot environment where people can connect to the
machine via sFTP but not via SSH.
I know with the commercial version of SSH they have ssh-dummy-shell which
when you try to connect via SSH just bails on you, but lets sFTP work
properly.
I've done some digging on the web and I haven't found anything that'll
replace this functionality on the OpenSSH side of things.
Anybody got any ideas/links of an open source version of ssh-dummy-shell.
Thanks,
Tim.
Hi all
A few meeting back, Andy gave out some BBC-Linux cd's. I decided to
try one and got hung up.
Basically everything went well until I got to the stage of downloading
stuff from the net (the network card set-up worked fine).
The download hung. It defaulted to the address 64.81.65.8 for zork.net
where the stuff was supposed to be. I suspected that zork.net had
moved so I went to another box and went to it via netscape. It came up
ok (the directory structure was slightly different but the files
were there).
The problem is that the BBC script needs a dotted quad, not a zork.net.
So the problem is to find out the dotted quad for zork.net.
I tried ping zork.net and it pinged 66.92.188.166. I then went there and
got crackmonkey.org. I tried pinging crackmonkey.org and got that same
66.92.188.166 I got pinging zork.net ! arp zork.net and crackmonkey.org
also gives that same common dotted quad. Ping of the BBC default
address 64.81.65.8 gives nothing.
Unlike Netscape, Konquerer will take dotted quads. The 66.92.188.166
comes
up crackmonkey.org consistent with the preceding while 64.81.65.8
gives the error message "could not connect to host 64.81.65.8".
My question, then, is how does one get a dotted quad for zork.net?
A related question is whether anyone tried/succeeded loading Debian
starting with that BBC-linux cd? i.e. can it be done? (The README-DEBIAN
on the cd gives alternative sites but none of them has the -bbc versions
of the image and tarball the install script is looking for. I admit to
not wanting to go down the path of redoing the install scripts :-( )
This email sure did not please the spell-checker! :-)
doug
I saw this on Freshmeat.net and thought i would take a look at it. i like
it so far... i thought others might be interested.
http://www.webmin.com
in a nutshell, it's an admin tool that works through your favorite web
browser.
--
William Smith wsmith(a)chezsmith.com
Fall River, MA http://www.chezsmith.com