Re: [DNG] slashes in FAT file names

2018-12-23 Thread Rick Moen
Quoting Didier Kryn (k...@in2p3.fr):

>   Therefore I wonder how 'find' would do, unless fopen() accepts
> the pathological name, which I doubt of.

I'm pretty sure you're right, because upon reflection and testing 
'find . -inum N' returns a relative pathspec.  Example:

$ cd /tmp
/tmp $ ls -i
139003 access-2008q3.log
138995 access.log 
139004 apache.conf
/tmp $ find . -inum 139003
./access-2008q3.log
/tmp $

So the trick I mentioned is highly useful for a large number of _other_
varieties of pathological filename, such as ones with several control
characters, etc. -- but not for filenames containing one of the two
absolutely forbidden characters (slash and null).

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Website changes

2018-12-23 Thread Olaf Meeuwissen
Hi,

goli...@dyne.org writes:

> Greetings!
>
> Some changes are being made to the Devuan website as a result of recent
> discussions on this list and the dev1galaxy forum.
>
> 1) One user commented that they had no idea which iso to choose.  So
> descriptions of the Devuan isos have been added to:
>
> https://devuan.org/  (mid-page)
> https://devuan.org/get-devuan  (top of the page)
>
> 2) Others found the installation process challenging so thanks to
> chillfan "Visual guides" with screenshots for both a classic install and
> a graphical install can be found below the mirror list on the
> "get-devuan" page. Instructions for disk encryption are linked to and
> back to the the appropriate place in the tutorials:
>
> https://devuan.org/os/documentation/install-guides/install-devuan.html
> https://devuan.org/os/documentation/install-guides/full-disk-encryption.html
> https://devuan.org/os/documentation/install-guides/graphic-install.html
> https://devuan.org/os/documentation/install-guides/graphic-disk-encryption.html
>
> Similar walk-throughs for refractainstaller will soon be added.
>
> So why do they they look different than the rest of the site?   Well, an
> version of these pages was prepared last spring for inclusion on the
> ASCII isos that use the debian-installer and it was just easier to keep
> them in that format.
>
> 3) Finally, an explanation of non-free and contrib will soon be added to
> appropriate page(s).
>
> Cheers!

:+10: ;-)
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Softwarehttps://my.fsf.org/donate
 Join the Free Software Foundation  https://my.fsf.org/join
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] slashes in FAT file names

2018-12-23 Thread Olaf Meeuwissen
Hi Karl,

k...@aspodata.se writes:

> Didier:
> ...
>>   2) there isn't a function in the C library which permits to change
>> the name of a file (or open it), except by giving its whole pathname.
>> Eg. it's not possible to open it from its directory entry.
> ...
>
> man openat
> man renameat

These still require a *pathname*, which is problematic in the case
Hendrik initially described as it contains a `/`.

I'm not sure whether Didier meant absolute or relative pathname but I'm
fairly certain that he was trying to point out that you cannot open or
rename a file using just its inode.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Softwarehttps://my.fsf.org/donate
 Join the Free Software Foundation  https://my.fsf.org/join
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] Website changes

2018-12-23 Thread golinux

Greetings!

Some changes are being made to the Devuan website as a result of recent 
discussions on this list and the dev1galaxy forum.


1) One user commented that they had no idea which iso to choose.  So 
descriptions of the Devuan isos have been added to:


https://devuan.org/  (mid-page)
https://devuan.org/get-devuan  (top of the page)

2) Others found the installation process challenging so thanks to 
chillfan "Visual guides" with screenshots for both a classic install and 
a graphical install can be found below the mirror list on the 
"get-devuan" page. Instructions for disk encryption are linked to and 
back to the the appropriate place in the tutorials:


https://devuan.org/os/documentation/install-guides/install-devuan.html
https://devuan.org/os/documentation/install-guides/full-disk-encryption.html
https://devuan.org/os/documentation/install-guides/graphic-install.html
https://devuan.org/os/documentation/install-guides/graphic-disk-encryption.html

Similar walk-throughs for refractainstaller will soon be added.

So why do they they look different than the rest of the site?   Well, an 
version of these pages was prepared last spring for inclusion on the 
ASCII isos that use the debian-installer and it was just easier to keep 
them in that format.


3) Finally, an explanation of non-free and contrib will soon be added to 
appropriate page(s).


Cheers!

golinux
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] slashes in FAT file names

2018-12-23 Thread Eric Pozharski
On Sat, Dec 22, 2018 at 11:13:55AM -0500, Hendrik Boom wrote:

> Let me thank everyone for their advice;  it looks as if I have enough
> ideas to try out now.  I'll do that when I'm fully awake an report
> back on what worked.
*SKIP*
> > ls -l lists them like this:
> > 
> > -rw-r--r-- 1 hendrik hendrik   0 Sep  1  2007 06 - Track 6.mq3
> > -? ? ?   ? ?? 07/TRA~1.MP3
> > -rw-r--r-- 1 hendrik hendrik 3585716 Sep  1  2007 08-URA~1.MP3
*CUT*

Sorry being late to the party and I have multiple confirmations to
different mails, so these went in one bag.

Yes, kernel somehow constructs i-node numbers from VFAT (which doesn't
have i-node per se).  Thus, in your listing, multiple files with same
i-node -- filesystem is corrupted.

Yes, mtools can manipulate 8.3 FAT names instead of VFAT names.  But, as
we confirmed, filesystem is corrupted -- it won't help either.

If everything fails -- consider magicrescue.

-- 
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] slashes in FAT file names

2018-12-23 Thread karl
Didier:
...
>    2) there isn't a function in the C library which permits to change 
> the name of a file (or open it), except by giving its whole pathname. 
> Eg. it's not possible to open it from its directory entry.
...

man openat
man renameat

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] slashes in FAT file names

2018-12-23 Thread Didier Kryn

Le 22/12/2018 à 07:24, Rick Moen a écrit :

Quoting Hendrik Boom (hend...@topoi.pooq.com):


I have a 32GiB microSD card an am reying to read it on my Devuan system.
I munted it with a simpel mount/dev/sdb1 /nedia/hendrik/

It reads almost everything fine, except for a few files whose names
contain '/' characters.  I can handle the other horribly weird
characters in file names -- emacs Rename in the directory
editor works just fine.  But the names containing '/'s even have
emacs stymied.

Rename them.

1.  'ls -i'   #Gets the inode number.
2.  'find . -inum "inode-number-from-ls -i" -exec mv {} "newfilename" \;'


    Didn't try (because I haven't such filenames), but wonder how it 
would be possible.


  1) it is impossible in Linux to modify a file without access 
permission, and permissions are not associated to the inode but to the 
whole directory tree above.


  2) there isn't a function in the C library which permits to change 
the name of a file (or open it), except by giving its whole pathname. 
Eg. it's not possible to open it from its directory entry.


  Therefore I wonder how 'find' would do, unless fopen() accepts the 
pathological name, which I doubt of.


  Sorry to be so negative. Mount options suggested by others are 
probably a better idea.


        Didier



___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [kato...@freaknet.org: Re: Debugging Devuan .onion/TOR]

2018-12-23 Thread KatolaZ
On Sun, Dec 23, 2018 at 01:39:31PM +0100, Arnt Karlsen wrote:
> On Sun, 23 Dec 2018 12:48:11 +0100, KatolaZ wrote in message 
> <20181223114811.p4u6c3et2vsi4...@katolaz.homeunix.net>:
> 
> > On Sat, Dec 22, 2018 at 11:32:37PM +0100, Arnt Karlsen wrote:
> > > On Sat, 22 Dec 2018 22:23:12 +0100, KatolaZ wrote in message 
> > > <2018112311.yxleukxbnjohj...@katolaz.homeunix.net>:
> > >   
> > > > Sorry, replied to sender instead of list.
> > > > 
> > > > Just to confirm that the onion address seems to be working
> > > > correctly from here now.  
> > > 
> > > ..it still times out on my chrome-thru-tor, "from" 91.219.236.171 
> > > and 199.87.154.255 and 199.249.230.83.
> > >   
> > 
> > Can you please try again now? It looks like some trafic shaping setup
> > was too strict.
> 
> ..now it works ok. 
> 

You are welcome.

HND

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - Devuan -- Freaknet Medialab  ]  
[ "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[   @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[ @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]


signature.asc
Description: PGP signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] slashes in FAT file names

2018-12-23 Thread Hendrik Boom
On Sun, Dec 23, 2018 at 09:45:47AM +0100, Martin Steigerwald wrote:
> Hendrik Boom - 23.12.18, 04:15:
> > On Sun, Dec 23, 2018 at 02:35:35AM +0100, Gonzalo Pérez de Olaguer 
> Córdoba wrote:
> > > Hi Hendrik,
> > > 
> > > El Sat, 22 Dec 2018 18:20:22 -0500
> > > 
> > > Hendrik Boom  escribió:
> > > > > > > Rename them.
> > > > > > > 
> > > > > > > 1.  'ls -i'   #Gets the inode number.
> > > > > > > 2.  'find . -inum "inode-number-from-ls -i" -exec mv {}
> > > > > > > "newfilename" \;'> > 
> > > > Yes, I see inode numbers.  Unfortunately, the files with slashes
> > > > in
> > > > their names have question marks for their inode numbers.
> > > > 
> > > > 2522 @  2523 ?  2526 ?? 07/TRA~1.MP3  
> > > > 2516
> > > 
> > > You don't have to use inodes at all. Anything provided by find to
> > > match the file will do. For example, try something like:
> > > 
> > > find . -type f -iname '07*TRA*MP3' -exec ...
> > 
> > I'm starting to think the way to go about this is to use a utility
> > that bypasses the kernel's VFAT file system and treats /dev/sdb1 as a
> > block device.  A few have been suggested.  Maybe a hex editor.  Maybe
> > fsck.vfat.  Maybe mtools, possibly modified since the documentation
> > https://www.gnu.org/software/mtools/manual/mtools.html#default-values
> > says:
> 
> Well mtools act directly on an FAT filesystem and do not use the vfat/
> msdos filesystem drivers in Linux. It has the "mren" command to rename 
> files.
> 
> However I still assume that this FAT filesystem is just corrupted and 
> that maybe not even mtools is able to do the rename.
> 
> What I'd do is:
> 
> First copy the whole block device with the filesystem block by block into 
> a file.

Already did that.

> Then make a copy of that file. Only work from the copy of the file.

That's actually a good idea -- thanks.  I hadn't thought of that.  I'll 
dig up some extra storage somewhere.  Don't have space on the laptop 
SSD for a second 32014073856-byte file.

> 
> Then you can throw 'mren', 'fsck.vfat' / 'fsck.msdos', use a hex editor, 
> or well just 'photorec' on it. And due to working with a copy of the 
> copy you have unlimited attempts.
> 
> Thanks,
> -- 
> Martin
> 
> 
> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [kato...@freaknet.org: Re: Debugging Devuan .onion/TOR]

2018-12-23 Thread Arnt Karlsen
On Sun, 23 Dec 2018 12:48:11 +0100, KatolaZ wrote in message 
<20181223114811.p4u6c3et2vsi4...@katolaz.homeunix.net>:

> On Sat, Dec 22, 2018 at 11:32:37PM +0100, Arnt Karlsen wrote:
> > On Sat, 22 Dec 2018 22:23:12 +0100, KatolaZ wrote in message 
> > <2018112311.yxleukxbnjohj...@katolaz.homeunix.net>:
> >   
> > > Sorry, replied to sender instead of list.
> > > 
> > > Just to confirm that the onion address seems to be working
> > > correctly from here now.  
> > 
> > ..it still times out on my chrome-thru-tor, "from" 91.219.236.171 
> > and 199.87.154.255 and 199.249.230.83.
> >   
> 
> Can you please try again now? It looks like some trafic shaping setup
> was too strict.

..now it works ok. 

-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [kato...@freaknet.org: Re: Debugging Devuan .onion/TOR]

2018-12-23 Thread KatolaZ
On Sat, Dec 22, 2018 at 11:32:37PM +0100, Arnt Karlsen wrote:
> On Sat, 22 Dec 2018 22:23:12 +0100, KatolaZ wrote in message 
> <2018112311.yxleukxbnjohj...@katolaz.homeunix.net>:
> 
> > Sorry, replied to sender instead of list.
> > 
> > Just to confirm that the onion address seems to be working correctly
> > from here now.
> 
> ..it still times out on my chrome-thru-tor, "from" 91.219.236.171 
> and 199.87.154.255 and 199.249.230.83.
> 

Can you please try again now? It looks like some trafic shaping setup
was too strict.

HND

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - Devuan -- Freaknet Medialab  ]  
[ "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[   @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[ @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]


signature.asc
Description: PGP signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Multiple problems with upgrade

2018-12-23 Thread KatolaZ
On Sat, Dec 22, 2018 at 07:32:46PM -0700, Se7en wrote:
> To whom it may concern,
> 
> I have had many issues with an upgrade from Jessie to ASCII, and have voiced
> my complaints in IRC. Some of these issues are also reported in Debian Proper
> with no proposed solutions. I feel the need to voice them.
> 
> First issue (Reported in Debian): X11 doesn't start up without root
> permissions. The issue is reported at
>  and the solution is a
> work-around to change a conf file to run as root.

Please have a look at the ascii release notes:

  https://files.devuan.org/devuan_ascii/Release_notes.txt

look for " - Starting X from a terminal".

HND

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - Devuan -- Freaknet Medialab  ]  
[ "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[   @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[ @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]


signature.asc
Description: PGP signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] slashes in FAT file names

2018-12-23 Thread Martin Steigerwald
Hendrik Boom - 23.12.18, 04:15:
> On Sun, Dec 23, 2018 at 02:35:35AM +0100, Gonzalo Pérez de Olaguer 
Córdoba wrote:
> > Hi Hendrik,
> > 
> > El Sat, 22 Dec 2018 18:20:22 -0500
> > 
> > Hendrik Boom  escribió:
> > > > > > Rename them.
> > > > > > 
> > > > > > 1.  'ls -i'   #Gets the inode number.
> > > > > > 2.  'find . -inum "inode-number-from-ls -i" -exec mv {}
> > > > > > "newfilename" \;'> > 
> > > Yes, I see inode numbers.  Unfortunately, the files with slashes
> > > in
> > > their names have question marks for their inode numbers.
> > > 
> > > 2522 @  2523 ?  2526 ?? 07/TRA~1.MP3  
> > > 2516
> > 
> > You don't have to use inodes at all. Anything provided by find to
> > match the file will do. For example, try something like:
> > 
> > find . -type f -iname '07*TRA*MP3' -exec ...
> 
> I'm starting to think the way to go about this is to use a utility
> that bypasses the kernel's VFAT file system and treats /dev/sdb1 as a
> block device.  A few have been suggested.  Maybe a hex editor.  Maybe
> fsck.vfat.  Maybe mtools, possibly modified since the documentation
> https://www.gnu.org/software/mtools/manual/mtools.html#default-values
> says:

Well mtools act directly on an FAT filesystem and do not use the vfat/
msdos filesystem drivers in Linux. It has the "mren" command to rename 
files.

However I still assume that this FAT filesystem is just corrupted and 
that maybe not even mtools is able to do the rename.

What I'd do is:

First copy the whole block device with the filesystem block by block into 
a file. Then make a copy of that file. Only work from the copy of the file.

Then you can throw 'mren', 'fsck.vfat' / 'fsck.msdos', use a hex editor, 
or well just 'photorec' on it. And due to working with a copy of the 
copy you have unlimited attempts.

Thanks,
-- 
Martin


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Multiple problems with upgrade

2018-12-23 Thread Arnt Karlsen
On Sat, 22 Dec 2018 19:32:46 -0700, Se7en wrote in message 
<20181223023245.6jirxk6nvs7qjgx7@lappy.thinkpad>:

> To whom it may concern,
> 
> I have had many issues with an upgrade from Jessie to ASCII, and have
> voiced my complaints in IRC. Some of these issues are also reported
> in Debian Proper with no proposed solutions. I feel the need to voice
> them.
> 
> First issue (Reported in Debian): X11 doesn't start up without root
> permissions. The issue is reported at
>  and the solution is
> a work-around to change a conf file to run as root.

..drop the sudo, log in as whatever user you use, and issue 'startx ',
if that fails, 'less /var/log/Xorg.0.log ' and dmesg tells you how and
(often why) it failed.

> Second issue: Torsocks does not work for several applications, notably
> fetchmail. I do not know if this is an issue with Devuan or Torsocks.
> It gives a permission denied error. Specific error is sh:
> 1: /usr/bin/procmail: Operation not permitted. It exits status 6.

..logs?  

> This is also an issue with mutt. Torifying mutt produces
> "mutt_dotlock: operation not permited".

..anyone?  

> Third issue: My loopback address is not automatically brought up. I
> have to run `ifconfig lo up` on every boot. Attachment is
> my /etc/network/interfaces

..which has "source /etc/network/interfaces.d/* " in it.

..try comment it out (# source /etc/network/interfaces.d/* ) and 
then restart the way you usually restart things.

..if that fails, show us your /etc/network/interfaces.d/* .


> Fourth issue: My swap space is not correct. I had to fiddle with it,
> and am unable to correct it. I use LUKS+Cryptswap. I used the Jessie
> guided paritioner and it worked well before the upgrade.

..failing hardware messing up your install?

> There are more issues I can not recall at this moment. I am very
> upset that there are no solutions to this problem. Does anyone know
> what is happening?

..generally, you wanna do one post per issue, unless you suspect you
have a _chain_ of failures causing the next issues...

-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng