-
Junior Member
Text-mode mounting of NTFS volume causes XAUTHORITY error
I often boot to Knoppix 2 (the command-line). Up through Knoppix 6, I always mounted an NTFS volume first thing after getting to the command prompt:
Code:
mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1 -t ntfs -v -o noatime,utf8
Now, in Knoppix 7.0.5, on both the CD and DVD versions, I get the following error after attempting the mount:
Code:
No access to local display (XAUTHORITY=), exiting.
Booting to the Knoppix GUI and performing the same commands from a terminal window works, but I can't see why I can't mount NTFS without the GUI. Am I missing something?
-
Senior Member
registered user
Just a question: Would it help if you first booted X, and from there ran init 2? (I wonder if that Xauthority stuff has ever been really sane.)
Could seem like a bug to me, if the behavior is reproducible, in particular if it is fixed by bringing X up and down.
BTW, if you do this same mounting every time, you might put it in rc.local - that's what I ususally do.
-
Junior Member
After testing, I can confirm that the error occurs whenever I boot "knoppix 2", but never when I boot into the GUI, even after running "init 2" from a root terminal in the GUI. I expected "init 2" to close the GUI and kick me back to text mode (same as "knoppix 2"), but it didn't and had no visible effect whatsoever. I'm not convinced that "init 2" breaks XAUTHORITY after the GUI has already started. For now, I'm booting to the GUI and doing my business in a root terminal window. I would still love to get this fixed in text mode.
As far as automating my mounts, I run Knoppix from a DVD in various Windows boxes that I maintain. So that is not an option for me, thanks though.
-
Senior Member
registered user
At least, the old trick CTRL-ALT-F2 and CTRL-ALT-F5 works for switching back and forth between console and GUI.
But the whole problem definitely displays a type of bug.
Automating mounts: You could, of course do a remastering. If there is a workaround for this bug, remastering a patched DVD-version could be the best solution for you, in which case you could throw in any number of customizations.
-
Junior Member
Originally Posted by
Capricorny
At least, the old trick CTRL-ALT-F2 and CTRL-ALT-F5 works for switching back and forth between console and GUI.
But the whole problem definitely displays a type of bug.
Automating mounts: You could, of course do a remastering. If there is a workaround for this bug, remastering a patched DVD-version could be the best solution for you, in which case you could throw in any number of customizations.
Agreed on all counts. Thanks for your help, Capricorny! Instead of remastering I've considered installing Knoppix to a USB thumb drive and customizing that. With that, I can still boot to it on multiple computers with different hardware configurations, just as I do with the DVD, right?
-
Senior Member
registered user
Booting different devices/configurations, surely yes. And using a USB drive with persistent store, you can tweak most settings without remastering. Myself, I have started to use a USB3 cabinet mounted SSD drive as kind of "generalized thuimb drive" - with proper USB3 ports, it gives performance close to an internat SATA disk, so I can use it for both maintenance/emergency work, backup and ordinary running.
-
Junior Member
Update: I have solved my NTFS mounting troubles by switching to Debian Live Rescue.
-
Junior Member
registered user
Repaired
Originally Posted by
voidxor
I often boot to Knoppix 2 (the command-line). Up through Knoppix 6, I always mounted an NTFS volume first thing after getting to the command prompt:
Code:
mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1 -t ntfs -v -o noatime,utf8
Now, in Knoppix 7.0.5, on both the CD and DVD versions, I get the following error after attempting the mount:
Code:
No access to local display (XAUTHORITY=), exiting.
Booting to the Knoppix GUI and performing the same commands from a terminal window works, but I can't see why I can't mount NTFS without the GUI. Am I missing something?
It's a bug. The wrapper script checks for a hibernating NTFS partition, which is dangerous to mount rw, since Windows will destroy data when waking up and ignoring all changes you made.
In X mode, a graphical dialog will offer a few options in order to decide what to do next, while in textmode, it should just exit with an error message unless you specify the mount options manually. Unfortunately, the hadling of XAUTHORITY etc. was prior to checking for textmode, so it didn't work anymore on the console.
Please install the fixed package from http://debian-knoppix.alioth.debian....mount-knoppix/ , or just call
ntfs-3g.real instead.
Regards
-Klaus
-
Just experienced this error with 7.2.0 CD version when trying to mount an NTFS partition read-only (-o ro) in text mode.
Is this a different problem, or has the fix not made it into the latest release?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Lenovo IdeaPad 5i Slim 5 16IRL8 16" (512GB SSD, Intel Core i5-1335U, 1.30GHz,...
$469.00
~LIMITED TIME OFFER~ 14" Lenovo ThinkPad Laptop: Intel i5 QC Windows 11 FHD
$199.97
For Lenovo ideapad 5 15IIL05 15ARE05 15ITL05 15ALC05 Lcd Back Cover Rear Lid NEW
$49.98
Lenovo 500w Gen 3 Laptop, 11.6" IPS Glass, N6000, 8GB, 128GB SSD, Win 11 Home
$186.99
Lenovo Ideapad 1i 15.6" FHD Notebook Intel Core i5-1235U 8GB RAM 256GB SSD
$339.99
Lenovo IP 5 16IAU7 16" 2.5K Chromebook i3-1215U 8GB Ram 128GB eMMC Chrome OS
$199.99
Lenovo ThinkPad Yoga 11e 11.6" 2in1 Touch Intel Core i3 4GB RAM 128GB SSD Win10
$60.00
Lenovo Ideapad 1 15Amn7 15.6" Laptop Ryzen 3 7320U 8GB 256GB SSD W11H-64
$189.99
~10th Gen~ 14" Lenovo i7 Quad Core Laptop: 16GB RAM 512GB SSD Windows 11 Pro
$359.99
Lenovo IdeaPad Flex 5 Chrome 14IAU7 i3-1215U 8GB 256GB SSD Chrome OS
$199.99