Ubuntu :: Mount Usb Drive From Command Line?

Apr 1, 2010

I used to be able to mount usb media such as a digital camera like this:

mount -t vfat /dev/sdb1 /media/usbdisk

After upgrading to karmic, it no longer works. I get this error:

mount: special device /dev/sdb1 does not exist

Here's what I have in /dev:

Code:
adsp cpu_dma_latency hpet loop6 null pts ram3 rtc0 shm tty1 tty19 tty28 tty37 tty46 tty55 tty7 usbmon0 vcs7 vcsa8
audio disk input loop7 nvidia0 ram0 ram4

[Code].....

View 9 Replies


ADVERTISEMENT

General :: Mount Usb Drive In Command Line IN UBUNTU?

Mar 15, 2010

want to copy a file from my desktop to usb drive in command line...how can i do it...i have no gui interface..all i want to do it by command line.i.e how to mount the usb drive and copy the file to usb and then unmount it..i also want to access windows xp drive from linux in command line without gui interface...in opensuse there is windows folder under file system but in ubuntu there is no such option...so if i want to place a file from linux to windows drive such as d ..how can i manage it with command line...no gui interface is available...

View 1 Replies View Related

General :: Mount A Partition In Command Line?

Nov 29, 2010

I use a ext4 partition to store my data, to mount and open that partition I open Nautilus file manager, then click on the partition icon and label on the left side.
So if I don't have a desktop environment, how can I mount a partition in terminal?

View 1 Replies View Related

Ubuntu :: Devicekit - Mount Samba Shares From Command Line?

Dec 1, 2010

Is there a way for a normal user to mount samba shares from the command line using devicekit? It seems like I remember there was a way to do it using hal, but that's been replaced by devicekit in Lucid if I've read correctly.

I can click on the shares I want in nautilus under "Network", but I'm using fluxbox and I'd like to mount a few shares at startup. I read the documentation for the udisks command, but I can't figure out how to get it to work with samba shares.

View 2 Replies View Related

Fedora :: Mount Removable Media From Command Line

Jul 6, 2010

I'm using Fedora 12, and I want to mount/unmount my USB memory stick from the command line. I know I could edit /etc/fstab and so on, but I want to emulate what happens when you mount using the GUI (I use KDE and the device notifier), that is, I want to be able to do this as an unprivileged user and not have to know the mount point exists in advance.

I'm sure in older versions of Fedora there was a command something like `gnome-user-mount' which let me do this knowing only the filesystem label... What is the current equivalent?

View 5 Replies View Related

Ubuntu Networking :: Some Command Line Way / Where Can Invoke Nautilus To Mount Windows Share

Oct 9, 2010

My computer is connected to the college lan where almost all machines are some variant of Windows OS. If i use Places > Network, while windows network is displayed, mostly it returns unable to mount shares, my workaround for this problem is I use some tool like nbtscan to see which hosts are up and then use network > Connect to Server > windows share and type in the ip address, this mounts the windows share even though Places> network doesn't display such hosts. My question is there some command line way where I can invoke nautilus to mount the windows share, ie the same job connect to server > windows share does? And is there some application like say lan surfer for windows which lists all the folders shared by a windows client.

View 3 Replies View Related

Ubuntu :: Copy A Hard Drive From Command Line?

May 4, 2011

Ubuntu is getting stuck at the loading screen after an aborted attempt to upgrade to 11.04. It's my own fault - the install was running out of room on /, and I, like an idiot, decided to delete some package files under /var/something/archive, thinking they were "old"... I quickly realized they were in fact the new packages being installed... anyway after killing the thing and rebooting it is pretty damn broken (mostly because I can't get networking going so running in dpkg repair mode doesn't do much because, well, I deleted the packages).

I want to copy all the files off my /home and other meaningful partitions onto an external drive so I can just do a clean install. I can actually login to the command line under recovery mode, but I can't get the GUI started. I know it's possible to copy the contents of the partitions to an external

View 9 Replies View Related

Ubuntu :: Mounting A Hard Drive With Options On Command-line?

Sep 3, 2010

I have a working fstab entry:

Quote:

/dev/sdc1 /media/sdc vfat rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,s hortname=mixed,dmask=0077,utf8=1,flush 0 0

But how do I mount the sdc drive with those options from the command-line without restarting? I've tried to do so with 'mount' utility, but had no luck.

View 1 Replies View Related

General :: Fstab Line For Auto Mount Drive That All Users Can Read/write?

