Subject: Re: [VINUX-SUPPORT] mounting usb-flash-storage from the command line, (debian) So I can just put --sync after mount -t auto i.e. mount -t autosync /dev/seb1 /mnt/sdb1 no need for -- before sync? This sounds like it's well worth doing, or does it make a really big difference in write speeds? Does it take a minute to write a large file or a directory instead of 10 seconds? To make mounting easier one could make a couple of bash aliases and just always use the same two mount points. I've not yet done this, but assuming you remember whether you have connected another memory you should be ok with this? Thanks, -- B. Henry *follow me on Twitter @BurtHenry *connect on *GTalk or *AIM (this address) *Yahoo burt1iband (&I'm on *FaceBook) On Tue, 21 Feb 2012, Willem van der Walt wrote: The -t option is normally required. It specifies the file system. -t auto tells mount to figure out what filesystem to mount by itself. /dev/sdb or whatever is the device, sdb1 is the first partition on that device. What you mount is the filesystem on a particular partition. You can use any directory as a mount point, even one containing data. If you use one containing data, you will see the data on, in this case, the stick in place of whatever data was in the directory before you have mounted. Once you unmount the stick using the umount command, you will again see the data that was on the disk. You can make life easier by adding an entry to /etc/fstab containing the mount point, IE the directory where you want to see your data, and the device and filesystem as well as some mount options. Once set up, you can mount just using the directory name, E.G. mount /s That is if the mount point you are using is /s. One of the usefull mount options is sync which make sure that the data is written to the stick directly, minimizing the chance that you get corruption, even if you pull out the stick while the thing is still mounted. The down side of this, is that writes is slower. You can also set up automount, which will mount the stick where ever you have specified when you plug it in. That setup can become a little complicated though. HTH, Willem On Mon, 20 Feb 2012, Peter Tesar wrote: I think that the auto is for the file system. In the early days I used ntfs instead of auto. Someone mentioned that the auto wasn't necessary for the ext file system. I don't know. I always use the same mount command and it works. Peter On 2012-02-20 5:46 PM, Burt Henry wrote: thanks. I got it to mount correctly first try with these steps. I'd mounted it once before, but think I had some freak error because I could not see the supposedly mounted file system. Doesn't matter what the probs were now anyway...lol(as long as they don't repeat of course) One question though: how about the auto? Does that mean I can reconnect the pendrive and it will remount to the same location? I have to umount before detaching the usb memory, don't I? Thanks. On 02/20/2012 04:25 PM, Peter Tesar wrote: Hello, I was about to document (for the Wiki) my steps to do this task. Here it is. When in the console, insert the USB drive. A message should be generated which may give sdb as the inserted drive. Assume that /dev/sda is the prime drive. To list the drives issue: $ sudo fdisk -l Assume that /dev/sdb is the USB drive with only 1 partition You must attach it to the directory tree with a make directory command and then mount it. $ sudo mkdir /mnt/sdb1 $ sudo mount -t auto /dev/sdb1 /mnt/sdb1 Now you should be able to navigate to it with: $ cd /mnt/sdb1 Note: you can make the directory name what you want. Peter On 2012-02-20 3:13 PM, Burt Henry wrote: Please, someone with CLI experience, I need to mount a usb-flash-memory stick on my new cli only Debian installation. I tried to follow instructions I found on a website, but don't quite understand things. I don't know what to call the usb-stick for starters. I thought it would maybe use /dev/sdb1, or use the name I gave the file system when I formatted the memory, but these don't seem to be working. I could be doing anything else wrong as well, so any help, the more detailed the better, would be great. I wrote&sent a msg on this last night, but I didn't check my new addressbook entry and it went to e-mail limbo thanks to my carelessness when creating the addressbook entry for Alpine. -- You received this message because you are subscribed to the Google Groups Vinux Support Forum. To post to this group, send email to vinux-support@xxxxxxxxxxxxxxxxx To unsubscribe from this group, send email to vinux-support+unsubscribe@xxxxxxxxxxxxxxxxx For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en Vinux Home Page: http://vinuxproject.org/ Vinux Virtual Edition: http://virtual.vinuxproject.org/ Vinux Wiki Documentation: http://wiki.vinuxproject.org/ -- You received this message because you are subscribed to the Google Groups Vinux Support Forum. To post to this group, send email to vinux-support@xxxxxxxxxxxxxxxxx To unsubscribe from this group, send email to vinux-support+unsubscribe@xxxxxxxxxxxxxxxxx For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en Vinux Home Page: http://vinuxproject.org/ Vinux Virtual Edition: http://virtual.vinuxproject.org/ Vinux Wiki Documentation: http://wiki.vinuxproject.org/ |