Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You'll need to mount your flash drive first. When you plug it in, run dmesg and that should tell you what device to mount. Here's an example when I plug my device in:
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: Model: USB Flash Memory Rev: 1.04
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 499712 512-byte hdwr sectors (256 MB)
sda: Write Protect is off sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
The bit in bold is the important bit - it tells me I need to mount /dev/sda1. Actually, in my case, there's only 1 partition on my device, but there could be others (in which case "sda: sda1 sda2" or similar would appear).
Create a mount point (i.e. a folder to mount to), unless you have one you want to use. You do this with mkdir, e.g. "mkdir /mnt/usb".
You then need to use the mount command, e.g. "mount /dev/sda1 /mnt/usb". If you get a message telling you the filesystem type needs to be specified, use mount's -t option to do this. If you don't know what filesystem is on your device, you can check by running "fdisk -l" (lowercase L, not number 1) and checking what it says for the relevant device. Post here if unsure. For a FAT32 filesystem, you use the type vfat (e.g. "mount /dev/sda1 /mnt/usb -t vfat").
Lastly, you can copy your log file to the device with cp, e.g. "cp filename /mnt/usb".
Edit: unmount the device before you unplug it. This is done with umount (e.g. "umount /dev/sda1").
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.