Mounting for life

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
UsernameTaken
Posts: 34
Joined: Mon Feb 28, 2011 4:27 pm

Mounting for life

Post by UsernameTaken »

When I insert an usb drive the first time on a fresh system all works as expected, but if I at a later time insert a different drive, nothing shows up in the web gui, even after a reboot. I'm using a wr1043 and the latest firmware (1.3.13)).

I've seen the March of the Penguins so I understand mounting for life might be a natural tendency for linux devices but I still would like to make my router more promiscuous.

I don't see a fstab file in /config and putting a plate with raw oysters in front of the router didn't help either, so I'm not sure what to do now. Any help would be much appreciated.

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Mounting for life

Post by DoesItMatter »

Bravo!

This has got to be one of the greatest and funniest
help-questions posts I have ever seen on this forum!

I shall run some testing and respond back.

I've got an NTFS external and an EXT3 external USB devices
that I can try hot-swapping on my WZR-HP-G300NH and see it
it will recognize without or with a reboot.

Whenever I did testing, I always stuck with the same device.
Will post back with results.
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Mounting for life

Post by DoesItMatter »

OK.

I did testing with mounting 2 different drives on my
WZR-HP-G300NH - running Gargoyle 1.3.13

Drive 1 - NTFS External USB 1TB
Drive 2 - EXT3 USB Flash 8GB

I Mounted the EXT3 drive and set it up under the USB
Able to access - no problem, but no write access until
I reboot the router (did NOT reboot router for this test)

Able to read the EXT3 - ok - went back in to USB config and
deleted the drive mount, then pulled out the flash drive.

Connected Drive 1 - NTFS 1TB to the WZR-HP-G300NH
Went to USB menu and setup the read/write share
Able to read/write to NTFS without rebooting router.

So - swapping drives without rebooting the router DOES WORK.

You have to go into the USB menu each time and delete the
old share and re-create the new share each time you swap.
For EXT3 drives - you will have to reboot the router to get
write functionality (I had to on my WZR-HP-G300NH)

Any other router users with USB - can you do a similar USB
test and report your results here?
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

argent88
Posts: 2
Joined: Sun Apr 17, 2011 4:21 am

Re: Mounting for life

Post by argent88 »

I'm in the same situation. Same router, same gargoyle version.
When I first installed gargoyle and mounted my 16gb usb ntfs flash drive it worked, now it won't me let mount even that..

+Hahahaha for first post.

behappy
Posts: 84
Joined: Thu Mar 31, 2011 5:06 pm

Re: Mounting for life

Post by behappy »

Don't know it's a bug or not, but the missing fstab file causes a minor headache when swap between the difference usb drives.

I make a fstab file from wiki and place it on tmp folder.

config global automount
option from_fstab 1
option anon_mount 1

config global autoswap
option from_fstab 1
option anon_swap 0

With usb pen I take note that gargoyle make read/write access w. chmod 777, but usb hard drive only w. chmod 755, so I change similar for usb hard drive w. chmod 777 (your mounted usb device on folder/tmp/usb_mount/xxx)

Hope this help you.

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Mounting for life

Post by Eric »

I know this is an old post, but I've just implemented a fix for the issue described here. I've added a setting to the USB storage settings to specify whether settings should apply only to the specific USB drive connected, or to the same partition in any USB drive connected. Sorry for not getting to this sooner.

The fix is now available in the git repository, and will be included in the next release.

Post Reply