cannot see files copied to usb drive from ubuntu to USB drive ini windows - usb

I have inserted my usb drive into my computer. I have created a mount point "mount /dev/sdb1 /media/usb. I have copied files from cp home/my_name/folder/file_name to /media/usb.
I can see the files in ubuntu /media/usb, but I cannot see the files in the stick when I plug it in windows. All I see is this folder is empty.
Apparently, I transferred my files from ubuntu to my usb drive but I cannot see then in the usb drive in windows.
What am I doing wrong?
Thanks

You need to umount /media/usb before removing the stick.
Otherwise the changes to the filesystem might only reside in RAM (cache). USB drives are rather slow - it is highly likely that only some changes made it to the actual device. Try running chkdsk on the stick.

Related

Windows Desktop doesn't show up on WSL

I just recently set up WSL with Ubuntu 18.04 on my new windows computer. I know that to access my windows files from the linux side, the C:\ drive is mapped to /mnt/c. When I try to cd to /mnt/c/Users/malik22/Desktop, however, I get a No such file or directory error. I access my window Downloads, Documents, etc. just fine from the linux side, but for some reason Desktop seems to be the only one not present.
I've been using WSL for over a year now on my old computer and have never run into this issue. Any ideas?
If your Desktop is backed up in your OneDrive it won't show up in your user directory.
You can either create a symbolic link as mentioned below by #raghav-malik or else choose to not back up your Desktop (you can instead back up your Documents directory).

Accessing files without installing Dropbox from Linux OS installed parellelly in Windows7

I have installed Dropbox in Windows 7. Also, installed Ubuntu Linux 14.04 in parallel. Through online login to Dropbox account allows access to files in Dropbox. However, to work with the files in Dropbox I have to install Dropbox in Linux also. This require additional space in the same PC. So, is it possible to access and work with files in Dropbox#Windows7 without installing Dropbox in Ubuntu (which is installed in the same PC parelelly)?.
You can access windows disks in linux, you just need to map it correctly. Then you can do whatever you want with files. But dropbox magic will not work until you load windows again.
Only when you bootup from windows again, since it is dropbox app that does syncing. What you may do is to deploy dropbox on both windows and linux, but point them to the same data folder. Still there could be some problems with text files, as windows and linux are not treating line endings the same way. So if a file was synchronized in windows, it will have windows endings, and vice-versa.
Maybe you could configure a remote filesystem on a USB-Stick so both your systems can access on it and you have a directory where dropbox stores the files.
Look here: https://www.dropboxforum.com/t5/Dropbox/Idea-Portable-Dropbox-folder-on-flash-drive/idi-p/122804

Can't boot gentoo from usb

I'm trying to install gentoo from usb. I'm using windows7 I downloaded the amd64 in: iso ( install-cd on this page: https://www.gentoo.org/main/en/where.xml then used Unetbooting to burn it on my usb. For some reason in the choices of distributions gentoo does not appear so I don't select any distribution. It worked before but now when I select the default option after reboot it says the iso is corrupt. I tried on another usb key, tried with lili usb creator, win32diskimage, universal-usb-installer, yumi, sardux64 and none of these work.
You can try just copy byte-to-byte liveDVD iso to you flash drive. Use dd command for this (under Win you can find some analogs).
The good article about Gentoo on USB: https://wiki.gentoo.org/wiki/LiveUSB/HOWTO
I was able to use UNetbootin.
First select the Diskimage radio button. Next push the three dots button to select the iso install-amd64-minimal-20140828.iso. Next select the usb drive and push the ok button.
Your machine should be using legacy bios to boot the usb. On my dell I push F12 on the bios screen for a boot menu and then select usb to start.
Once grub comes up select gentoo to use the usb drive.
The minimal install cd has worked great but any live disk can be used. The live disk is only used to connect to the internet, prepare the disks, copy the stage 3, and chroot into the disks. Most distributions have live disks that can do this.

How to make a bootable USB drive from backup files of another bootable USB drive?

I had a bootable windows 7 pen drive (sandisk 4 GB). Later, I got to use the pen drive for some other purpose, so i copied all the files from pen drive onto my hard disk. Now I want to use those files to make another bootable drive (A kingston 4 GB pen drive). Anybody knows?
Its no issue if you have Win7 or Win8 Operating system install in you can create the boot able pendrive by your own what you have to do is just fallow the simple steps give in the below link.
Step by step process to create the Bootable pen drive

Sync chroot folder with Google Drive or Dropbox in Chrome OS

I have crouton running on a chromebook 11 with ubuntu precise in it. I am looking for a way to sync files in some folders in the ubuntu chroot with Google Drive. I am thinking I can create a link between the mounted chroot partition and a sync'ed folder in the Chrome OS, but I can't find where the synced Google Drive folder is in Chrome OS.
Could anyone please help?
Bottom line I want to sync files I create in the chroot to an online service, Google Drive or Dropbox, whatever works.
Thank you in advance
SUMMARY
The best way to sync files (code, in my case) is to use git and bitbucket/github. Install git in the chroot, and sync the code into the Downloads folder so it can be accessed from both ChromeOS and the chroot (and compiled and ran locally on both computers). I stored all other files in Google Drive so they could be accessed from ChromeOS, other computers, and the chroot.
Here are the options I looked into, but did not end up using
Accessing the Google Drive cache directly on the chromebook
Google drive in the chrome os stores the file data in
/home/chronos/user/GCache/v1/files
However, it does not name the files how they are named in google drive (it names them by some uuid, and stores meta in another folder).
3rd party tools to mount Google Drive folder in linux
https://github.com/dsoprea/GDriveFS
I was able to get GDriveFS working, but it was slow and chmod does not work in its file system. The permission are all static at 666, so programs will not execute.
https://github.com/astrada/google-drive-ocamlfuse/
I was not able to get ocamlfuse working on an arm Chromebook.
https://github.com/Grive/grive
I was able to get Grive working, but it has some problems and hasn't been updated in over a year. Would not recommend if there is a chance of merge conflicts.