Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #212389
| From | "Thomas Schmitt" <scdbackup@gmx.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: mount weirdness |
| Date | 2019-08-07 23:30 +0200 |
| Message-ID | <ysBFn-4Im-1@gated-at.bofh.it> (permalink) |
| References | <ysyob-2xo-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi,
i wrote:
> > mount -v /dev/sdc /wa1
> > echo $?
Duh. "/dev/sdb2", not "/dev/sdc".
(Do as i mean, not as i write.)
Dennis Wicks wrote:
> I'll put a note in my fstab so the next time I boot I can find it if the
> mount fails again!
Did i miss the report about some miracle cure beyond the link to /wa11 ?
I did a search for "wa1" in Linux kernel git.
https://github.com/torvalds/linux/search?utf8=%E2%9C%93&q=wa1&type=
The name seems not to be hardcoded there.
So my best guess is that it is mistaken by mount(8) for something other
than a target path.
This opportunity to be mistaken could be excluded by a test program
which uses mount(2).
I tested this program "ts_mount.c":
-------------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <sys/mount.h>
#include <errno.h>
#include <string.h>
int main()
{
int ret;
ret = mount("/dev/sr4", "/mnt/iso", "iso9660", MS_RDONLY, "");
if(ret == 0) {
printf("Success\n");
exit(0);
}
printf("Failed\n");
printf("errno= %d (%s)\n", errno, strerror(errno));
exit(1);
}
-------------------------------------------------------------------------
with a DVD drive by:
cc -g -Wall -o ts_mount ts_mount.c
./ts_mount
As normal user i got
Failed
errno= 1 (Operation not permitted)
and as superuser
Success
Drive noise and listed files confirm the optimistic message.
Without medium i get
Failed
errno= 123 (No medium found)
Have a nice day :)
Thomas
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-05 22:40 +0200
Re: mount weirdness Andrei POPESCU <andreimpopescu@gmail.com> - 2019-08-06 08:10 +0200
Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-06 17:10 +0200
Re: mount weirdness rhkramer@gmail.com - 2019-08-06 17:40 +0200
Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-06 19:40 +0200
Re: mount weirdness Richard Hector <richard@walnut.gen.nz> - 2019-08-06 19:50 +0200
Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-06 20:00 +0200
Re: mount weirdness Richard Hector <richard@walnut.gen.nz> - 2019-08-06 20:20 +0200
Re: mount weirdness Felix Miata <mrmazda@earthlink.net> - 2019-08-06 17:40 +0200
Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-06 19:30 +0200
Re: mount weirdness "Thomas Schmitt" <scdbackup@gmx.net> - 2019-08-06 17:40 +0200
Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-06 19:20 +0200
Re: mount weirdness David Wright <deblis@lionunicorn.co.uk> - 2019-08-06 20:50 +0200
Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-07 19:50 +0200
Re: mount weirdness Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-07 20:00 +0200
Re: mount weirdness David Wright <deblis@lionunicorn.co.uk> - 2019-08-07 22:50 +0200
Re: mount weirdness "Thomas Schmitt" <scdbackup@gmx.net> - 2019-08-06 21:00 +0200
Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-07 20:00 +0200
Re: mount weirdness "Thomas Schmitt" <scdbackup@gmx.net> - 2019-08-07 23:30 +0200
Re: mount weirdness Curt <curty@free.fr> - 2019-08-08 10:20 +0200
Re: mount weirdness Curt <curty@free.fr> - 2019-08-08 10:50 +0200
Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-09 21:20 +0200
Re: mount weirdness "Thomas Schmitt" <scdbackup@gmx.net> - 2019-08-08 12:00 +0200
Re: mount weirdness Curt <curty@free.fr> - 2019-08-08 14:40 +0200
Re: mount weirdness Michael Stone <mstone@debian.org> - 2019-08-08 14:40 +0200
Re: mount weirdness Curt <curty@free.fr> - 2019-08-08 15:00 +0200
Re: mount weirdness David Wright <deblis@lionunicorn.co.uk> - 2019-08-08 16:10 +0200
Re: mount weirdness Michael Stone <mstone@debian.org> - 2019-08-08 17:00 +0200
Re: mount weirdness David Wright <deblis@lionunicorn.co.uk> - 2019-08-08 19:10 +0200
Re: mount weirdness Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-08 19:20 +0200
Re: mount weirdness Michael Stone <mstone@debian.org> - 2019-08-08 20:20 +0200
Re: mount weirdness David Wright <deblis@lionunicorn.co.uk> - 2019-08-09 18:30 +0200
Re: mount weirdness Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-09 19:00 +0200
Re: mount weirdness "Thomas Schmitt" <scdbackup@gmx.net> - 2019-08-09 20:00 +0200
Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-09 22:00 +0200
Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-09 21:20 +0200
csiph-web