Could someone teach me how to mount a usb drive?

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
yalag
DD-WRT Novice


Joined: 09 Jul 2013
Posts: 11

PostPosted: Sun Mar 10, 2019 19:27    Post subject: Could someone teach me how to mount a usb drive? Reply with quote
I'm trying to run a program like this
https://github.com/vortex-5/ddwrt-bwmon

In order to do so apparently I have to use a usb drive.

I have one plugged in and formatted as ext4 but I cant mount it, I'm not really sure what I am doing to be honest. Here's some info

Code:
root@DD-WRT:~# fdisk -l
Disk /dev/sda: 30 GB, 32161923072 bytes, 62816256 sectors
30672 cylinders, 64 heads, 32 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device  Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/sda1    0,1,1       1023,63,32          32   62816255   62816224 29.9G 83 Linux


Code:
root@DD-WRT:~# blkid
/dev/sda1: UUID="d6d4f615-fb85-4185-9679-793f648b6769"
/dev/sda: UUID="d4b51e44-475f-482a-9ebc-ecb21284c2a8"


Code:
root@DD-WRT:~# mount -t ext4 /dev/sda1 /mnt/
mount: mounting /dev/sda1 on /mnt/ failed: No such device
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12910
Location: Netherlands

PostPosted: Mon Mar 11, 2019 7:57    Post subject: Reply with quote
Why not use the GUI to set up?
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
yalag
DD-WRT Novice


Joined: 09 Jul 2013
Posts: 11

PostPosted: Mon Mar 11, 2019 14:26    Post subject: Reply with quote
egc wrote:
Why not use the GUI to set up?


I tried it didn't work thats why I am trying to use the command line



Screen Shot 2019-03-11 at 10.24.38 AM.png
 Description:
 Filesize:  141.12 KB
 Viewed:  906 Time(s)

Screen Shot 2019-03-11 at 10.24.38 AM.png


egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12910
Location: Netherlands

PostPosted: Mon Mar 11, 2019 14:37    Post subject: Reply with quote
Well if the GUI does not work manual will also not work.

Maybe you have a router/build/kernel verion which is not working, but we do not know because you do not tell

If you would have read the forum rules you would have known that we can give you a better advice if you tell us more, at least always specify your router model, firmware build and used Kernel version.

Just to take a stab at it, are you using Kernel version 3.x?

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
yalag
DD-WRT Novice


Joined: 09 Jul 2013
Posts: 11

PostPosted: Mon Mar 11, 2019 15:18    Post subject: Reply with quote
egc wrote:
Well if the GUI does not work manual will also not work.

Maybe you have a router/build/kernel verion which is not working, but we do not know because you do not tell

If you would have read the forum rules you would have known that we can give you a better advice if you tell us more, at least always specify your router model, firmware build and used Kernel version.

Just to take a stab at it, are you using Kernel version 3.x?


sure no problem

net gear r8000
Firmware: DD-WRT v3.0-r39031 std (03/02/19)
Linux 4.4.176 #4970 SMP Sat Mar 2 08:29:17 CET 2019 armv7l
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12910
Location: Netherlands

PostPosted: Mon Mar 11, 2019 17:32    Post subject: Reply with quote
No problems with that build and router as far as I know.

Maybe your USB drive does not get enough power to run properly if it is using the USB power from the router? Consider trying an USB stick.

Attached my notes how I do it.

If everything else fails, try a build from Kong and reset to defaults, put setting in manually.



DDWRT USB storage support Public.doc
 Description:

Download
 Filename:  DDWRT USB storage support Public.doc
 Filesize:  393.5 KB
 Downloaded:  59 Time(s)


_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
yalag
DD-WRT Novice


Joined: 09 Jul 2013
Posts: 11

PostPosted: Mon Mar 11, 2019 17:53    Post subject: Reply with quote
egc wrote:
No problems with that build and router as far as I know.

Maybe your USB drive does not get enough power to run properly if it is using the USB power from the router? Consider trying an USB stick.

Attached my notes how I do it.

If everything else fails, try a build from Kong and reset to defaults, put setting in manually.


I looked at your guide but I think the problem is with the way I format this drive

Can you tell me what is the proper way to format and label the drive while inside ddwrt? I only have ddwrt as the only linux device right now. I dont have windows either
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12910
Location: Netherlands

PostPosted: Mon Mar 11, 2019 18:58    Post subject: Reply with quote
https://www.techwalla.com/articles/how-to-format-a-disk-in-busybox
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum