Unmount USB help...

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


Joined: 23 Jun 2016
Posts: 147

PostPosted: Sun Jun 26, 2016 0:34    Post subject: Unmount USB help... Reply with quote
So I like an idiot didnt think to unmount the drive before pulling it. TBH, I dont even know what command I should have ran to unmount it.

That being said. What does one run to unmount a USB drive ?

Also, how do I remove what seems to be old data (/dev/sda1) from the previous mount so it doesnt show ?

--- /dev/sda1
Block device, size 1 KiB (1024 bytes)
DOS/MBR partition map
Partition 1: 1.860 GiB (1997537280 bytes, 3901440 sectors from 63)
Type 0x83 (Linux)
/dev/sda1 not mounted Unsupported Filesystem

--- /dev/sda5
Block device, size 1.860 GiB (1997537280 bytes)
Ext4 file system
Volume name "opt"
UUID <REMOVED> (NCS)
Volume size 1.860 GiB (1997537280 bytes, 1950720 blocks of 1 KiB)
/dev/sda5 mounted to /opt
Sponsor
tou.manokat@gmail.com
DD-WRT User


Joined: 07 May 2016
Posts: 111

PostPosted: Sun Jun 26, 2016 13:21    Post subject: Re: Unmount USB help... Reply with quote
MoreBloodWine wrote:
So I like an idiot didnt think to unmount the drive before pulling it. TBH, I dont even know what command I should have ran to unmount it.

That being said. What does one run to unmount a USB drive ?

Also, how do I remove what seems to be old data (/dev/sda1) from the previous mount so it doesnt show ?

--- /dev/sda1
Block device, size 1 KiB (1024 bytes)
DOS/MBR partition map
Partition 1: 1.860 GiB (1997537280 bytes, 3901440 sectors from 63)
Type 0x83 (Linux)
/dev/sda1 not mounted Unsupported Filesystem

--- /dev/sda5
Block device, size 1.860 GiB (1997537280 bytes)
Ext4 file system
Volume name "opt"
UUID <REMOVED> (NCS)
Volume size 1.860 GiB (1997537280 bytes, 1950720 blocks of 1 KiB)
/dev/sda5 mounted to /opt


Open up an ssh session and unmount it with:

umount /opt

or from "Administration, Commands" page of GUI.

In all likelihood, you might have started out creating a partition with Linux OS then tried to delete the first partition sda1 with Windows OS and tried to create a new partition on Windows OS. That's why the partition was created with extended partition (sda5). If there is no OS on the drive in question, try to remove the first partition with

"fdisk" on Linux:

fdisk /dev/sda

Then press d and 1 to delete partition 1 or sda1.

If I were you I would backup the data on partition 5 (sda5) and delete all partitions via Linux OS and create a single partition (sda1) only.

_________________
Linksys 54G v2
Linksys 54G v6
Linksys 54GS v6
Linksys 120N
Linksys Valet-M10 Tomato v132
Linksys Valet-M20 Tomato V132
Netgear WNR3400 Advanced Tomato
Netgear WNR3400 Advanced Tomato
TRENDNet TEW-632BRP DD-WRT r22118
TRENDNet TEW-632BRP DD-WRT r22118
Buffalo G300NH DD-WRT r22118
TPLINK WNDR1043ND DD-WRT r22118
TPLINK WNDR1042ND Stock
TPLINK WNDR841ND r22118
DLINK DIR-835 A1 r22118
DLINK DIR-835 A1 r22118
DLINK DIR-835 A1 r22118
DLINK DIR-501 Stock firmware
DLINK WBR-2310 Stock firmware
Linksys E3000 Shibby Tomato
Linksys E2500 Advanced Tomato
Netis WF-2404 Stock
Netis WF-2404 Stcck
Belkin N600 Extender (Bricked on its own)
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2666
Location: Indy

PostPosted: Mon Jun 27, 2016 0:38    Post subject: Re: Unmount USB help... Reply with quote
MoreBloodWine wrote:
That being said. What does one run to unmount a USB drive ?
For simple unmounting, you can enable the "Use SES Button to remove drives" option in Services->USB. I think you have to hold the button a bit for it to work...10sec? Or maybe that's just when doing the wireless toggle. Easy enough to monitor through the GUI to get the necessary timing. Smile
_________________
# NAT/SFE/CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo #
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250
|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
MoreBloodWine
DD-WRT User


Joined: 23 Jun 2016
Posts: 147

PostPosted: Mon Jun 27, 2016 0:56    Post subject: Reply with quote
Think I got it, and I was actually using MiniTool Partition Wizard from Windows.

But ya, it's a USB thumb drive I'm going to use for YAMON.

Thx.
<Kong>
DD-WRT Guru


Joined: 15 Dec 2010
Posts: 4339
Location: Germany

PostPosted: Mon Jun 27, 2016 5:34    Post subject: Re: Unmount USB help... Reply with quote
jwh7 wrote:
MoreBloodWine wrote:
That being said. What does one run to unmount a USB drive ?
For simple unmounting, you can enable the "Use SES Button to remove drives" option in Services->USB. I think you have to hold the button a bit for it to work...10sec? Or maybe that's just when doing the wireless toggle. Easy enough to monitor through the GUI to get the necessary timing. Smile


When pressing the ses button to umount, the diag light will flash, e.g. on the R7000 diag light is the power light:-)

_________________
KONG PB's: http://www.desipro.de/ddwrt/
KONG Info: http://tips.desipro.de/
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