0

After safely remove or eject it, i want to remount it without unplug it, and re-plug it again .. so Any suggestion pls?

PS

after using eject all usb memories are out of fdisk command scope i don't think it is that easy

`       Device Boot      Start         End      Blocks   Id  System
/dev/sda1       109473792  1953525167   922025688   83  Linux
/dev/sda3         2050048    99706297    48828125   83  Linux
/dev/sda4        99708926   109471743     4881409    5  Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5        99708928   109471743     4881408   82  Linux swap / Solaris

Partition table entries are not in disk order`

None of them is the usb memory

0

1 Answer 1

-1

First check what dev is your usb. It should be in FAT (most common) or NTFS

sudo fdisk -l

First you have to create mount point.

sudo mkdir /media/external

If your USB device is /dev/sdb1 and FAT

sudo mount -t vfat /dev/sdb1 /media/external -o uid=1000,gid=1000,utf8,dmask=027,fmask=137

NTFS

sudo mount -t ntfs-3g /dev/sdb1 /media/external

For unmount

sudo umount /dev/sdb1

or:

sudo umount /media/external

I basically told you what is written in the wiki.

6
  • 1
    after using eject all usb memories are out of fdisk command scope i don't think it is that easy Sep 17, 2014 at 15:44
  • This works if you use unmount as still the USB is not powered down. Using the sudo eject -t /dev/sdb which I supposed from your post that you used, the USB node will be created again and then you can mount/unmount as mentioned above. I tried this before and works perfectly fine. I will try again whenever I have access to Linux machine.
    – OdinRW
    Sep 18, 2014 at 8:26
  • why doen't appear in fdisk output then? Sep 18, 2014 at 9:34
  • 1
    Safely Remove or Eject power down the device and the node in /dev will be destroyed. Using the eject -t will trigger it and you will see it again in fdisk. Read more details here and try what I suggested.
    – OdinRW
    Sep 18, 2014 at 9:52
  • Safely Remove or Eject power down how to get it back in this case ? Sep 18, 2014 at 10:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .