Re: drive labels --- update to my previous post

2012-07-09 Thread Paul E Condon
On 20120706_225838, cletusjenkins wrote:
>  >  
>  > I add one line to /etc/fstab for each labeled usb external drive like 
>  > the following: 
>  >  
>  > LABEL=gflx1 /media/gflx1ext3rw,user,noauto  0   0 
>  >  
>  > And I create the named mount point in /media with: 
>  >  
>  > mkdir /media/gflx1 
>  >  
>  > I have my own system of choosing label values 
>  > , but you can create your own 
>  > system. (gflx is a contraction of Seagate GoFlex) Don't try to use 
>  > labels that are informative of the contents of the drive. You can 
>  > easily maintian a text database of  . If you choose 
>  > to have the label never change, then the extra work of adding a line 
>  > to /etc/fstab is done only once when a new device is originally 
>  > acquired and adds very little to the drill of writing and ext3 file 
>  > system onto the partition Avoid giving two devices the same LABEL. The 
>  > text database is a good aid in this. 
>  >  
>  > Its also a good idea to write the LABEL on a stickum label and place 
>  > the stickum label on the device. 
>  >  
>  > HTH 
>  > --  
>  > Paul E Condon
>  > pecon...@mesanetworks.net 
> 
> Thanks for your reply. I never thought of trying to specify these drives in 
> the fstab file. I would have thought that doing so would hose-up the 
> auto-mounter. But I'll give it a try.
> 
> These are little 1TB drives that get their power via the USB cable, so the 
> first thing I do when I get one is slap an old VHS label (the one for the top 
> of the tape not the long one for the edge) on the back of the drive to 
> catalog what it is for. I haven't bought a VHS tape in at least 9 years, but 
> like a mental patient I've kept every single extra label I ever bought for 
> every single type of media I've used. I even have extra labels for the 8" 
> floppies I used with a mini-computer my school had.
> 

Since writing about my way of dealing with pluggable drives things
have changed in a puzzling way:

I was forced to reinstall Squeeze because of a worsening instability
and kernel oops events on the computer that I use for backups. With
the new install things behave differently, very differently.  Now
there are no lines in /etc/fstab mentioning devices /dev/usb1 ,
etc. and the computer recognizes and mounts usb drives in /media
without an special lines supplied by me. It creates the mount point
dynamically, and deletes the mount point when I do umount
/media/gflx1. In a way, it behaves as if I had written a udev script,
but I don't remember doing that, so I hypothesize that the packager of
some debian package added such a script to his/her package (which
package that is, I do not know).

Now the behavior seems to be that any device that has a partition
label will be mounted under /media using the partition label string as
a mount point name. I don't have any unlabeled devices so I can't
easily discover the behavior for an unlabeled device. Some kind and
talented person seems to have fixed the problem. I'm inclined to
believe that one can have the new, better behavior without doing a
full re-install. Perhaps this post will prompt some to contribute the
name of the package whose config files need up-grading. Then you can
get this behavior without going thru the pain that I went thru.

Also, the behavior that I described in my earlier post really did
exist once-upon-a-time, but not any more, so readers of the archives
should not waste their time trying to repeat what I reported.  It
isn't true anymore. I don't know what package change made it go
away, and don't have the forensic skills to have a hope of finding
out. The new behavior is better. I really don't want to go back.

About old stickum labels: They lose their stickiness if one stores 
them in a place without proper climate control. Too hot, too cold,
or too damp, and they become useless within just a few years ;-/


-- 
Paul E Condon   
pecon...@mesanetworks.net


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120709155101.ga3...@big.lan.gnu



Re: drive labels

2012-07-08 Thread Camaleón
El 2012-07-07 a las 19:34 -0700, cletusjenkins escribió:

(resending to the list)

>  > In any case, it should be mounted under "/media" using the label, so if  
>  > it fails there has to be a reason for it (e.g., naming collisions?). 
>  >  
>  > Attach the USB disk an run "dmesg | tail -20" and "dmesg | grep -i usb",  
>  > then put here both outputs. 
> 
> Thanks for assuming I still had a genuine issue(/wasn't an idiot) and 
> continuing to offer help to me!

You're welcome but I wonder what makes you think people can think 
that...

Greetings, 

-- 
Camaleón 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120708134912.ga6...@stt008.linux.site



Re: drive labels

2012-07-08 Thread shawn wilson
fstab works. However, if it gets unworldly with device records, you can
also figure out a udev script that makes the appropriate mount point and
mounts when a device is inserted and removes it when the device is removed.
On Jul 6, 2012 8:25 PM, "Paul E Condon"  wrote:

> On 20120706_105247, cletusjenkins wrote:
> > I have several USB external drives. I have them formatted as ext3 and
> have assigned them labels (via tune2fs -L). All of my labels are made up of
> letters no numbers, spaces or other special characters. When I connect a
> drive, it's label is displayed correctly in gnome (on the desktop and when
> browsing in nautilus), but the devices is mounted as /media/usb0. If I
> connect another, it will show up in the GUI correctly and it actually gets
> mounted using the label name (/media/filebackup). Is there a way to get my
> system to mount the drive with the label instead of usb0?
>
> I add one line to /etc/fstab for each labeled usb external drive like
> the following:
>
> LABEL=gflx1 /media/gflx1ext3rw,user,noauto  0   0
>
> And I create the named mount point in /media with:
>
> mkdir /media/gflx1
>
> I have my own system of choosing label values
> , but you can create your own
> system. (gflx is a contraction of Seagate GoFlex) Don't try to use
> labels that are informative of the contents of the drive. You can
> easily maintian a text database of  . If you choose
> to have the label never change, then the extra work of adding a line
> to /etc/fstab is done only once when a new device is originally
> acquired and adds very little to the drill of writing and ext3 file
> system onto the partition Avoid giving two devices the same LABEL. The
> text database is a good aid in this.
>
> Its also a good idea to write the LABEL on a stickum label and place
> the stickum label on the device.
>
> HTH
> --
> Paul E Condon
> pecon...@mesanetworks.net
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/20120707002504.ga2...@big.lan.gnu
>
>


Re: drive labels

2012-07-07 Thread cletusjenkins
>These symptoms match exactly to Tixy's suggestion, could you please at 
>least show us your /etc/fstab? 
> 
>Kind regards, 
>Andrei 

Ah, you are right, I completely misunderstood what Tixy was saying! I went to 
try what Paul Condon suggested I saw the line specifying /media/usb0 as the 
mount point. I've looked at the fstab several times but never noticed it. DOH! 
Thanks everyone.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/862742497.13100.1341715175668.JavaMail.sas@172.29.252.227



Re: drive labels

2012-07-07 Thread Camaleón
On Fri, 06 Jul 2012 10:52:47 -0700, cletusjenkins wrote:

> I have several USB external drives. I have them formatted as ext3 and
> have assigned them labels (via tune2fs -L). All of my labels are made up
> of letters no numbers, spaces or other special characters. 

Output sample, please :-)

Also, what Debian version are you using?

> When I connect a drive, it's label is displayed correctly in gnome (on
> the desktop and when browsing in nautilus), but the devices is mounted
> as /media/usb0. If I connect another, it will show up in the GUI
> correctly and it actually gets mounted using the label name (/media
>/filebackup). Is there a way to get my system to mount the drive with
> the label instead of usb0?

In any case, it should be mounted under "/media" using the label, so if 
it fails there has to be a reason for it (e.g., naming collisions?).

Attach the USB disk an run "dmesg | tail -20" and "dmesg | grep -i usb", 
then put here both outputs.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jt938p$2af$4...@dough.gmane.org



Re: drive labels

2012-07-07 Thread Andrei POPESCU
On Vi, 06 iul 12, 22:40:49, cletusjenkins wrote:
>  >  
>  > I often see this when I install Debian on a PC using a USB stick. The 
>  > installer seems to put an entry in /etc/fstab to mount /dev/sdb 
>  > at /media/usb0. I just delete this line. 
>  >  
>  > --  
>  > Tixy 
> 
> Thanks for your reply. I'm not sure if that is the problem I am 
> having, I installed from a CD to an SATA harddrive. The USB drives I 
> have are just for files I can't fit on the internal HD that I boot 
> from. What my issue boils down to is whenever I plug in one of these 
> drives, the automounter ignores the label on the first drive I attach, 
> any subsequent drives work as I expect them to (using the label as a 
> mount point). It doesn't matter which drive I attach, it always just 
> uses /media/usb0 for the first. If I dismount it and then attach 
> another, the 2nd drive gets the /media/usb0 mount point. If I then 
> reattach the first drive, it gets mounted using the label. The 
> automounter just acts "weird" with the first device I attach.

These symptoms match exactly to Tixy's suggestion, could you please at 
least show us your /etc/fstab?

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: drive labels

2012-07-06 Thread cletusjenkins
 >  
 > I add one line to /etc/fstab for each labeled usb external drive like 
 > the following: 
 >  
 > LABEL=gflx1 /media/gflx1ext3rw,user,noauto  0   0 
 >  
 > And I create the named mount point in /media with: 
 >  
 > mkdir /media/gflx1 
 >  
 > I have my own system of choosing label values 
 > , but you can create your own 
 > system. (gflx is a contraction of Seagate GoFlex) Don't try to use 
 > labels that are informative of the contents of the drive. You can 
 > easily maintian a text database of  . If you choose 
 > to have the label never change, then the extra work of adding a line 
 > to /etc/fstab is done only once when a new device is originally 
 > acquired and adds very little to the drill of writing and ext3 file 
 > system onto the partition Avoid giving two devices the same LABEL. The 
 > text database is a good aid in this. 
 >  
 > Its also a good idea to write the LABEL on a stickum label and place 
 > the stickum label on the device. 
 >  
 > HTH 
 > --  
 > Paul E Condon
 > pecon...@mesanetworks.net 

Thanks for your reply. I never thought of trying to specify these drives in the 
fstab file. I would have thought that doing so would hose-up the auto-mounter. 
But I'll give it a try.

These are little 1TB drives that get their power via the USB cable, so the 
first thing I do when I get one is slap an old VHS label (the one for the top 
of the tape not the long one for the edge) on the back of the drive to catalog 
what it is for. I haven't bought a VHS tape in at least 9 years, but like a 
mental patient I've kept every single extra label I ever bought for every 
single type of media I've used. I even have extra labels for the 8" floppies I 
used with a mini-computer my school had.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1027613247.39640.1341641018914.JavaMail.sas1@172.29.244.248



Re: drive labels

2012-07-06 Thread cletusjenkins
 >  
 > I often see this when I install Debian on a PC using a USB stick. The 
 > installer seems to put an entry in /etc/fstab to mount /dev/sdb 
 > at /media/usb0. I just delete this line. 
 >  
 > --  
 > Tixy 

Thanks for your reply. I'm not sure if that is the problem I am having, I 
installed from a CD to an SATA harddrive. The USB drives I have are just for 
files I can't fit on the internal HD that I boot from. What my issue boils down 
to is whenever I plug in one of these drives, the automounter ignores the label 
on the first drive I attach, any subsequent drives work as I expect them to 
(using the label as a mount point). It doesn't matter which drive I attach, it 
always just uses /media/usb0 for the first. If I dismount it and then attach 
another, the 2nd drive gets the /media/usb0 mount point. If I then reattach the 
first drive, it gets mounted using the label. The automounter just acts "weird" 
with the first device I attach.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/2253221.28033.1341639949497.JavaMail.sas1@172.29.254.227



Re: drive labels

2012-07-06 Thread Paul E Condon
On 20120706_105247, cletusjenkins wrote:
> I have several USB external drives. I have them formatted as ext3 and have 
> assigned them labels (via tune2fs -L). All of my labels are made up of 
> letters no numbers, spaces or other special characters. When I connect a 
> drive, it's label is displayed correctly in gnome (on the desktop and when 
> browsing in nautilus), but the devices is mounted as /media/usb0. If I 
> connect another, it will show up in the GUI correctly and it actually gets 
> mounted using the label name (/media/filebackup). Is there a way to get my 
> system to mount the drive with the label instead of usb0?

I add one line to /etc/fstab for each labeled usb external drive like
the following:

LABEL=gflx1 /media/gflx1ext3rw,user,noauto  0   0

And I create the named mount point in /media with:

mkdir /media/gflx1

I have my own system of choosing label values
, but you can create your own
system. (gflx is a contraction of Seagate GoFlex) Don't try to use
labels that are informative of the contents of the drive. You can
easily maintian a text database of  . If you choose
to have the label never change, then the extra work of adding a line
to /etc/fstab is done only once when a new device is originally
acquired and adds very little to the drill of writing and ext3 file
system onto the partition Avoid giving two devices the same LABEL. The
text database is a good aid in this.

Its also a good idea to write the LABEL on a stickum label and place
the stickum label on the device.

HTH
-- 
Paul E Condon   
pecon...@mesanetworks.net


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120707002504.ga2...@big.lan.gnu



Re: drive labels

2012-07-06 Thread Tixy
On Fri, 2012-07-06 at 10:52 -0700, cletusjenkins wrote:
> I have several USB external drives. I have them formatted as ext3 and have 
> assigned them labels (via tune2fs -L). All of my labels are made up of 
> letters no numbers, spaces or other special characters. When I connect a 
> drive, it's label is displayed correctly in gnome (on the desktop and when 
> browsing in nautilus), but the devices is mounted as /media/usb0. If I 
> connect another, it will show up in the GUI correctly and it actually gets 
> mounted using the label name (/media/filebackup). Is there a way to get my 
> system to mount the drive with the label instead of usb0?

I often see this when I install Debian on a PC using a USB stick. The
installer seems to put an entry in /etc/fstab to mount /dev/sdb
at /media/usb0. I just delete this line.

-- 
Tixy


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1341618219.2952.6.ca...@computer2.home