Jan 4, 2011

I have installed a cable that connects from the CPU's SATA motherboard connection to a removable drives' ESATA connection.I would like to be able to swap drives on the ESATA connection and have all users be able to read and write to these drives.I have created the directory /archive/ where I would like the drive(s) to mount.The drives are all formatted Fat 32 - but in the future I may use HFS for formatting.When I used the command (as root):mount /dev/sdc1 /archivethe drive was mounted (but read only)What can I use in my /etc/fstab file that will allow drives to be mounted and unmounted by all users on the system? (both reading and writing)Also, will I be able to mount and unmount these drives without shutting down? or will I need to reboot every time I want to change drives?

View 2 Replies View Related

General :: Command-line Distor Off USB Flash Drive?

Jan 19, 2011

I have a 32GB flash drive that I want to:- Have an installation o with no X-terminal. Only command-line.- Be bootable by plugging into any computer and turning that computer on.My wishes are strictly for writing purposes. I want to write in a minimal environment where there's no distraction by other programs or Internet. I don't care what programs exist on the linux distro as long as it has a text-editor.Please tell me how to proceed. What linux distro I should get. How to install it on a USB stick. Anything I need to know.

View 11 Replies View Related

Software :: Using Command-line To Tell If A Drive Is 3.5/2.5 And Ide/sata/pata?

Jul 22, 2011

Anyone know if there is a way of detecting if a hard drive is 3.5/2.5 and ide/sata/pata from within a script?

View 3 Replies View Related

Ubuntu Multimedia :: RipperX Command Line Parameters Selecting Which Drive?

May 28, 2011

with the current Musicbrainz fiasco with Rythmbox and Sound Juicer I am now using RipperX. I like RipperX, but I would like to know if there are any command line parameters or some way of selecting the CD/DVD drive. It appears that RipperX can multi-task which would save me some time.

View 1 Replies View Related

General :: Moving A File To The Root Of The Drive Via Command Line

Oct 17, 2010

How can I move a directory to the root of a drive via command line?

In MS-DOS it would be 'move C:/GAMES/QUAKE C:/'

What is the equivilent in Linux?

View 8 Replies View Related

General :: Command To Mount NTFS Drive?

Oct 11, 2009

Code:
ntfs-3g /dev/sda1 /media/drive
Or
Code:
mount -t ntfs /dev/sda1 /media/drive

View 1 Replies View Related

General :: Command Line - Count Number Of Folders In A Drive Using System?

Apr 9, 2010

I need to organise an external HDD such that there is no more than 500 folders on it.

Ubuntu's "Properties" pane shows only the file count, not the folder count.

Is there a simple CLI line that will tell me the number of subdirectories?

View 3 Replies View Related

Fedora :: Run Python3 Scripts From Command Line And Call Up Python 2.6.2 Idle With The Command Idle From Command Line?

May 29, 2010

i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?

View 5 Replies View Related

Software :: Hard Drive Missing - Giving Grub Safety Command Line

Feb 5, 2011

I've been dual-booting win7 and ubuntu on my comp for a while, but didn't bother updating grub. I just updated to grub 2, but it wouldn't let me boot and said my hard drive was missing, also giving me a grub safety command line.

View 3 Replies View Related

Ubuntu :: Command Line Alternative For "Safely Remove Drive"

Aug 9, 2011

Ubuntu Server 10.04 LTS

Is there a command line alternative to clicking on "Safely Remove Drive" in nautilus?

When I click on "Safely Remove Drive" in nautilus, the USB HDD attached (WD Elements) vanishes from the nautilus "places" list, the drive spins down, and the light on the drive dims to indicate that it is powered down.

I have tried the "umount" command as well as the "eject" command from the terminal, but they both only seem to unmount the drive, as it is still shown in the nautilus "places" list and the light on the drive stays bright.

View 4 Replies View Related

Software :: Use Command Line To Split A Single-lined XML Into A Multi-line XML?

Dec 9, 2010

I have a many text files that have XML tags all shoved into 1 line. I want to create a new file that splits each XML tag onto a new line. code...

View 3 Replies View Related

General :: Command Line Way To View A Line Of A File With Context?

Feb 24, 2011

I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:

$ (something) -l 154 stuff.py
150: def foo(bar):
151: """

[code]....

View 5 Replies View Related

General :: Printing Command Line History Without Line Numbers?

Aug 22, 2011

How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt

View 1 Replies View Related

General :: Ubuntu 10.10 And Command Line Scripts - Error - Android: Command Not Found

Mar 26, 2011

I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...

I just installed the JDK, SDK, Eclipse successfully (or I assume):

* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).

** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,

My system:

Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2

View 5 Replies View Related

Ubuntu :: Is Command Line Invocation Of Gnome-terminal To Run More Than One Command

Feb 17, 2010

how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here:

Code:

#! /bin/bash
#
#TODO write this for gnome and xterm

[code]....

This same error occurs if the gnome-terminal line is changed to

Code:

gnome-terminal -e mcTerm

Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.

View 1 Replies View Related

Ubuntu Servers :: Mount A USB Drive In Rc.local With /sbin/mount And UUID Instead Of Fstab?

Feb 6, 2010

I run a headless Ubuntu 8.04 server, which acts as a web, email and file server. I am sticking with 8.04 as it is a LTS release and will upgrade to the next LTS when it is released.

I have two external USB drives, that I need to mount at boot. I have been using /etc/fstab up until now, with the following entries:

Code:

However, as I gather from doing searches is quite common, occasionally I get an error during boot (causing the system to drop to a recovery shell) because the USB drives take time to wake up and the system hasn't found them by the time it reads /etc/fstab.

From doing searches, it seems there is nothing you can do to fstab to fix this, so you need to mount them using an rc.local script instead, using:

Code:

The problem is, as I have two USB drives, their /dev/sdxx location changes between boots. I thus want to use UUID codes as I do in fstab, however I haven't found anything about this.

Does anyone know how I can use the mount command and UUID to mount a drive in rc.local and what options I have to use the mount the drive with the same options that I am using in my fstab entry? Obvisouly, I can't refer back to fstab using the mount command, because then I will still get the boot error issue if they are listed in fstab. And there is no space internally for the USB drives as there is already two internal drives.

View 3 Replies View Related

Ubuntu :: Unable To Mount Internal Drive - Error: Mount Exited With Exit Code 1: Helper Failed

Aug 5, 2010

I have 2 internal drives. One is for the OS and one is for the Data. I tried to get the Data drive to mount automatically at login using some crap I found on a linux blog. Safe to say it didn't work and now I can't mount it with the OS on the OS Drive.

It mounts from a live CD and all the data is perfectly safe. When I try to mount the drive I get this error message: "Error mounting: mount exited with exit code 1: helper failed with: mount: only root can mount /dev/sdb1 on /media/data" What have I done wrong and how can I make it mount again? Preferably this time at login.

View 2 Replies View Related

Programming :: Effect Of Using Eval To Execute A Command As Opposed To Writing It On The Command-line?

Jun 18, 2010

Code: cmd='date | wc'

$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?

View 4 Replies View Related

Ubuntu Networking :: Samba And External Drive - Unable To Mount Location - Failed To Mount Windows Share - Dialog Box

May 25, 2010

I have been trying to share folders from my main PC which is running Ubuntu 10.04. I have been able to figure out Samba enough to get my a couple of folders shared, but I have been unable to share any folders which are on my external harddrive. After entering the path in my smb.conf file they appear on the network but I am unable to navigate to them. When trying to navigate to them through the network folder on the pc they are actually connected to I get an "Unable to mount location: Failed to mount windows share" dialog box. On the windows pc I am trying to share with I get, "Windows cannot acces \Josh-Desktop
ame of folder"

My smb.conf file looks like this:

That folders I cannot access are Music and Videos.

View 9 Replies View Related

General :: Access The Dbxml From The Command Line And It Returns Command Not Found?

Apr 30, 2011

I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found

path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found

Can someone point me in the right direction

View 1 Replies View Related

Software :: Command Line: Chown Command Recursively On Invisible Directories?

Oct 25, 2010

I tried

Code:

chown -R owner:group *

which does not work on the invisible directories (why?). When I used ".*" as wildcard it changed all (visible) files including the parent directory (the one I was currently working in which is the "dot") . I can change the invisible directories owner and group using dophin but how is it done from the command line?

View 9 Replies View Related

Programming :: Command Line Invocation Of Gnome-terminal To Run More Than One Command?

Feb 16, 2010

I am trying to learn how to pass more than a one-command startup for gnome-terminal.

I will give an example of what I'm trying to do here:

Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
${0##*/} [-x] [-g]
code....

However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.

This same error occurs if the gnome-terminal line is changed to

Code:
gnome-terminal -e mcTerm

Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved