Ubuntu recognize the USB drive [pen drive] but it doesn't show it on MY COMPUTER

Asked by Henrique Faria on 2011-04-21

Hello guys, how are you? I hope fine..
well my problem is:
I have just installed Ubuntu 10.10, and I'm trying to upload the files to my notebook, but the USB drive I'm using[a kingston pendrive and an external HD] are not appearing on MY COMPUTER.
I know the system recognize the devices because I checked it using this:

:~$ lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 003: ID 15d9:0a4d Trust International B.V.
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 011: ID 13fe:1f00 Kingston Technology Company Inc. DataTraveler 2.0 4GB Flash Drive / Patriot Xporter 32GB (PEF32GUSB) Flash Drive
Bus 002 Device 003: ID 04f2:b178 Chicony Electronics Co., Ltd
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

And I checked on System>>Administration>>Disk Utilization as well, and it is there...

But the point is: how do I access it? I mean, how do I open it to retrieve the files that are there?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu nautilus Edit question
Assignee:
No assignee Edit question
Solved by:
Andre Mangan
Solved:
2011-05-15
Last query:
2011-05-15
Last reply:
2011-04-24

This question was reopened

Andre Mangan (kyphi) said : #1

Open the configuration editor by typing the following command into a terminal (Applications, Accessories, Terminal): gconf-editor

When the editor opens, click on "apps", scroll down to "nautilus" and then open the entry called "desktop" where you will find an entry called "volumes visible". Place a tick into the box next to it.

Now your plugged in USB devices will appear on your Desktop as well as other places.

Andre Mangan (kyphi) said : #2

If the above does not work for you, you can either go into your BIOS to set your Floppy to Disabled or use the terminal to type: sudo modprobe -r floppy

Then reboot your computer.

Henrique Faria (henriquecofa) said : #3

Hello Andre,
first and foremost, thanks for yr reply.

I tried both procedures you suggested, but I still can't access my pendrive =/ by the way, "Volumes visible" was already checked.
the strangest thing is that I'm using my mouse by USB plugin, and it works fine...

what else should I do?

Andre Mangan (kyphi) said : #4

Go to System, Administration, Users & Groups, click on "Advanced Settings", open the "User Privileges" tab and check that "Access external storage devices automatically" is ticked (as well as everything else if appropriate).

Type 'gksudo nautilus' (without the quotation marks) into a terminal. Click twice on the arrow next to "Root" to expand the directory tree. Click on "media". Click on your USB drive which should be listed there. To close click on File and then Close.

Try other USB ports. Note that some external drives need two USB connections.

Install MountManager (sudo apt-get install mountmanager). After installation you will find it in System, Administration.

Henrique Faria (henriquecofa) said : #5

"Access external storage devices automatically" was already ticked.

I typed 'gksudo nautilus' the terminal, then it requested my password. So it opened the ROOT folder, which had just a folder called "Desktop" and, unfortunately, no arrow beside it.

You said "Try other USB ports. Note that some external drives need two USB connections.". And you know what? I noticed that my External HD worked just when my pendrive was plugged in first, is that what you meant?

I already installed that software, Mount Manager. It shows my internal HD, and my pendrive but it doesn't show the pendrive's size. Can I interact with my pendrive using it? Or just edit its partions?

Andre Mangan (kyphi) said : #6

The arrow (or triangle) is to the left of the word "Root". You need to have "Location Bar" ticked in the "View" menu.

Check in gconf-editor, apps, nautilus, preferences, media_automount that it is set to "true".

Henrique Faria (henriquecofa) said : #7

Helo, my bad, the way to view it was set as "Places" instead of "Tree", that's why there was no arrow on the left side of the word ROOT. Anyway, there is just that "Desktop" folder when I click on the arrow to drop down its contents.

media_automount is set as "true".

and just to confirm:
You said "Try other USB ports. Note that some external drives need two USB connections.". And you know what? I noticed that my External HD worked just when my pendrive was plugged in first, is that what you meant?

Andre Mangan (kyphi) said : #8

The triangle next to "Root" takes you to "File System" and then you can access the media directory where any device that you have plugged in will be visible.

By two connections I meant two connections for one device. Early Maxtor external drives needed two USB connections if connected to USB1 ports - one for power and the other for data transfer. This is no longer necessary when using USB1.1 or USB2.

Logging out for the night. Happy Easter, Henrique.

Henrique Faria (henriquecofa) said : #9

oh I see :)

I check on File System>>Media as well. There is nothing there... Unless when I'm running a CD/DVD.
Happy Easter for you too. And thank you very much for the help :D

Andre Mangan (kyphi) said : #10

Unplug all your USB devices, mouse, keyboard, etc. Then try your USB drive.

delance (olivier-delance) said : #11

Could you run command
   fdisk -l
and post result. Please indicates which ones are external media.

Henrique Faria (henriquecofa) said : #12

Hello guys,

Andre - it didn't work either...

delance - follows:

henrique@rick:~$ fdisk -l
henrique@rick:~$

nothing...

Andre Mangan (kyphi) said : #13

try: sudo fdisk -l

Henrique Faria (henriquecofa) said : #14

ah ok then.
So here it goes:

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00067d4a

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 38149 306425856 83 Linux
/dev/sda2 38149 38914 6142977 5 Extended
/dev/sda5 38149 38914 6142976 82 Linux swap / Solaris
henrique@rick:~$

Andre Mangan (kyphi) said : #15

To see if your USB drives are recognised you will have to re-issue that command with peripheral drives plugged in.

Henrique Faria (henriquecofa) said : #16

it was

Andre Mangan (kyphi) said : #17

So what was the output after issuing the command?

There are two issues here - one is that you cannot access your plugged in USB storage devices and the other is that your plugged in devices do not show on your desktop.

With your USB storage devices plugged in, open your Home directory and use the "UP" arrow twice, then open the "media" directory. If your USB device is listed, click on it to open it.

Andre Mangan (kyphi) said : #18

Henrique, could you provide the output of the following command: udisks --dump

Henrique Faria (henriquecofa) said : #19

jez... Sorry man, I didn't noticed it wasn't plgged in.

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00067d4a

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 38149 306425856 83 Linux
/dev/sda2 38149 38914 6142977 5 Extended
/dev/sda5 38149 38914 6142976 82 Linux swap / Solaris

Disk /dev/sdb: 1998 MB, 1998585856 bytes
62 heads, 62 sectors/track, 1015 cylinders
Units = cylinders of 3844 * 512 = 1968128 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000eece8

   Device Boot Start End Blocks Id System
/dev/sdb1 1 1015 1950799 83 Linux
henrique@rick:~/ccc$

I've just format it, then I created I partion in it by Administration>>Disk Utility

marcus aurelius (adbiz) said : #20

you might also want to plug your usb stick into another usb port to see if that helps.

Henrique Faria (henriquecofa) said : #21

Here it goes:

~$ udisks --dump
========================================================================
Showing information for /org/freedesktop/UDisks/devices/loop0
  native-path: /sys/devices/virtual/block/loop0
  device: 7:0
  device-file: /dev/loop0
    presentation: /dev/loop0
    by-id: /dev/disk/by-uuid/cf482053-7733-4f3f-9f0c-27af5e158e5e
  detected at: Sat 23 Apr 2011 09:46:51 PM BRT
  system internal: 1
  removable: 0
  has media: 1 (detected at Sat 23 Apr 2011 09:46:51 PM BRT)
    detects change: 0
    detection by polling: 0
    detection inhibitable: 0
    detection inhibited: 0
  is read only: 0
  is mounted: 1
  mount paths: /var/spool/havp
  mounted by uid: 0
  presentation hide: 0
  presentation nopolicy: 1
  presentation name:
  presentation icon:
  size: 104857600
  block size: 512
  job underway: no
  usage: filesystem
  type: ext3
  version: 1.0
  uuid: cf482053-7733-4f3f-9f0c-27af5e158e5e
  label:
  loop:
    filename: /var/lib/havp/havp.loop
  drive:
    vendor: Linux
    model: Loop: havp.loop
    revision:
    serial:
    WWN:
    detachable: 0
    can spindown: 0
    rotational media: Yes, unknown rate
    write-cache: unknown
    ejectable: 0
    adapter: Unknown
    ports:
    similar devices:
    media:
      compat:
    interface: (unknown)
    if speed: (unknown)
    ATA SMART: not available

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda
  native-path: /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda
  device: 8:0
  device-file: /dev/sda
    presentation: /dev/sda
    by-id: /dev/disk/by-id/ata-WDC_WD3200BEVT-11ZCT0_WD-WX60EA9HT447
    by-id: /dev/disk/by-id/scsi-SATA_WDC_WD3200BEVT-_WD-WX60EA9HT447
    by-id: /dev/disk/by-id/wwn-0x50014ee25902fa93
    by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0
  detected at: Sat 23 Apr 2011 09:46:51 PM BRT
  system internal: 1
  removable: 0
  has media: 1 (detected at Sat 23 Apr 2011 09:46:51 PM BRT)
    detects change: 0
    detection by polling: 0
    detection inhibitable: 0
    detection inhibited: 0
  is read only: 0
  is mounted: 0
  mount paths:
  mounted by uid: 0
  presentation hide: 0
  presentation nopolicy: 0
  presentation name:
  presentation icon:
  size: 320072933376
  block size: 512
  job underway: no
  usage:
  type:
  version:
  uuid:
  label:
  partition table:
    scheme: mbr
    count: 3
  drive:
    vendor: ATA
    model: WDC WD3200BEVT-11ZCT0
    revision: 11.01A11
    serial: WD-WX60EA9HT447
    WWN: 50014ee25902fa93
    detachable: 0
    can spindown: 1
    rotational media: Yes, at 5400 RPM
    write-cache: enabled
    ejectable: 0
    adapter: /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e2
    ports:
      /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e2/host0
    similar devices:
    media:
      compat:
    interface: ata
    if speed: (unknown)
    ATA SMART: Updated at Sat 23 Apr 2011 11:46:52 PM BRT
      overall assessment: Good
===============================================================================
 Attribute Current|Worst|Threshold Status Value Type Updates
===============================================================================
 raw-read-error-rate 200|200| 51 good 0 Pre-fail Online
 spin-up-time 185|183| 21 good 1.7 secs Pre-fail Online
 start-stop-count 100|100| 0 n/a 670 Old-age Online
 reallocated-sector-count 200|200|140 good 0 sectors Pre-fail Online
 seek-error-rate 100|253| 0 n/a 0 Old-age Online
 power-on-hours 99| 99| 0 n/a 49.8 days Old-age Online
 spin-retry-count 100|100| 51 good 0 Pre-fail Online
 calibration-retry-count 100|100| 0 n/a 0 Old-age Online
 power-cycle-count 100|100| 0 n/a 637 Old-age Online
 power-off-retract-count 200|200| 0 n/a 73 Old-age Online
 load-cycle-count 198|198| 0 n/a 8126 Old-age Online
 temperature-celsius-2 98| 89| 0 n/a 49C / 120F Old-age Online
 reallocated-event-count 200|200| 0 n/a 0 Old-age Online
 current-pending-sector 200|200| 0 n/a 0 sectors Old-age Online
 offline-uncorrectable 100|253| 0 n/a 0 sectors Old-age Offline
 udma-crc-error-count 200|200| 0 n/a 0 Old-age Online
 multi-zone-error-rate 100|253| 51 good 0 Pre-fail Offline

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda1
  native-path: /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1
  device: 8:1
  device-file: /dev/sda1
    presentation: /dev/sda1
    by-id: /dev/disk/by-id/ata-WDC_WD3200BEVT-11ZCT0_WD-WX60EA9HT447-part1
    by-id: /dev/disk/by-id/scsi-SATA_WDC_WD3200BEVT-_WD-WX60EA9HT447-part1
    by-id: /dev/disk/by-id/wwn-0x50014ee25902fa93-part1
    by-id: /dev/disk/by-uuid/c379db78-468b-4522-931e-ea408e69eaf5
    by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part1
  detected at: Sat 23 Apr 2011 09:46:51 PM BRT
  system internal: 1
  removable: 0
  has media: 1 (detected at Sat 23 Apr 2011 09:46:51 PM BRT)
    detects change: 0
    detection by polling: 0
    detection inhibitable: 0
    detection inhibited: 0
  is read only: 0
  is mounted: 1
  mount paths: /
  mounted by uid: 0
  presentation hide: 0
  presentation nopolicy: 0
  presentation name:
  presentation icon:
  size: 313780076544
  block size: 512
  job underway: no
  usage: filesystem
  type: ext4
  version: 1.0
  uuid: c379db78-468b-4522-931e-ea408e69eaf5
  label:
  partition:
    part of: /org/freedesktop/UDisks/devices/sda
    scheme: mbr
    number: 1
    type: 0x83
    flags: boot
    offset: 1048576
    alignment offset: 0
    size: 313780076544
    label:
    uuid:

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda2
  native-path: /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda2
  device: 8:2
  device-file: /dev/sda2
    presentation: /dev/sda2
    by-id: /dev/disk/by-id/ata-WDC_WD3200BEVT-11ZCT0_WD-WX60EA9HT447-part2
    by-id: /dev/disk/by-id/scsi-SATA_WDC_WD3200BEVT-_WD-WX60EA9HT447-part2
    by-id: /dev/disk/by-id/wwn-0x50014ee25902fa93-part2
    by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part2
  detected at: Sat 23 Apr 2011 09:46:51 PM BRT
  system internal: 1
  removable: 0
  has media: 1 (detected at Sat 23 Apr 2011 09:46:51 PM BRT)
    detects change: 0
    detection by polling: 0
    detection inhibitable: 0
    detection inhibited: 0
  is read only: 0
  is mounted: 0
  mount paths:
  mounted by uid: 0
  presentation hide: 0
  presentation nopolicy: 0
  presentation name:
  presentation icon:
  size: 1024
  block size: 512
  job underway: no
  usage:
  type:
  version:
  uuid:
  label:
  partition:
    part of: /org/freedesktop/UDisks/devices/sda
    scheme: mbr
    number: 2
    type: 0x05
    flags:
    offset: 313782172672
    alignment offset: 0
    size: 6290408448
    label:
    uuid:

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda5
  native-path: /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5
  device: 8:5
  device-file: /dev/sda5
    presentation: /dev/sda5
    by-id: /dev/disk/by-id/ata-WDC_WD3200BEVT-11ZCT0_WD-WX60EA9HT447-part5
    by-id: /dev/disk/by-id/scsi-SATA_WDC_WD3200BEVT-_WD-WX60EA9HT447-part5
    by-id: /dev/disk/by-id/wwn-0x50014ee25902fa93-part5
    by-id: /dev/disk/by-uuid/2fe8bedd-e203-4b1f-b069-3d4a56b30194
    by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part5
  detected at: Sat 23 Apr 2011 09:46:51 PM BRT
  system internal: 1
  removable: 0
  has media: 1 (detected at Sat 23 Apr 2011 09:46:51 PM BRT)
    detects change: 0
    detection by polling: 0
    detection inhibitable: 0
    detection inhibited: 0
  is read only: 0
  is mounted: 0
  mount paths:
  mounted by uid: 0
  presentation hide: 0
  presentation nopolicy: 0
  presentation name:
  presentation icon:
  size: 6290407424
  block size: 512
  job underway: no
  usage: other
  type: swap
  version: 2
  uuid: 2fe8bedd-e203-4b1f-b069-3d4a56b30194
  label:
  partition:
    part of: /org/freedesktop/UDisks/devices/sda
    scheme: mbr
    number: 5
    type: 0x82
    flags:
    offset: 313782173696
    alignment offset: 0
    size: 6290407424
    label:
    uuid:

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdb
  native-path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3/2-3:1.0/host11/target11:0:0/11:0:0:0/block/sdb
  device: 8:16
  device-file: /dev/sdb
    presentation: /dev/sdb
    by-id: /dev/disk/by-id/usb-Kingston_DataTraveler_2.0_5B821B00024B-0:0
    by-path: /dev/disk/by-path/pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0
  detected at: Sat 23 Apr 2011 10:32:25 PM BRT
  system internal: 0
  removable: 1
  has media: 1 (detected at Sat 23 Apr 2011 10:32:25 PM BRT)
    detects change: 1
    detection by polling: 1
    detection inhibitable: 1
    detection inhibited: 0
  is read only: 0
  is mounted: 0
  mount paths:
  mounted by uid: 0
  presentation hide: 0
  presentation nopolicy: 0
  presentation name:
  presentation icon:
  size: 1998585856
  block size: 512
  job underway: no
  usage:
  type:
  version:
  uuid:
  label:
  partition table:
    scheme: mbr
    count: 1
  drive:
    vendor: Kingston
    model: DataTraveler 2.0
    revision: PMAP
    serial: 5B821B00024B
    WWN:
    detachable: 1
    can spindown: 0
    rotational media: Yes, unknown rate
    write-cache: unknown
    ejectable: 0
    adapter: Unknown
    ports:
    similar devices:
    media:
      compat:
    interface: usb
    if speed: 480000000 bits/s
    ATA SMART: not available

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdb1
  native-path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3/2-3:1.0/host11/target11:0:0/11:0:0:0/block/sdb/sdb1
  device: 8:17
  device-file: /dev/sdb1
    presentation: /dev/sdb1
    by-id: /dev/disk/by-id/usb-Kingston_DataTraveler_2.0_5B821B00024B-0:0-part1
    by-id: /dev/disk/by-uuid/857a134a-57d2-40a6-8c17-e7f82fca5dfd
    by-path: /dev/disk/by-path/pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0-part1
  detected at: Sat 23 Apr 2011 10:32:25 PM BRT
  system internal: 0
  removable: 0
  has media: 1 (detected at Sat 23 Apr 2011 10:32:25 PM BRT)
    detects change: 0
    detection by polling: 0
    detection inhibitable: 0
    detection inhibited: 0
  is read only: 0
  is mounted: 0
  mount paths:
  mounted by uid: 0
  presentation hide: 0
  presentation nopolicy: 0
  presentation name:
  presentation icon:
  size: 1997618176
  block size: 512
  job underway: no
  usage: filesystem
  type: ext4
  version: 1.0
  uuid: 857a134a-57d2-40a6-8c17-e7f82fca5dfd
  label: pendrive
  partition:
    part of: /org/freedesktop/UDisks/devices/sdb
    scheme: mbr
    number: 1
    type: 0x83
    flags:
    offset: 31744
    alignment offset: 0
    size: 1997618176
    label:
    uuid:

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sr0
  native-path: /sys/devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr0
  device: 11:0
  device-file: /dev/sr0
    presentation: /dev/sr0
    by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0
  detected at: Sat 23 Apr 2011 09:46:51 PM BRT
  system internal: 0
  removable: 1
  has media: 1 (detected at Sat 23 Apr 2011 10:08:58 PM BRT)
    detects change: 1
    detection by polling: 1
    detection inhibitable: 1
    detection inhibited: 0
  is read only: 0
  is mounted: 1
  mount paths: /media/Meu Disco
  mounted by uid: 1000
  presentation hide: 0
  presentation nopolicy: 0
  presentation name:
  presentation icon:
  size: 1457061888
  block size: 2048
  job underway: no
  usage: filesystem
  type: iso9660
  version: Joliet\x20Extension
  uuid:
  label: Meu Disco
  optical disc:
    blank: 0
    appendable: 0
    closed: 1
    num tracks: 1
    num audio tracks: 0
    num sessions: 1
  drive:
    vendor: TSSTcorp
    model: CDDVDW TS-L633C
    revision: TM01
    serial:
    WWN:
    detachable: 0
    can spindown: 0
    rotational media: Yes, unknown rate
    write-cache: unknown
    ejectable: 1
    adapter: /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e2
    ports:
      /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e2/host1
    similar devices:
    media: optical_dvd_r
      compat: optical_cd optical_cd_r optical_cd_rw optical_dvd optical_dvd_plus_r optical_dvd_plus_r_dl optical_dvd_plus_rw optical_dvd_r optical_dvd_ram optical_dvd_rw
    interface: scsi
    if speed: (unknown)
    ATA SMART: not available

========================================================================
henrique@rick:~$

Henrique Faria (henriquecofa) said : #22

you see? I t shows the pendrive there in this report... But I can't access it.... neither by MY COMPUTER nor FYLE SYSTEM>>MEDIA

Best Andre Mangan (kyphi) said : #23

Thanks for all the information.

I had suspected a corrupt "udisks" but that appears not to be the case, however, you might consider reinstalling it via synaptic.

To what file system have you formatted your external drive and pen drive?

USB stick are formatted to FAT32.

In System, Administration use the "Partition Editor" (with the USB devices plugged in) to check on the file system. All my USB sticks are FAT32 and my external USB drive is ext4.

In System, Administration you will find the "Disk Utility" which will show your plugged in devices and also give you the opportunity to format.

Henrique Faria (henriquecofa) said : #24

Hey guys, I have solved this problem with the following changes as root:

henrique@rick:~$ sudo su
[sudo] password for henrique:
Sorry, try again.
[sudo] password for henrique:
root@rick:/home/henrique# ls -lad /dev/sdb*
brw-rw---- 1 root disk 8, 16 2011-04-25 20:42 /dev/sdb
brw-rw---- 1 root disk 8, 17 2011-04-25 20:42 /dev/sdb1
root@rick:/home/henrique# mount /dev/sdb1 /media/
.hal-mtab-lock pendrive/
root@rick:/home/henrique# mount /dev/sdb1 /media/pendrive/
root@rick:/home/henrique# umount /media/
.hal-mtab-lock pendrive/
root@rick:/home/henrique# umount /media/pendrive/
root@rick:/home/henrique# gparted
The program 'gparted' is currently not installed. You can install it by typing:
apt-get install gparted
root@rick:/home/henrique# fdisk /dev/sdb

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): q

root@rick:/home/henrique# cfdisk /dev/sdb

Disk has been changed.

WARNING: If you have created or modified any
DOS 6.x partitions, please see the cfdisk manual
page for additional information.
root@rick:/home/henrique# mk
mkdir mkfs.bfs mkfs.ntfs mk_modmap
mkdiskimage mkfs.cramfs mkfs.vfat mknod
mkdosfs mkfs.ext2 mkhomedir_helper mkntfs
mke2fs mkfs.ext3 mkinitramfs mkpasswd
mkfifo mkfs.ext4 mkinitramfs-kpkg mkswap
mkfontdir mkfs.ext4dev mkisofs mktap
mkfontscale mkfs.minix mklost+found mktemp
mkfs mkfs.msdos mkmanifest mkzftree
root@rick:/home/henrique# mkf
mkfifo mkfs mkfs.ext2 mkfs.ext4dev mkfs.ntfs
mkfontdir mkfs.bfs mkfs.ext3 mkfs.minix mkfs.vfat
mkfontscale mkfs.cramfs mkfs.ext4 mkfs.msdos
root@rick:/home/henrique# mkf
mkfifo mkfs mkfs.ext2 mkfs.ext4dev mkfs.ntfs
mkfontdir mkfs.bfs mkfs.ext3 mkfs.minix mkfs.vfat
mkfontscale mkfs.cramfs mkfs.ext4 mkfs.msdos
root@rick:/home/henrique# mkfs
mkfs mkfs.ext2 mkfs.ext4dev mkfs.ntfs
mkfs.bfs mkfs.ext3 mkfs.minix mkfs.vfat
mkfs.cramfs mkfs.ext4 mkfs.msdos
root@rick:/home/henrique# mkfs.vfat /dev/sd
sda sda1 sda2 sda5 sdb sdb1
root@rick:/home/henrique# mkfs.vfat /dev/sd
sda sda1 sda2 sda5 sdb sdb1
root@rick:/home/henrique# mkfs.vfat /dev/sdb
sdb sdb1
root@rick:/home/henrique# mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.9 (31 Jan 2010)
root@rick:/home/henrique# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 301617648 83523764 202772592 30% /
none 1002784 284 1002500 1% /dev
none 1010912 192 1010720 1% /dev/shm
none 1010912 220 1010692 1% /var/run
none 1010912 0 1010912 0% /var/lock
/dev/loop0 99150 5671 88359 7% /var/spool/havp
/home/henrique/.Private
                     301617648 83523764 202772592 30% /home/henrique
