IdentifyYourPendrive

From Super Grub Disk Wiki
Jump to navigationJump to search

Introduction

In some of the Super Grub Disk howtos you will need to know how to identify your pendrive. There are three ways of identifying a pendrive, its device name, its partition device name and its mount point. Device name is used usually by grub command itself and tries to read the pendrive as a whole device. Mount point helps us to modify pendrive folders and files. And finally partition device name is usually the only partition that it is found in the device.

Steps

Checking non-pendrive mountpoints

First of all you should remove your Pendrive from your computer or not plug it all. After that you run:

mount

and you save the result somewhere else.

Example:

/dev/sda1 on / type ext3 (rw,acl)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)


Checking mountpoints after pendrive is mounted

You then plug in the pendrive. Close the just opened windows. Run

mount

once more and you will see one more line that it is added to the first mount output.

Example:

/dev/sda1 on / type ext3 (rw,acl)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/sdc1 on /media/disk type vfat (rw)

Guessing Pendrive devices and mountpoints

Here we see that the partition device name that has been mounted into /media/disk mount point is: /dev/sdc1.

In order to identify the whole pendrive device name we need to remove the last number from the partition device name, in other words, the device name is:

/dev/sdc

As a summary we have:

  • mountpoint: /media/disk
  • device name: /dev/sdc
  • partition device name: /dev/sdc1