What is the right way to mount and umount a usb driver?

Thread Tools Search this Thread
Operating Systems Linux Fedora What is the right way to mount and umount a usb driver?
# 1  
Old 09-13-2011
What is the right way to mount and umount a usb driver?

I have some questions:

1, I successfully mounted my usb drive with "sudo mount /dev/sdb1 /mnt", but I can't wirte, It says "read-only file system". But I can write it in windows.
2, After I umounted the usb drive the led of it still on, but not blinking. Is it safe to unplug it? How to let it's led off?
3, What is the right way to mount and umount a usb dirve in linux?

Thank you.

Last edited by vistastar; 09-14-2011 at 10:49 PM..
# 2  
Old 09-13-2011
What filesystem is the USB drive formatted with? The default Linux driver only has read-only access to NTFS filesystems.

The behavior of the USB drive's LED isn't always the same even between different versions of Windows! If the drive has finished unmounting, it's safe to remove.
# 3  
Old 09-13-2011
u can unmount it using following command.

#umount /mnt


#umount /dev/sdb1

and also check the fs. linux will take fat or ext only by default
# 4  
Old 09-13-2011

The file system is FAT32.

Is it necessary use 'sync' command before umount?
Is it necessary use 'eject' command after umount?
# 5  
Old 09-14-2011
Originally Posted by vistastar

The file system is FAT32.
Odd... I don't know why it's mounting it as read-only.

It's entirely possible that you just don't have permissions to access it, though. FAT32 has no owners or groups, so it just assumes root. Try mount -o uid=myuid,rw -t vfat /dev/whatever /path/to/dir where 'myuid' is your user id like in /etc/passwd.
Is it necessary use 'sync' command before umount?
Nope, umount sync's by itself. umount by itself leaves a drive in a state that's safe to shut down or remove or what have you.
Is it necessary use 'eject' command after umount?
Nope. eject just an extended umount that ejects the tray when it's done syncing and unmounting -- which only makes sense for things that have a tray, like cdrom drives.
# 6  
Old 09-14-2011
Nope. no need for sync and eject.
# 7  
Old 09-14-2011
Thank you. I know the reason, it's my usb dirve's fault. It goes wrong sometimes. After I mount it, it is writable, but some seconds later it isn't.

Another question: Why my usb drive has sdb and sdb1, while another usb drive has only sdb?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Test cases for file system mount/umount performance in HP

Hi Folks, Could anyone please assist me with the what could be the scenarios to test the file system mount/umount performance check in HPUX. Thanks in advance, Vaishey (5 Replies)
Discussion started by: Vaishey
5 Replies

2. Solaris

Usb driver update on Sun T5440

I need a help to find the patch for solaris to fix USB drivers issue on Solaris 10. The server has a PCIE card which is not recognised by the OS. I run #fmadm faulty command which report issue and recommandation to apply the new patch. I got a reference to //sun.com/msg/PCIEX-8000-6D but... (0 Replies)
Discussion started by: espengongo
0 Replies

3. UNIX for Dummies Questions & Answers

Simple way to umount NFS mount in linux

Hello... I've mounted a share using standard nomenclature for the NFS mount command with the following command line: mount -t nfs -o rw {IP address1}:/ /mnt_for_70 / {IP address2}(rw) mnt_for_70 is a mount point I created on {IP address2} I'm confuse and want to be sure I use the... (1 Reply)
Discussion started by: blaine.miller
1 Replies

4. Hardware

How to install a driver of my USB-A to Serial Cable

Hi Gurus of Unix Recently I install a OpenSolaris in My HP 530 In this moment want to install a USB-A to Serial Cable. Any guru can send a Link where I can use how reference. I want to configure a Router and my PC don't have any serial Port. My LapTOP only has USB ports. In this case I buy a... (2 Replies)
Discussion started by: andresguillen
2 Replies

5. Cybersecurity

Remove need for sudo for mount/umount

Hello, I'm trying to remove the need to use sudo to mount (in particular, binding). Modifying /etc/sudoers using visudo, I have tried: %admin ALL=NOPASSWD: /usr/bin/mount %admin ALL=NOPASSWD: /usr/bin/umountand %admin ALL=(ALL) NOPASSWD: /usr/bin/mount %admin ALL=(ALL) NOPASSWD:... (5 Replies)
Discussion started by: Narnie
5 Replies

6. Solaris

mount & umount in sigle-user mode

In Solaris 8, when I boot to single user mode, mount a device and then reboot or init 0, the system unmount it automatically. However, in Solaris 10 it does not seem to do the same. Here is what I did: {0} ok boot -s # format Searching for disks...done AVAILABLE DISK SELECTIONS: 0.... (11 Replies)
Discussion started by: StarSol
11 Replies

7. Linux

How to mount/umount disk from a non-root account

Is it possible to mount a disk from a non-root account? I'm developing a Java application which executes commands in the shell using the java.lang.Runtime.exec api, which runs fine for commands ls, df, etc., but for commands mount and umount, i have problems as I need to be root to eecute these.... (8 Replies)
Discussion started by: brendan76
8 Replies

8. Solaris

How to mount USB driver in solaris 8?

Can anyone tell me how to mount the USB driver in solaris 8? I try many time that can't to mount USB driver. It can detect the USB driver by typing #iostat -En but can't mount the driver. (1 Reply)
Discussion started by: kingsan
1 Replies

9. UNIX for Dummies Questions & Answers

solaris 8 admin I text ambiguities on mount and umount

i'm prepping for my midterm, which i will bomb. i am scurrying to finish reading the final chapter before i get down into the review. however, i came across something in chapter 8 - "mounting file systems" that has me really confused. the text says the following: then it goes on to... (2 Replies)
Discussion started by: xyyz
2 Replies

10. UNIX for Dummies Questions & Answers

Writing a script to mount and umount a drive in Linux

I have a 1 GB jazz drive. The jazz disk is used daily, both at home and at work on my Win 98 Server. So, I have to keep it in vfat format, which is fine because Linux rocks and will read it no problem. :-) However, I can't just stick the disk in the drive and open up the jazz folder in my mnt... (2 Replies)
Discussion started by: wizkid
2 Replies
Login or Register to Ask a Question