LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-17-2017, 02:32 PM   #16
PELinux64
LQ Newbie
 
Registered: Aug 2017
Distribution: Ubuntu
Posts: 9

Rep: Reputation: Disabled

Quote:
Originally Posted by haemogoblin View Post
I've tried doing a chroot command, but it didn't seem to do anything
chmod 777 usually works better. I do it to the root dir of all my EXT4 and F2FS formated pen drives, then they work just like FAT32, with no security nonsense getting in my way.
 
Old 10-17-2017, 02:44 PM   #17
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator response

Everyone!!

Get this thread back on topic!!

We all have contributed as to the needs and differences for a filesystem. No need to banter one another any longer.

Please get this thread back on topic!
 
1 members found this post helpful.
Old 10-21-2017, 05:19 AM   #18
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 34

Original Poster
Rep: Reputation: Disabled
Crikey Moses! I'm gone for a couple of days and when i come back there's a full conversation taking place.


Hi guys

I would like to thank everyone who took the time to reply, it is very much appreciated. Now allow me to outline the setup I'm using along with some details.

RP Model B
2xSanddisk 64gb
1xGeneric 16gb Chinese flash pen found to actually be 13gb
1xRPI Wireless USB dongle

I run the system headless and only ever connect through SSH via LAN or WAN. This suits me fine, as I only want to use BASH.

For right or wrong reason I used vfat on the usb pens connected to the Pi, the only reason I didn't go for ext4 was because Windows would be unable to read them. I apologise if i caused any confusion by saying fat in my initial post, all the flash drives are formatted in vfat which isn't limited to partitions no larger then 2GB.

One of the issues I had with my Pi was that flash drives appeared read only by default, I'm no linux guru but after some digging I discovered the following works, when enabled in my fstab.

/dev/sda1 /media/usb0 vfat rw,user,exec,umask=0000 0 0
/dev/sdb1 /media/usb1 vfat rw,user,exec,umask=0000 0 0
/dev/sdc1 /media/usb2 vfat rw,user,exec,umask=0000 0 0

There is one problem having this in the fstab, if you reboot the system with one of the flash drives removed the system throws a wobbly. I'm wondering if I can't avoid this by using the drives UUID instead of "/dev/device", what does anyone think? At this point I'm wondering outside my sphere of knowledge.


@PELinux64
Thanks for that suggestion! I'm going to make a note of that command and give it a try. I might format the smaller 16gb drive to EXT4.

Last edited by haemogoblin; 10-21-2017 at 05:23 AM.
 
Old 11-10-2017, 04:15 AM   #19
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 34

Original Poster
Rep: Reputation: Disabled
Hey everyone

Just wanted to say, I would still appreciate some help in regards to altering;

/dev/sda1 /media/usb0 vfat rw,user,exec,umask=0000 0 0

So that it uses UUID's instead, as I dont want a repeat of what happened last time. When I rebooted my server with all the flash drives unplugged, the system threw a hissy fit.
 
Old 11-10-2017, 05:50 AM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
UUIDs are a way to identify the file system since a drive may not always the same device ID.

You can use autofs which will only mount the drive when it is accessed. autofs will also automatically unmount the drive if not accessed after the timeout period has elapsed.
 
Old 11-11-2017, 04:23 AM   #21
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
UUIDs are a way to identify the file system since a drive may not always the same device ID.

You can use autofs which will only mount the drive when it is accessed. autofs will also automatically unmount the drive if not accessed after the timeout period has elapsed.



Thanks for that, do you think I could trouble you further for an example?

The flash pens usually stay plugged in to the Pi as they act at the main storage, but god forbid the system ever reboots while one isn't inserted. I would prefer it to boot it, instead of having a panic and booting in to safe mode, like it did recently.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
seeking advice on usb token mrmnemo Linux - Security 2 02-26-2011 08:33 AM
Seeking a Distro advice DickWoods Linux - Newbie 7 07-06-2009 11:12 AM
Seeking advice on script satimis Programming 1 10-05-2004 03:02 PM
Seeking Diagnosis Advice... verbal Linux - Hardware 2 09-12-2003 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration