You are not logged in.
Pages: 1
I have the journalctl output all copied to a file.
However; A couple of commands I used, seems to have copied the file over to my USB drive
When I move to this windows computer, the file is not there. I do not have internet on the affected computer.
Offline
What were these "couple of commands"? How big is / was the journal? Did you sync the filesystem and / or wait for a complete unmount?
EDIT: and how many partitions are on the USB? Does windows see / mount the proper partition(s)?
Last edited by Trilby (2023-07-15 02:13:03)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I tired with mv, cp, rsync and dd.
Results:
mv: inter-device move failed "startup.txt' to 'dev/sdc1'; unable to remove target: permission denied
cp: cannot stat '/dev/sdc1/startup.txt : Not a directory
rsync error: errors selecting input/output files, dirs (code 3) at min.c(770) [Receiver =3.2.7]
dd:
14200+1 records in
14200+1 records out
149709437 bytes (150 MB, 143 MiB) copied 4.94358 s, 30.3 MB/sThe drive is read fine on the Windows machine, but the file is not present.
Offline
Because this is not how this works at all, https://wiki.archlinux.org/title/Mount
Online
Have you mounted the USB drive to your filesystem before cp/mv/rsync/dd?
E.g.:
mkdir /mnt/usb-drive
mount /dev/sdc1 /mnt/usb-drive
cp startup.txt /mnt/usb-drive/
umount /dev/sdc1Offline
Your first two failed for what should be obvious reasons (see above). But the third one with `dd` appears to have been successful. However, if it was successful, this would most certainly no longer be true:
The drive is read fine on the Windows machine, but the file is not present.
That is with a potential exception if startup.txt was smaller than any pre-partition-table gap in which case you got very lucky or perhaps if you removed the device before the data was actually flushed to it... but if `dd` in this case was successful, it'd successfully earn it's nickname of "disk destroyer". Be glad it wasn't and don't try using it again.
Last edited by Trilby (2023-07-25 20:55:54)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
149709437 bytes (150 MB, 143 MiB) copied 4.94358 s, 30.3 MB/sWhatever filesystem might have existed on sdc3 is now gone…
Online
Im now getting
Cp: cannot create regular file '/mnt/usb-drive1/startup.txt' : Read-only filesystemChmod 777 has not worked
Offline
chmod is not relevant. What is the filesystem? Did you (have to) reformat after the `dd` incident? How is the device mounted?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
… you want to post the output of
mountOnline
Pages: 1