root@rick:/home/henrique# mkfs.ntfs /dev/sdb
sdb sdb1
root@rick:/home/henrique# mkfs.ntfs /dev/sdb1
Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes: 100% - Done.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
root@rick:/home/henrique# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 301617648 83523760 202772596 30% /
none 1002784 284 1002500 1% /dev
none 1010912 192 1010720 1% /dev/shm
none 1010912 220 1010692 1% /var/run
none 1010912 0 1010912 0% /var/lock
/dev/loop0 99150 5671 88359 7% /var/spool/havp
/home/henrique/.Private
                     301617648 83523760 202772596 30% /home/henrique
root@rick:/home/henrique# vim
The program 'vim' can be found in the following packages:
 * vim
 * vim-gnome
 * vim-tiny
 * vim-gtk
 * vim-nox
Try: apt-get install <selected package>
root@rick:/home/henrique# gedit /etc/fstab
^C
root@rick:/home/henrique# vi /etc/fstab
root@rick:/home/henrique# gedit /etc/fstab
^C
root@rick:/home/henrique# vi /etc/fstab
root@rick:/home/henrique# mkfs.
mkfs.bfs mkfs.ext2 mkfs.ext4 mkfs.minix mkfs.ntfs
mkfs.cramfs mkfs.ext3 mkfs.ext4dev mkfs.msdos mkfs.vfat
root@rick:/home/henrique# mkfs.
mkfs.bfs mkfs.ext2 mkfs.ext4 mkfs.minix mkfs.ntfs
mkfs.cramfs mkfs.ext3 mkfs.ext4dev mkfs.msdos mkfs.vfat
root@rick:/home/henrique# mkfs.vfat /dev/sdb
sdb sdb1
root@rick:/home/henrique# mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.9 (31 Jan 2010)
root@rick:/home/henrique# gedit /etc/fstab
^C
root@rick:/home/henrique# cd /media/
root@rick:/media# ls -la
total 12
drwxr-xr-x 3 root root 4096 2011-04-25 11:35 .
drwxr-xr-x 22 root root 4096 2011-04-17 13:34 ..
-rw------- 1 root root 0 2011-04-23 12:21 .hal-mtab-lock
drwxr-xr-x 2 root root 4096 2011-04-23 22:02 pendrive
root@rick:/media#

Henrique Faria (henriquecofa) said : #25

Thanks Andre Mangan, that solved my question.