Re: [gentoo-user] Re: fstab cleanup

2014-05-26 Thread Stefan G. Weichinger
Am 26.05.2014 06:47, schrieb Nikos Chantziaras:
 On 21/05/14 13:32, Stefan G. Weichinger wrote:

 Do I still need these lines .. especially with a modern
 systemd/gnome3-environment?

 tmpfs   /dev/shmtmpfs
 nodev,nosuid,noexec 0 0

 /dev/cdrw   /media/cdrecorder   auto
 user,exec,noauto,managed 0 0
 
 You can safely delete both. A /dev/shm mount is created automatically,
 and /media/cdrecorder is not used by anything.

Some old cruft left from back then somedays --- removed it already, yes.




[gentoo-user] Re: fstab cleanup

2014-05-25 Thread Nikos Chantziaras

On 21/05/14 13:32, Stefan G. Weichinger wrote:


Do I still need these lines .. especially with a modern
systemd/gnome3-environment?

tmpfs   /dev/shmtmpfs
nodev,nosuid,noexec 0 0

/dev/cdrw   /media/cdrecorder   auto
user,exec,noauto,managed 0 0


You can safely delete both. A /dev/shm mount is created automatically, 
and /media/cdrecorder is not used by anything.





[gentoo-user] Re: fstab and cdrom question

2009-12-17 Thread walt

On 12/17/2009 10:42 AM, Denis wrote:

Hello folks,

Quick question.

My main HD is SATA and gets /dev/sda in fstab.  My CDROM, which is the
only device on the IDE bus, seems to be /dev/hda.  That's what
Audacious declared when it was looking for a CD to play.  I had CDROM
device forced to /dev/cdrom in Audacious, unwittingly, before and was
wondering why my CDs were not playing!  However, my fstab is still
/dev/cdrom  /mnt/cdrom  autonoauto,user
   0 0 - so should I switch this to /dev/hda instead of /dev/cdrom?
If so, should some link be made to /dev/cdrom, if other programs may
be querying /dev/cdrom for the sake of Linux standard convention, or
is /dev/cdrom already a link, which was broken in my case?


Take a look at /etc/udev/rules.d/70-persisten-cd.rules, which may
be pointing to the wrong hardware.  Just delete that file and udev
will create it again on the next boot.




[gentoo-user] Re: fstab and cdrom question

2009-12-17 Thread walt

On 12/17/2009 12:14 PM, Denis wrote:

The default udev scripts should have been able to automatically create
symlinks for optical devices in /dev. Whether yours is broken, you can
find out by trying to ls -l /dev/cdrom :)


It appears the links /dev/cdrom1 and /dev/cdrw1 are tied to /dev/hda.
Is that the default behavior instead of /dev/cdrom now?


That's what I have on my machines, except that I have /dev/cdrom instead of
cdrom1.  Do you have more than one cd device?  If not, you should delete
/etc/udev/rules/70-persistent-cd.rules and reboot.





[gentoo-user] Re: fstab and cdrom question

2009-12-17 Thread Nikos Chantziaras

On 12/17/2009 08:42 PM, Denis wrote:

Hello folks,

Quick question.

My main HD is SATA and gets /dev/sda in fstab.  My CDROM, which is the
only device on the IDE bus, seems to be /dev/hda.  That's what
Audacious declared when it was looking for a CD to play.  I had CDROM
device forced to /dev/cdrom in Audacious, unwittingly, before and was
wondering why my CDs were not playing!  However, my fstab is still
/dev/cdrom  /mnt/cdrom  autonoauto,user
   0 0 - so should I switch this to /dev/hda instead of /dev/cdrom?
If so, should some link be made to /dev/cdrom, if other programs may
be querying /dev/cdrom for the sake of Linux standard convention, or
is /dev/cdrom already a link, which was broken in my case?

Thank you,
Denis


You don't need an fstab entry at all.  These days, when you insert a CD, 
it will get mounted automatically and appear in /media, just like USB 
storage devices.





[gentoo-user] Re: fstab question

2007-08-16 Thread James
Colleen Beamer colleen.beamer at gmail.com writes:

 
 The wrinkle is that my son bought me a usbstick.  I can mount it just
 fine.  However, if my usb external hard drive is not powered on on boot,
 the stick is recognized at sdc1.  If the usb drive is powered on then,
 the stick is recognized as sdd1.  So, this means that if I want to use
 one or the other or both, I keep having to change fstab.  Is there a way
 I can set the device to always be the same - i.e.  I always want the usb
 external drive to be sdc1 and sdc2 and the usb stick to be sdd1.



eix ivman


May just do the trick. It's what I use on systems with lots of different media
being attached. It even discovered my sony handycam DCR SR42 (one i figured out
that you have to surf thru a few menus and push a few buttons on the camera's
touch screen).


If you want something locked down, udev is your most reliable method,
particulary if the device is always on your system. If 
you, like most of use, 'plug in' all sorts of different usb type devices
over the coarse of a week, IVMAN is my recommendation.

Ivman is like dating, you try lots of different things

udev is where you are serious and dedicated



ymmv-hth,

James



-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: fstab question

2007-08-16 Thread Mark Knecht
On 8/16/07, James [EMAIL PROTECTED] wrote:
 Colleen Beamer colleen.beamer at gmail.com writes:


  The wrinkle is that my son bought me a usbstick.  I can mount it just
  fine.  However, if my usb external hard drive is not powered on on boot,
  the stick is recognized at sdc1.  If the usb drive is powered on then,
  the stick is recognized as sdd1.  So, this means that if I want to use
  one or the other or both, I keep having to change fstab.  Is there a way
  I can set the device to always be the same - i.e.  I always want the usb
  external drive to be sdc1 and sdc2 and the usb stick to be sdd1.


Label your partitions and mount by label not by device name. Works
great for me and is a necessity as I have 5 external drives of
different types.

HTH,
Mark
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: fstab devmode

2006-08-28 Thread Neil Bothwick
On Sun, 27 Aug 2006 18:07:59 -0600, Joseph wrote:

 It makes me wander if anybody experiment with other file systems
 (besides dos, ext2) on on memory sticks?

I put LVM on a memory stick recently, does that count?


-- 
Neil Bothwick

Beware of the opinion of someone without any facts.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: fstab devmode

2006-08-28 Thread Dirk Heinrichs
Am Montag, 28. August 2006 10:30 schrieb ext Neil Bothwick:
 On Sun, 27 Aug 2006 18:07:59 -0600, Joseph wrote:
  It makes me wander if anybody experiment with other file systems
  (besides dos, ext2) on on memory sticks?

 I put LVM on a memory stick recently, does that count?

lvmfs? Never heard of this ;-)

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.capgemini.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgpfUoqELVWNE.pgp
Description: PGP signature


Re: [gentoo-user] Re: fstab devmode

2006-08-28 Thread Neil Bothwick
On Mon, 28 Aug 2006 10:38:22 +0200, Dirk Heinrichs wrote:

  I put LVM on a memory stick recently, does that count?  
 
 lvmfs? Never heard of this ;-)

That's why I asked if it counted ;-)


-- 
Neil Bothwick

You are validating my inherent mistrust of strangers.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: fstab devmode

2006-08-28 Thread Joseph
On Mon, 2006-08-28 at 09:51 +0100, Neil Bothwick wrote:
 On Mon, 28 Aug 2006 10:38:22 +0200, Dirk Heinrichs wrote:
 
   I put LVM on a memory stick recently, does that count?  
  
  lvmfs? Never heard of this ;-)
 
 That's why I asked if it counted ;-)

What is the result (disk space) in comparison to vfat, ext2 etc.?

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: fstab devmode

2006-08-28 Thread Neil Bothwick
On Mon, 28 Aug 2006 10:50:09 -0600, Joseph wrote:

   lvmfs? Never heard of this ;-)  
  
  That's why I asked if it counted ;-)  
 
 What is the result (disk space) in comparison to vfat, ext2 etc.?

As Dirk pointed out, LVM is not a filesystem. If you want maximum
portability, FAT is the best choice. If you want to cram as much as
possible on the device, either use ReiserFS or get a larger device.


-- 
Neil Bothwick

Why is the alphabet in that order? Is it because of that song?


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: fstab devmode

2006-08-28 Thread Joseph
On Mon, 2006-08-28 at 19:01 +0100, Neil Bothwick wrote:
  What is the result (disk space) in comparison to vfat, ext2 etc.?
 
 As Dirk pointed out, LVM is not a filesystem. If you want maximum
 portability, FAT is the best choice. If you want to cram as much as
 possible on the device, either use ReiserFS or get a larger device.

I just did a quick experiment with on 1Mb memory stick as to disk space
with different filesystems, so with:
- vfat  about 978Mb
- ext2 about 913Mb
- ReiserFS about 946Mb

As Richard pointed out with Linux FS certain percentage is reserved.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: fstab devmode

2006-08-28 Thread Neil Bothwick
On Mon, 28 Aug 2006 13:26:22 -0600, Joseph wrote:

  As Dirk pointed out, LVM is not a filesystem. If you want maximum
  portability, FAT is the best choice. If you want to cram as much as
  possible on the device, either use ReiserFS or get a larger device.  
 
 I just did a quick experiment with on 1Mb memory stick as to disk space
 with different filesystems, so with:
 - vfat  about 978Mb
 - ext2 about 913Mb
 - ReiserFS about 946Mb
 
 As Richard pointed out with Linux FS certain percentage is reserved.

That's true of ext2/ext3. ReiserFS uses space more efficiently,
especially when storing lots of small files, so although it may appear to
offer less space that FAT, you'll probably fit more on the drive.


-- 
Neil Bothwick

Celery is not food. It is a member of the plywood family.


signature.asc
Description: PGP signature


[gentoo-user] Re: fstab devmode

2006-08-27 Thread Harm Geerts
On Sunday 27 August 2006 20:55, Joseph wrote:
 Can someone refresh my memory?
 I'm trying to mount usb memory stick with permission 600 but it is not
 taking devmode=0600

 The current command mounts it as 755
 /dev/sda1   /mnt/camera auto
 noauto,rw,users,exec

 I've tried:
 /dev/sda1   /mnt/camera auto
 noauto,devmode=0600
 but no luck.

devmode is only available for usbfs.

for vfat you can use umask, dmask and fmask.
umask=0077 should do what you want.
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: fstab devmode

2006-08-27 Thread Harm Geerts
On Sunday 27 August 2006 23:59, Joseph wrote:
 Harm Geerts is right (thanks) umask=0077 does what I need with dos
 partition, when mounted, usb stick has a permission 700.
 What would be an alternative for ext2 file system, umask doesn't work.

I might be wrong but I'm guessing you want different permissions on the 
mountpoint.

In that case you can simply `chmod 700 /mnt/your_stick` it with ext2 (while 
mounted).
ext2 stores this and will use the same permissions the next mount.
This is true for all filesystems that support permissions (which all normal 
linux filesystems do)

umask is only intended to make up for the lack of file permissions on vfat.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: fstab devmode

2006-08-27 Thread Joseph
On Mon, 2006-08-28 at 01:23 +0200, Harm Geerts wrote:
 On Sunday 27 August 2006 23:59, Joseph wrote:
  Harm Geerts is right (thanks) umask=0077 does what I need with dos
  partition, when mounted, usb stick has a permission 700.
  What would be an alternative for ext2 file system, umask doesn't work.
 
 I might be wrong but I'm guessing you want different permissions on the 
 mountpoint.
 
 In that case you can simply `chmod 700 /mnt/your_stick` it with ext2 (while 
 mounted).
 ext2 stores this and will use the same permissions the next mount.
 This is true for all filesystems that support permissions (which all normal 
 linux filesystems do)
 
 umask is only intended to make up for the lack of file permissions on vfat.

Thanks for the explanation, I did that with chown on ext2 and it did
work. 
It makes me wander if anybody experiment with other file systems
(besides dos, ext2) on on memory sticks?

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: fstab

2006-03-23 Thread James
Keats neokeats at wanadoo.fr writes:


  I have set my /etc/fstab following the instractions of the Handbook. In the 
  example there is this entry:
  
  /dev/cdroms/cdrom0   /mnt/cdrom auto   noauto,user0  0

 you have to know the device of your cdrom 
 generaly it's a secondary master ide 
 /dev/hdc 
 so set fstab to : 
 /dev/hdc /mnt/cdrom auto   noauto,user0  0


Interest, I gues I missed this upgrading to udev, some time ago.
One one system I both  cd/DVDrom and a dvdrw dual layer. The NEC
3550A is a dual layer DVD RW which also support many CD  DVD 
formats.

grepping the dmesg file I see both devices:

ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:DMA
hdc: _NEC DVD_RW ND-3550A, ATAPI CD/DVD-ROM drive
hdc: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)
and
  
hdd: CDU5211, ATAPI CD/DVD-ROM drive
hdd: ATAPI 52X CD-ROM drive, 120kB Cache, UDMA(33)


so I should make my /etc/fstab look like this?

/dev/hdc /mnt/?auto   noauto,user0  0
/dev/hdd /mnt/cdromauto   noauto,user0  0

I also have hal/ivman/dbus  installed.

sometimes ejecting media from the command line is a challege.


James





-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: fstab

2006-03-23 Thread Keats
Le jeudi 23 mars 2006 à 21:08 +, James a écrit :

 so I should make my /etc/fstab look like this?
 
 /dev/hdc /mnt/?auto   noauto,user0  0
 /dev/hdd /mnt/cdromauto   noauto,user0  0

mkdir /mnt/cdrom2
/dev/hdc /mnt/cdrom2auto   noauto,user0  0
/dev/hdd /mnt/cdromauto   noauto,user0  0

:)


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: fstab

2006-03-23 Thread Neil Bothwick
On Thu, 23 Mar 2006 21:08:33 + (UTC), James wrote:

 so I should make my /etc/fstab look like this?
 
 /dev/hdc /mnt/?auto   noauto,user0  0
 /dev/hdd /mnt/cdromauto   noauto,user0  0
 
 I also have hal/ivman/dbus  installed.

If you use ivman (or KDE's HAL-based media handling) you don't need
anything in fstab, unless you want to override the mount points used by
ivman.


-- 
Neil Bothwick

PROSTITUTE: Receiver of swollen goods.


signature.asc
Description: PGP signature