LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need to Get Log From Fedora Emergency Mode (https://www.linuxquestions.org/questions/linux-newbie-8/need-to-get-log-from-fedora-emergency-mode-4175548969/)

killingthemonkey 07-26-2015 05:58 AM

Need to Get Log From Fedora Emergency Mode
 
I've got a fresh install of Fedora on an Inspiron 11 3147. It doesn't even have X installed yet. It's a fresh install, because something caused the previous install to do the same thing.

So, once it booted into Emergence Mode this time, I ran 'journalctl -xb > journal.txt.' I'd like to get the 'journal.txt' file off the machine so I can post it up on the board and get a little help deciphering it. Also, it might be easier to decipher it on my big screen. Eleven inches is constraining.

So, I plug in a USB drive. fdisk -l tells me the drive is /dev/sdb1. I have a directory, /mnt/usb. I type the command, 'mount /dev/sdb1 /mnt/usb.' I receive no errors. It just returns to the command prompt. Then, 'mv ~/journal.txt /mnt/usb,' and, 'umount /dev/sdb1 /mnt/usb.' I receive errors here. If I remember correctly, '/dev/sdb1 /mnt/usb not mounted.'

Move the USB drive to my Win8 machine, and the files not there. Go back to my Fedora box, and the file sits in my /mnt/usb directory.

Please point out where I'm going wrong.

Thanks,
Doug

unSpawn 07-26-2015 06:26 AM

Quote:

Originally Posted by killingthemonkey (Post 5396414)
So, I plug in a USB drive. fdisk -l tells me the drive is /dev/sdb1. I have a directory, /mnt/usb. I type the command, 'mount /dev/sdb1 /mnt/usb.' I receive no errors. It just returns to the command prompt. Then, 'mv ~/journal.txt /mnt/usb,' and, 'umount /dev/sdb1 /mnt/usb.' I receive errors here. If I remember correctly, '/dev/sdb1 /mnt/usb not mounted.'

It's 'umount <mountpoint>;': 'umount /mnt/usb' should do.


Quote:

Originally Posted by killingthemonkey (Post 5396414)
Move the USB drive to my Win8 machine, and the files not there. Go back to my Fedora box, and the file sits in my /mnt/usb directory.

If /dev/sdb1 isn't VFAT or NTFS-formatted The Other OS might not mount or recognize anything?

killingthemonkey 07-26-2015 06:47 AM

Thanks for the reply, unSpawn.

I've tried both vFat and NTFS. I can't get a file to move in either direction. I've been trying to get the wpa-supplicant tarball onto the Fedora box so I can connect it to the network. I have the drive formatted vFat. I download the tarball on my Win8 machine. Copy it to the drive. Move the drive to the Linux box. Mount it. /mnt/usb is empty.

unSpawn 07-26-2015 08:27 AM

The vendor has the audacity to call this laptop "Designed for the real world" and it shows what world they live in because it doesn't come with a RJ-45 port for Ethernet. Bummer. No idea why windows doesn't "see" the files. If the stick is empty maybe formatting it in Windows before copying files onto it may help? Also before you 'cp ~/journal.txt /mnt/usb;' try 'unix2dos ~/journal.txt;' as the OSes have different ideas about line endings (or just open it in a good free editor like Notepad++).

killingthemonkey 07-26-2015 10:49 AM

I used diskpart to clean the drive an recreate the partition on it before formatting it and putting the wpa-supplicant file on it on my Win8 machine. After mounting the drive, Fedora doesn't see it.

I'll try the unix2dos tonight.

Thanks,
Doug

killingthemonkey 07-26-2015 09:16 PM

OK, I was finally able to get wpa_supplicant to the Fedora box. I'll have it online tomorrow. I'll also be able to get the journal file an post it. So, I'm marking this as solved.

How did I do it, you ask? I installed Cygwin on my Win8 box and treated it like it was Linux: cp /cygdrive/c/Downloads /cygdrive/f

It worked.

unSpawn 07-27-2015 01:09 AM

well done.


All times are GMT -5. The time now is 04:07 PM.