manual mount - External usb hard drive (in ubuntu)
UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
manual mount - External usb hard drive (in ubuntu)
Hi all,
I am running the ubuntu linux OS in a vmware workstation within the windows xp OS. I have disabled the automatic mounting of my usb external hdd by some vmware processes at windows startup as it was causing my whole system to come to a standstill for about 20 minutes (note: This has only caused the external hdd to not be advance mounted at starup for ubuntu within the vmware workstation environment; The external hdd works grand within the win xp environment at all times). So, im wondering if there is any way in which I can manually setup and mount my usb external hdd in ubuntu?
(Any other suggestions also will be helpful)
Thank you to everyone, in advance, for reading/replying to my query.
Well, you could add an fstab entry to speed things up. The "manual way" from console, if your HD isn't visible at Ubuntu's "Computer" (or whatever the place is called; well, you should see it from within Nautilus anyway, the button in the toolbar), is
Code:
mount -t vfat /dev/sda1 /mnt/sda1
In the above example it is assumed that the device file for the 1st partition of the external harddisk is /dev/sda1 (that's usually for usb sticks, for example), and that you want to mount it to /mnt/sda1 (and that the location exists) and that the drive has a FAT (vfat) filesystem on it. Change when needed.
You could also add an fstab entry like this, to your /etc/fstab (following the previous example):
Code:
/dev/sda1 /mnt/sda1 vfat defaults 0 0
for a basic setup. Then you could just
Code:
mount /mnt/sda1
to get the drive mounted; remember to change the information according to your own setup. You can also give more options like
here exec allows running executables from the harddisk (if needed; otherwise don't add) and umask=022 adds an user mask, which should make it readable and writable by other users than root too.
More information:
Code:
man fstab
man mount
EDIT: after adding a correct fstab entry it is possible that the drive is shown as an icon either in your desktop or in some other place you can see in Nautilus. If settings and permissions are okay, then you should be able to mount and umount the drive using the icon, too.
Well, you could add an fstab entry to speed things up. The "manual way" from console, if your HD isn't visible at Ubuntu's "Computer" (or whatever the place is called; well, you should see it from within Nautilus anyway, the button in the toolbar), is
Code:
mount -t vfat /dev/sda1 /mnt/sda1
In the above example it is assumed that the device file for the 1st partition of the external harddisk is /dev/sda1 (that's usually for usb sticks, for example), and that you want to mount it to /mnt/sda1 (and that the location exists) and that the drive has a FAT (vfat) filesystem on it. Change when needed.
You could also add an fstab entry like this, to your /etc/fstab (following the previous example):
Code:
/dev/sda1 /mnt/sda1 vfat defaults 0 0
for a basic setup. Then you could just
Code:
mount /mnt/sda1
to get the drive mounted; remember to change the information according to your own setup. You can also give more options like
here exec allows running executables from the harddisk (if needed; otherwise don't add) and umask=022 adds an user mask, which should make it readable and writable by other users than root too.
More information:
Code:
man fstab
man mount
EDIT: after adding a correct fstab entry it is possible that the drive is shown as an icon either in your desktop or in some other place you can see in Nautilus. If settings and permissions are okay, then you should be able to mount and umount the drive using the icon, too.
You should use first of all the command
# fdisk -l
And in the case of ubuntu drapper in vmware as guest of winxp, your advice is
completely dangerous and might lead to a pretty dangerous loop especially when
root / is /dev/sda1 mounted.
As far as I've tried on any windows box, this was the case.
So please, please, don't give any automation trick if you've never tried to get
a VM ubuntu on a Winbox !
You're only right when ubuntu is running in its own partition (physical).
The problem with our case is caused by the interception of our usb device by windows prior its vmware guest.
The fix (howto) is setting VMware workstation/server removable Devices:
1) Menu -> VM -> Removable Devices -> USB Devices -> your_usb_device
2) WindowsXP then unmount its own usb device and runs -if it is the first time you set VM removable devices - and installs what it likely calls VMware USB driver.
3) when done, the icon of USB device appears at the lower right corner of your VMware workstation window.
Eventually you can mount inside your ubuntu guest (or other linux flavor) your usb device with this command
# mount /dev/sdb1 /media/usbflash
Of course you have to adjust the mounting point to your machine filesystem.
I didn't invent the /dev/sdb1 param, it comes directly from
- either: fdisk -l
- or dmesg during usb scanning
- or on your console standard io....
That's all.
PS: your VMware workstation release must be over 5.5
Hi I am using Ubuntu.. and this is the first time i am using a linux system.. when i try to access any of my drives namely D:\ or E:\. it gives me an error unable to mount device,,, can you please help to overcome this error .... I dont have windows ...thnx
Quote:
Originally Posted by b0uncer
Well, you could add an fstab entry to speed things up. The "manual way" from console, if your HD isn't visible at Ubuntu's "Computer" (or whatever the place is called; well, you should see it from within Nautilus anyway, the button in the toolbar), is
Code:
mount -t vfat /dev/sda1 /mnt/sda1
In the above example it is assumed that the device file for the 1st partition of the external harddisk is /dev/sda1 (that's usually for usb sticks, for example), and that you want to mount it to /mnt/sda1 (and that the location exists) and that the drive has a FAT (vfat) filesystem on it. Change when needed.
You could also add an fstab entry like this, to your /etc/fstab (following the previous example):
Code:
/dev/sda1 /mnt/sda1 vfat defaults 0 0
for a basic setup. Then you could just
Code:
mount /mnt/sda1
to get the drive mounted; remember to change the information according to your own setup. You can also give more options like
here exec allows running executables from the harddisk (if needed; otherwise don't add) and umask=022 adds an user mask, which should make it readable and writable by other users than root too.
More information:
Code:
man fstab
man mount
EDIT: after adding a correct fstab entry it is possible that the drive is shown as an icon either in your desktop or in some other place you can see in Nautilus. If settings and permissions are okay, then you should be able to mount and umount the drive using the icon, too.
my usb drive not detecting ? any one please tell ?
dmesg | tail
[22847.647041] operapluginwrap[7319]: segfault at 0 ip (null) sp bfe8e32c error 4 in libX11.so.6.3.0[110000+119000]
[22847.656303] operapluginwrap[7322]: segfault at 0 ip (null) sp bff78cac error 4 in libXext.so.6.4.0[110000+e000]
[22847.662443] operapluginwrap[7323]: segfault at 0 ip (null) sp bfd31b5c error 4 in libdl-2.11.1.so[110000+2000]
[22847.668497] operapluginwrap[7324]: segfault at 0 ip (null) sp bf910aec error 4 in libuuid.so.1.3.0[110000+3000]
[22847.674717] operapluginwrap[7325]: segfault at 0 ip (null) sp bfbd4a8c error 4 in libSM.so.6.0.1[110000+7000]
[22847.680805] operapluginwrap[7326]: segfault at 0 ip (null) sp bfc4369c error 4 in libdl-2.11.1.so[110000+2000]
[22847.687382] operapluginwrap[7327]: segfault at 0 ip (null) sp bfe9436c error 4
[22847.694199] operapluginwrap[7328]: segfault at 0 ip (null) sp bfd1576c error 4 in libgcc_s.so.1[110000+1d000]
[24559.326755] FAT: bogus number of reserved sectors
[24559.326761] VFS: Can't find a valid FAT filesystem on dev sdc1.
this is message i am getting ?
any one have idea ?
when i am mounting the usbdrive ..
pls tell me what is problem ?$ sudo mount -t vfat /dev/sdc1 /mnt/usbd
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
this is my error message
pls tell me what will be the problem ? ?
[24559.326761] VFS: Can't find a valid FAT filesystem on dev sdc1.
this is message i am getting ?
any one have idea ?
when i am mounting the usbdrive ..
pls tell me what is problem ?$ sudo mount -t vfat /dev/sdc1 /mnt/usbd
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
this is my error message
pls tell me what will be the problem ? ?
If you still have this problem (I'd been looking for a solution since Aug, 2010) you can find the simple solution here:
I realize this may be an old post, but it still seems active and I also know this may sound like a silly question, but didn't you say your file system was NTFS? If so, change the option on your command from "vfat" to "ntfs".
Using /dev/sdb1 as your USB Drive - the fdisk -l command will reveal what device your USB drive is assigned to. Remember to replease /dev/sdb1 with the one assigned to your device/drive;
Code:
# The comments appended with the "#" need not be pasted to your command line
# List your devices (drives)
fdisk -l
# Create the directory for the mount
mkdir /mnt/sdb1
# Create a backup copy of the /etc/fstab file
cp /etc/fstab /etc/fstab.bak
# This sends an edit line to the /etc/fstab file from the command line
printf "\n/dev/sdb1 /mnt/sdb1 ntfs defaults 0 0\n" >> /etc/fstab
# The mount -a command will mount your drive utilizing the /etc/fstab
mount -a
Heres what worked with a USB floppy drive on an Acer Aspire 1551
and Ubuntu 10.04 LTS
To mount a floppy
Make somewhere to mount it: (unless this is all ready done)
# sudo mkdir /media/USBfloppy
Mount it manually: (first make sure the USB disk is called "sdc" using Disk Utility)
# sudo mount -t msdos -o uid=1000,gid=1000 /dev/sdc /media/USBfloppy (for msdos disk)
# sudo mount -o uid=1000,gid=1000 /dev/sdc /media/USBfloppy (without specifying type)
-o means options follow. user IDs and group IDs of a 1000 and up refer to ordinary users.
this will mount the disk with usage by uid=1000
Go to Administration - Users and Groups to see your uid and gid
# sudo umount USBfloppy or # sudo umount /media/USBfloppy to unmount
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.