Posts: 35
antix_forum_account
Joined: 01 Feb 2013
#1
Hello!
I've just installed anti-x the day before yesterday.
I look forward to a long dialogue __{{emoticon}}__

iirc, I chose the anti-x"core" option, and installed via cli-installer as in here.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://antix.mepis.org/index.php?title=Cli-installer"
linktext was:"http://antix.mepis.org/index.php?title=Cli-installer"
====================================

It's a"fresh" install as I haven't installed anything yet...

If possible, I would want to have the following functionality: a USB stick is automatically mounted when plugged in.

Maybe I'm missing something but at the moment my system doesn't seem to have this functionality...

I'm testing with the USB stick that I installed anti-x from -- its contents still are the iso image that unetbootin put on it...
Eventually, I want to plug in my external hard drive with backups, archives, etc
At the moment we lack automount functionality for both devices, as far as I can tell...

fwiw sometimes, when the USB stick is plugged in I see the following type of messages:

Code: Select all

sd: 17:0:0:0: [sdb] No Caching mode page present
Assuming drive cache: write through
Also at the moment, it's possible to mount this USB stick manually like so: sudo mount /dev/sdb1 ~/mymedia

When mounting manually like above, I see the following about this USB stick...

Code: Select all

/dev/sdb1 on /home/me/mymedia type vfat (rw,relatime,fmask=0022,dmask=0022.codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
How can I get this USB stick to mount automatically when plugged in? __{{emoticon}}__
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
Using core as it is, you can't get it to automount.
Posts: 35
antix_forum_account
Joined: 01 Feb 2013
#3
aha __{{emoticon}}__
What do I need to add/configure/tweak to core in order to have automount?

Thanks for the reply!!! __{{emoticon}}__
Posts: 35
antix_forum_account
Joined: 01 Feb 2013
#4
Alternatively, I'm thinking about starting from scratch using the"base" variant...

Using the"new_usb.sh" script seems like a good option. I've done a quick search but I can't find this script anywhere!!!

Where can I find the new_usb.sh script? __{{emoticon}}__
Posts: 1,308
BitJam
Joined: 31 Aug 2009

02 Feb 2013, 18:12 #5

You could try using make-fstab which will be released in the next LiveCD iso.

I've attached a tarball named make-fstab.gz (not .tgz in order to be upload it).

Code: Select all

# tar tzf make-fstab.gz
90-fstab-automount.rules
make-fstab
# tar xzf make-fstab.gz
# cp 90-fstab-automount.rules / etc/udev/rules.d/
# cp make-fstab /sbin/
# touch / etc/fstab.automount
Note: remove the space in front of"etc". Those spaces work around a bug in the phpBB code in these forums.

Whenever a usb drive is inserted with a recognized filesytem type, this program will add an entry in / etc/fstab , create a /media/<device> directory, and mount the device on the directory.

Note: at boot-time, this will automount every block device with a recognized filesystem that is not already listed in your fstab. To disable this behaviour create a / etc/fstab.nohotplug file. IOW:

Code: Select all

    / etc/fstab.nohotplug     disables hotplugging (and therefore automount)
    / etc/fstab.automount     enables automount
You will then need to remove fstab.nohotplug to enable hotplugging after your computer has booted.

This is not well tested outside of the LiveCD/USB environment so please make a backup of your fstab file before you use this. Also, you may run into conflicts if you edit / etc/fstab while this program is running and you are also plugging and unplugging usb block devices.

DO NOT run make-fstab directly as root since this will overwrite your fstab file.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#6
Do you want to install X in core and a windows manager or desktop environmnet, or run it X-less?
Posts: 35
antix_forum_account
Joined: 01 Feb 2013
#7
My plan is to install both X and a window manager onto core...
I'm doing some of this at the public library, and I have to go now...
If things go well, I'll be back tomorrow morning (CST) to continue the install!!!

Thanks a lot both of you for your answers __{{emoticon}}__
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#8
You may get auto mount set up with the environment you install.
Posts: 35
antix_forum_account
Joined: 01 Feb 2013
#9
Hey __{{emoticon}}__

I started from scratch, and installed base over previous core install.

At the moment I'm using dwm...

As far as I can tell, there is no automount yet. Are there more options for automount in base,
or is make-fstab as suggested above still a good idea for a"fresh" base install? __{{emoticon}}__

Hope this makes sense...
Posts: 35
antix_forum_account
Joined: 01 Feb 2013
#10
fwiw, I still get"[sdb] No Caching mode page present" when plugging in the USB stick...
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#11
Hey __{{emoticon}}__

I started from scratch, and installed base over previous core install.
This is base 64bit Antix.



I even have automount in rox on my older AntiX 8.5 and 11 installs also.

mounting-usb-devices-in-rox-t3048.html

I didn't need to do the above with this install though. It just works out of the box.

Code: Select all

System:    Host: bikertest2 Kernel: 3.7-4.towo-siduction-amd64 x86_64 (64 bit) 
           Desktop: Fluxbox 1.3.2 Distro: antiX-base-amd64 EdelweiƟpiraten 07 November 2012
Posts: 35
antix_forum_account
Joined: 01 Feb 2013
#12
Thanks for all your input __{{emoticon}}__

Unless I'm missing something, for some reason
I don't have automount out-of-the-box in a"fresh" base install...

The make-fstab script works like a charm __{{emoticon}}__

But I'm finding a little bug...
Automount works great via make-fstab, but it seems I don't have write permissions on the USB stick...

Code: Select all

$ touch /media/sdb/myfile
touch: cannot touch `/media/sdb/myfile': Permission denied
Hope this makes sense!
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#13
You will need to reformat that usb stick to ext. I gues it is formatted as fat.
If it is fat, and you want to keep it as fat, then you need to use the chown command.
Posts: 35
antix_forum_account
Joined: 01 Feb 2013
#14
Thanks for your reply __{{emoticon}}__

mmh... no, I can't remember using fat in my tests.

As far as I can tell, the current filesystem on the USB stick is ext4

I will use chown __{{emoticon}}__
Thanks!!!
Posts: 75
tradetaxfree
Joined: 18 Jan 2012
#15
The
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://github.com/IgnorantGuru/spacefm/wiki/plugins"
linktext was:"SpaceFM Mount Tools Plugin"
====================================
does a good job of automounting USB sticks.