How to unmount USB Drive?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
hachiroku
DD-WRT User


Joined: 30 Jan 2014
Posts: 53

PostPosted: Mon Aug 17, 2015 3:36    Post subject: How to unmount USB Drive? Reply with quote
hi within Telnet the unmount command doesn't exist. I have no drives plugged in but dd-wrt thinks the drive still exists and is mounted. enabling SES button to unmount, when enabled actually unmounts all physical drives, but with enabled does not unmount the below listed items.

currently on DD-WRT v3.0-r27506 (07/09/15) std

Disk Info
Diskspace /jffs
2%35.2M / 1.8G

Diskspace /opt
2%43.4M / 1.8G

Diskspace /jffs
2%35.2M / 1.8G

/dev/sdd mounted to swap
/dev/sda mounted to swap
/dev/sda mounted to swap
/dev/sdd mounted to swap
/dev/sdd mounted to swap



root@Archer C9:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 12.0M 12.0M 0 100% /
/dev/root 12.0M 12.0M 0 100% /
/dev/sda3 1.9G 35.2M 1.8G 2% /jffs
/dev/sdb1 1.9G 43.4M 1.8G 2% /opt
/dev/sdb3 1.9G 35.2M 1.8G 2% /jffs
Sponsor
hachiroku
DD-WRT User


Joined: 30 Jan 2014
Posts: 53

PostPosted: Mon Aug 17, 2015 4:32    Post subject: Reply with quote
forced reboot from admin menu fixed this.

i'd still like to know if it is possible to unmount without doing a full reboot.
hachiroku
DD-WRT User


Joined: 30 Jan 2014
Posts: 53

PostPosted: Mon Aug 17, 2015 7:38    Post subject: Reply with quote
not sure what is going on, but after a given set of time the USB hard drive remounts as sdb where it was at sda.

reboot of router fixes this, but over time the drive remounts to sdb, then sdd, etc.
madman999
DD-WRT Guru


Joined: 11 Jun 2012
Posts: 1042

PostPosted: Mon Aug 17, 2015 14:20    Post subject: Reply with quote
couldn;t you issue the command umount /mnt/sda1 from a terminal sshd putty session?
_________________
Please state what make and model router plus the build number and type of DD-WRT you are using. Screen prints and a network diagram can are also helpful. Before you create a new post, use the search function. Chances are your issue has happened to someone else.

Common F.A.Q.
Where can I get the latest test Firmware or older ones?
https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/

Asus RT-AC66R on 3.x 28072 Giga
TP-Link Archer C9 on 3.x r54095
notorious.dds
DD-WRT User


Joined: 24 May 2012
Posts: 376
Location: Michigan

PostPosted: Mon Aug 17, 2015 15:19    Post subject: Reply with quote
Quote:
within Telnet the unmount command doesn't exist.


Your post makes me wonder if you're actually typing the command correctly...

The command is 'umount', not 'unmount'.

... just sayin'
hachiroku
DD-WRT User


Joined: 30 Jan 2014
Posts: 53

PostPosted: Mon Aug 17, 2015 20:37    Post subject: Reply with quote
AHH! UMOUNT! thanks guys, i'll try that!

any thoughts on why every few minutes the USB HD changes locations? sda, to sdb, to sdd at random intervals, and each time the USB tab thinks the previous designation still exists. After a while it will show 4 partitions x 3 times when there is only 1 hard drive with 4 partitions. same UUID, same info, etc.

i've added
Code:
echo 1 >/sys/class/scsi_disk/0:0:0:0/allow_restart
which doesn't return an error to prevent hard drive spin down. beyond that, not too sure if its actually working.

additionally the swap partition on the USB tab returns line after line after line of /dev/sda mounted to swap...it returns so many lines that it eventually freezes the USB tab.

This will keep repeating a million times freezing the USB tab if I click into it.
/dev/sdd mounted to swap
/dev/sda mounted to swap
/dev/sda mounted to swap
/dev/sdd mounted to swap
/dev/sdd mounted to swap
madman999
DD-WRT Guru


Joined: 11 Jun 2012
Posts: 1042

PostPosted: Mon Aug 17, 2015 21:10    Post subject: Reply with quote
sounds like your drive is disconnecting and reconnecting itself-either due to incompatibility or some other reason.

if you have SES button enabled to disconnect drive, disable it. someone else mentioned they had an issue with it. I never used it myself so I don;t know if it does anything useful.

_________________
Please state what make and model router plus the build number and type of DD-WRT you are using. Screen prints and a network diagram can are also helpful. Before you create a new post, use the search function. Chances are your issue has happened to someone else.

Common F.A.Q.
Where can I get the latest test Firmware or older ones?
https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/

Asus RT-AC66R on 3.x 28072 Giga
TP-Link Archer C9 on 3.x r54095
notorious.dds
DD-WRT User


Joined: 24 May 2012
Posts: 376
Location: Michigan

PostPosted: Mon Aug 17, 2015 23:59    Post subject: Reply with quote
Just curious...

With which scheme is the drive partitioned (MSDOS, GPT, etc.)?

How is the drive partitioned (i.e. # and type of partitions)?
tmo1138
DD-WRT User


Joined: 24 Mar 2015
Posts: 175
Location: Tacoma, Wa

PostPosted: Tue Aug 18, 2015 0:46    Post subject: Reply with quote
At the risk of sounding naive.. Is there any way to unmount the USB drives without powering down *or* the umount command? Perhaps via the UI?
_________________
Routers:
Netgear R8000 - DD-WRT v3.0-r43420 std (06/15/20)
Netgear R9000 - DD-WRT v3.0-r43420 std (06/15/20)


Useful links:

Builds:
ftp://ftp.dd-wrt.com/betas/2020/


dd-wrt supported devices:
http://www.dd-wrt.com/wiki/index.php/Supported_Devices

So long <kong> and thanks for all the fish!
hachiroku
DD-WRT User


Joined: 30 Jan 2014
Posts: 53

PostPosted: Tue Aug 18, 2015 0:58    Post subject: Reply with quote
drive is formatted as EXT3. I've setup the partitions as recommended per Optware DD-WRT Wiki.

i have SES Unmount disabled as it causes my drive to mount, then almost instantly unmount.

so to answer the last response, if you turn SES Unmount on your drive will unmount. alternatively you can turn off USB core support which will disable the USB ports entirely after unmount commands i've read.


Last edited by hachiroku on Tue Aug 18, 2015 1:05; edited 1 time in total
notorious.dds
DD-WRT User


Joined: 24 May 2012
Posts: 376
Location: Michigan

PostPosted: Tue Aug 18, 2015 1:01    Post subject: Reply with quote
You can run the umount command under 'Administration' -> 'Commands' from within the GUI... but I don't know if that meets your desires.

For what it's worth, you can also save your umount command in the "Custom Script" section located at the bottom of the 'Commands' page.
tmo1138
DD-WRT User


Joined: 24 Mar 2015
Posts: 175
Location: Tacoma, Wa

PostPosted: Tue Aug 18, 2015 1:26    Post subject: Reply with quote
Ok thanks. At least I know the options.
_________________
Routers:
Netgear R8000 - DD-WRT v3.0-r43420 std (06/15/20)
Netgear R9000 - DD-WRT v3.0-r43420 std (06/15/20)


Useful links:

Builds:
ftp://ftp.dd-wrt.com/betas/2020/


dd-wrt supported devices:
http://www.dd-wrt.com/wiki/index.php/Supported_Devices

So long <kong> and thanks for all the fish!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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