I cant boot into my desktop but can mount partitions and see files. I need to get a resume out the door right away and I have a USB stick formatted with NTFS. I can reformat to whatever if needed. I need to copy two files from my Linux box to the stick. They are documents to apply for a job. I can get to the files on the Linux box and just need to get the, from there to my USB stick. I can troubleshoot the install problem later. Yup its my mistake I should have left the machine alone and it ran fine for a long time but then it crashed. How do I copy the files to a USB stick using cp and what fileformat should be used on the USB stick?
FAT or NTFS is fine you just cp the files to the stick.
Thank you!! I will try it. Out of pure desperation I whipped out my credit card and after a 20 minute wait was told they don’t accept Canadian creit cards at Opensuse/Novell/Attachmate. That is sad:(
One more question I know the cp command and can get to the directory with the files and execute
cp *.doc <target>
but I don’t know how to specify target for a USB drive
On 2014-01-27 19:26, exponent wrote:
> I cant boot into my desktop but can mount partitions and see files. I
> need to get a resume out the door right away and I have a USB stick
> formatted with NTFS. I can reformat to whatever if needed. I need to
> copy two files from my Linux box to the stick. They are documents to
> apply for a job. I can get to the files on the Linux box and just need
> to get the, from there to my USB stick. I can troubleshoot the install
> problem later. Yup its my mistake I should have left the machine alone
> and it ran fine for a long time but then it crashed. How do I copy the
> files to a USB stick using cp and what fileformat should be used on the
> USB stick?
You just boot any live Linux system, locate the files you want with the
file browser it provides to another usb stick. The format of this stick
is your choice, depending on what the destination machine can read.
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)
What environment are you working in?
ie is it a live Linux CD/DVD of some sort?
You may need to mount it depending
but to see where try
note that is a lower case L not a one
you should see a drive with just a fat partition on it
If you are in a GUI you should be notified that a device has been plugged in and you can simply view the drive and use the GUI to copy the files.
Not know how you are accessing things makes it hard to figure the best way
my kde desktop stopped working after Xen crashed. That is the root of my problem but sveral hours have passed and no blame to anyone I whipped out my plastic and they cant take it because it is Canadian. Here is where I am at.
I can boot to a prompt.
I can login in as root and locate the two files.
I have one memory stick so I cannot use it for both live boot and file transfer that can be read in windows 7.
I have a working windows machine I need to get the files to.
I have no networking on the Linux box.
I know hot to look into /dev
I need to got to the text based command prompt, get to the files and type
cp *.doc <target>
I don’t know what <target> looks like in the Linux world for a USB drive.
Sorry. Had to go and find fdisk -l which is as follows. I left out some columns but I think this is what is required.
Maybe this is the problem. When I look in fdisk -l I see
/dev/sda2 * HPFS/NTFS
/dev/sda3 W95 extd
I believe my home drive is sda7 and the boot slice which I see bin on is what boots and I see
how do I recover?
That is just your hard drive those items are just he partitions on sda
A stick on that machine should be sdb
Is the stick plugged in?
if sdb I’d do
mount -t.vfat /devsdb1 /mnt
which would mount the first partition of sdb to /mnt
then the files should be copied to /mnt
I get the message
mount: unknown filesystem type ‘.vfat’
oops no period there should just be a space
I get the following message
mount: special device /dev/sdb1 does not exist
and the USB drive is indeed plugged in and I know it works.
Run “dmesg” right after plugging in the drive to find out the correct device.
You should see something like this:
[16840.257046] usb 1-5: new high-speed USB device number 6 using ehci-pci [16840.508516] usb 1-5: New USB device found, idVendor=058f, idProduct=6387 [16840.508526] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [16840.508531] usb 1-5: Product: Mass Storage Device [16840.508536] usb 1-5: Manufacturer: JetFlash [16840.508540] usb 1-5: SerialNumber: LK4NHDED [16840.509415] usb-storage 1-5:1.0: USB Mass Storage device detected [16840.510283] scsi5 : usb-storage 1-5:1.0 [16841.512952] scsi 5:0:0:0: Direct-Access JetFlash Transcend 2GB 8.07 PQ: 0 ANSI: 2 [16841.514422] sd 5:0:0:0: Attached scsi generic sg8 type 0 [16841.515624] sd 5:0:0:0: [sdg] 3944448 512-byte logical blocks: (2.01 GB/1.88 GiB) [16841.516262] sd 5:0:0:0: [sdg] Write Protect is off [16841.516271] sd 5:0:0:0: [sdg] Mode Sense: 03 00 00 00 [16841.516859] sd 5:0:0:0: [sdg] No Caching mode page found [16841.516865] sd 5:0:0:0: [sdg] Assuming drive cache: write through [16841.520118] sd 5:0:0:0: [sdg] No Caching mode page found [16841.520128] sd 5:0:0:0: [sdg] Assuming drive cache: write through [16841.667150] sdg: sdg1 [16841.669604] sd 5:0:0:0: [sdg] No Caching mode page found [16841.669612] sd 5:0:0:0: [sdg] Assuming drive cache: write through [16841.669619] sd 5:0:0:0: [sdg] Attached SCSI removable disk
Which means the device to mount would be /dev/sdg1 in this case.
But “fdisk -l” should show it as well.
If not, your kernel might not include usb support. Which one are you using?
uname -a rpm -qa | grep kernel
Well if it is not showing up in fdisk -l then no it does not exist. I think you may be in recovery mode and that may be why it does not show. Not many services running there. Ok I have no idea how to mount a device in that mode. Maybe someone else has an idea
Recovery mode has the exact same services running, and the disk should show up and be able to be mounted just the same.
The only differences to normal mode are safer CPU settings (i.e. acpi and smp disabled f.e.) and a fallback video driver like fbdev or vesa.
sorry though I had posted
I get the message
mount: special device /devsdb1 does not exist
I’ll reboot to make sure
Well, /devsdb1 definitely doesn’t exist of course.
This should be /dev/sdb1 or similar.
If that is exct message you missed a /
But it should show in fdisk -l
I have 2 drives here I plugged in a stick and it shows as /dev/sdc in fdisk output
SUCCESS I don’t see the same BUT I do see
Attached scsi generic scsi sg0 type 0
which I assume is it. and note is a NTFS (maybe this is important?) formatted drive that I know this install was reading fine before.
yes it is important the command I gave you was for a fat. replace vfat with ntfs
Most sticks are fat so I assumed this one was too.
mount -t ntfs /dev/sg01 /mnt
I spoke too soon. That does not work. I get exactly the same mounbt error message. Is there supposed to be a slash in
/devsdg0 ie. /dev/sdg0 ?