LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to find usb drive in text mode (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-usb-drive-in-text-mode-4175524680/)

sryzdn 11-07-2014 08:14 AM

how to find usb drive in text mode
 
I have fedora 20 64bit and for unknown reason I cannot boot on graphical mode.


I have very important files for my project there. How can I copy those files to my USB flash. How can I find my USB in the text mode.

I really need urgent help!

suicidaleggroll 11-07-2014 08:45 AM

"df -h" to print out all mounted drives. If the USB drive is there, it will tell you the mount path, otherwise use "fdisk -l" to print out all attached drives, find the one you want, and mount it somewhere, eg: "mkdir /mnt/mydrive; mount /dev/sdb1 /mnt/mydrive"

sryzdn 11-07-2014 09:08 AM

Quote:

Originally Posted by suicidaleggroll (Post 5266173)
"df -h" to print out all mounted drives. If the USB drive is there, it will tell you the mount path, otherwise use "fdisk -l" to print out all attached drives, find the one you want, and mount it somewhere, eg: "mkdir /mnt/mydrive; mount /dev/sdb1 /mnt/mydrive"

df -h does not return sdb, which is the flash drive. Also fdisk -l return absolutely NOTHING!

when I attach the flash, a message like this appears:

Quote:

[3404.711140] sd 11:0:0:0: [sdb] No caching mode page found
[3404.711140] sd 11:0:0:0: [sdb] Assuming drive cache: write through

kilgoretrout 11-07-2014 09:14 AM

Try booting up with the linux livecd of your choice. From there you can mount your fedora partition and usb drive and copy the files you need.

sryzdn 11-07-2014 09:29 AM

Quote:

Originally Posted by kilgoretrout (Post 5266190)
Try booting up with the linux livecd of your choice. From there you can mount your fedora partition and usb drive and copy the files you need.

Not easy for me as a newbie. I tried to boot up the rescue mode from the dvd but still the gui does not show up I have to go to textmode

sryzdn 11-07-2014 09:37 AM

the command blkid shows me the following result:
Quote:

dev/sdb1: LABEL="HP ..." UUID="..." TYPE="vfat" PARTUUID="..."
how can I find the path to the usb now?

suicidaleggroll 11-07-2014 09:39 AM

Quote:

Originally Posted by sryzdn (Post 5266187)
df -h does not return sdb, which is the flash drive. Also fdisk -l return absolutely NOTHING!

You need to run fdisk and mount as root.

sryzdn 11-07-2014 09:47 AM

Quote:

Originally Posted by suicidaleggroll (Post 5266199)
You need to run fdisk and mount as root.

I did them as root and found sdb and sdb1. But I receive the following as result:
Quote:

# mount /dev/sdb
mount: can't find /dev/sdb in /etc/fstab

suicidaleggroll 11-07-2014 09:51 AM

Quote:

Originally Posted by sryzdn (Post 5266204)
I did them as root and found sdb and sdb1. But I receive the following as result:

Because that's not the right mount command. Please see post #2.

knudfl 11-07-2014 09:58 AM

#2 .

? Better : # mount -t auto /dev/sdb1 /mnt/mydrive

sryzdn 11-07-2014 10:03 AM

Quote:

Originally Posted by suicidaleggroll (Post 5266206)
Because that's not the right mount command. Please see post #2.

SOLVED. Thanks 1000 times


All times are GMT -5. The time now is 11:44 PM.