usb drive check

Status
Not open for further replies.

nirfish9

Cadet
Joined
Jan 1, 2015
Messages
6
hello ,
I want to know the size of the usb flash drive that I am currently using for my freenas OS
is there a command I can do to see that ? I dont know if the USB flash drive is big enough for the 9.3 version
thanks
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
The df command will not do what you want in FreeNAS 9.2 or below because it repartitions the drive and you will only see what is mounted. This will work however fro FreeNAS 9.3 but the values will not be clear indicators of the actual USB capacity, they will be listed as much lower due to formatting and such. For instance my 8GB flash drive shows up as 5.4GB in FreeNAS 9.3, the same 8GB drive would be indicated as 926MB in FreeNAS 9.2.1.9.

The only ways I know how to check it and this is a simple way....
1) Reboot your FreeNAS machine.
2) After it's up and running, hit the Scroll Lock key.
3) Press Page Up key and locate the section where your drives are being identified or

Or, if you know the device name (likely da0)

1) Reboot your FreeNAS machine.
2) Open the Shell in the GUI and type
Code:
cat /var/log/messages | grep da0


3) Now look only for da0 and in those messages you should see something similar (this is mine and just round up the last line to 8GB)

Code:
Jan 2 10:02:50 freenas da0 at umass-sim0 bus 0 scbus8 target 0 lun 0
Jan 2 10:02:50 freenas da0: < Patriot Memory PMAP> Removable Direct Access SCSI-0 device
Jan 2 10:02:50 freenas da0: Serial Number 07B31101001835E5
Jan 2 10:02:50 freenas da0: 40.000MB/s transfers
Jan 2 10:02:50 freenas da0: 7640MB (15646720 512 byte sectors: 255H 63S/T 973C
 

nirfish9

Cadet
Joined
Jan 1, 2015
Messages
6
The df command will not do what you want in FreeNAS 9.2 or below because it repartitions the drive and you will only see what is mounted. This will work however fro FreeNAS 9.3 but the values will not be clear indicators of the actual USB capacity, they will be listed as much lower due to formatting and such. For instance my 8GB flash drive shows up as 5.4GB in FreeNAS 9.3, the same 8GB drive would be indicated as 926MB in FreeNAS 9.2.1.9.

The only ways I know how to check it and this is a simple way....
1) Reboot your FreeNAS machine.
2) After it's up and running, hit the Scroll Lock key.
3) Press Page Up key and locate the section where your drives are being identified or

Or, if you know the device name (likely da0)

1) Reboot your FreeNAS machine.
2) Open the Shell in the GUI and type
Code:
cat /var/log/messages | grep da0


3) Now look only for da0 and in those messages you should see something similar (this is mine and just round up the last line to 8GB)

Code:
Jan 2 10:02:50 freenas da0 at umass-sim0 bus 0 scbus8 target 0 lun 0
Jan 2 10:02:50 freenas da0: < Patriot Memory PMAP> Removable Direct Access SCSI-0 device
Jan 2 10:02:50 freenas da0: Serial Number 07B31101001835E5
Jan 2 10:02:50 freenas da0: 40.000MB/s transfers
Jan 2 10:02:50 freenas da0: 7640MB (15646720 512 byte sectors: 255H 63S/T 973C
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
No problem.
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
The df command will not do what you want in FreeNAS 9.2 or below because it repartitions the drive and you will only see what is mounted. This will work however fro FreeNAS 9.3 but the values will not be clear indicators of the actual USB capacity, they will be listed as much lower due to formatting and such. For instance my 8GB flash drive shows up as 5.4GB in FreeNAS 9.3, the same 8GB drive would be indicated as 926MB in FreeNAS 9.2.1.9.

The only ways I know how to check it and this is a simple way....
1) Reboot your FreeNAS machine.
2) After it's up and running, hit the Scroll Lock key.
3) Press Page Up key and locate the section where your drives are being identified or

Or, if you know the device name (likely da0)

1) Reboot your FreeNAS machine.
2) Open the Shell in the GUI and type
Code:
cat /var/log/messages | grep da0


3) Now look only for da0 and in those messages you should see something similar (this is mine and just round up the last line to 8GB)

Code:
Jan 2 10:02:50 freenas da0 at umass-sim0 bus 0 scbus8 target 0 lun 0
Jan 2 10:02:50 freenas da0: < Patriot Memory PMAP> Removable Direct Access SCSI-0 device
Jan 2 10:02:50 freenas da0: Serial Number 07B31101001835E5
Jan 2 10:02:50 freenas da0: 40.000MB/s transfers
Jan 2 10:02:50 freenas da0: 7640MB (15646720 512 byte sectors: 255H 63S/T 973C
Your boot device remains da0?? Mine starts as da0, but then the twelve HDDs take over, and the USB boot device becomes da12 -- which is probably why the GUI does not display a Serial Number for da0 unless I force a "rescan".
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Your boot device remains da0?? Mine starts as da0, but then the twelve HDDs take over, and the USB boot device becomes da12 -- which is probably why the GUI does not display a Serial Number for da0 unless I force a "rescan".
Yes, mine remains da0 and maybe the reason yours is different could be because you have the M1015 controller. All my hard drives are ada0, ada1, ada2, etc...
 
Status
Not open for further replies.
Top