D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] auto creating fstab

 

Use as root "mount -a" instead of a reboot

I have had trouble after going from Fedora8 to Mint 9 with a new PC
Mint looks at the type of device and also the associated app and decides
on how the device should be "mounted".
For example I used CD/DVD creator in Fedora on a regular job reproducing
DVDs from a Master for a customer. In mint the Master Dvd is never
mounted as it's a block device, but it will play as a DVD when the right
app is opened.  This confused me for a while until I realised if I just
us the right App ie K3b.  It shows the Master and blank disks where
Nautilus doesn't. So I have learnt that when moving forward to a new
setup don't try to make the old stuff work as is as I too could have
spent needless time forcing fstab to do what the system does on it's
own!


On Thu, 2010-09-30 at 12:20 +0100, Gordon Henderson wrote:
> On Thu, 30 Sep 2010, tom wrote:
> 
> > On 30/09/10 11:05, Gordon Henderson wrote:
> 
> >> What's a UUID? I seem to survive without them...
> >> 
> >> Extract from my desktops /etc/fstab:
> >> 
> >> /dev/fd0                        /floppy auto    user,noauto               0 
> >> 0
> >> /dev/cdrom                      /cdrom  iso9660 ro,user,noauto            0 
> >> 0
> >> /dev/dvd                        /dvd    iso9660 ro,user,noauto            0 
> >> 0
> >> /dev/sdb1                       /camera msdos   user,noauto               0 
> >> 0
> >> /dev/sdb                        /n900   vfat    user,noauto               0 
> >> 0
> >> 
> >> /dev/sda1        /       ext3    errors=remount-ro                0 1
> >> /dev/sda2        none    swap    sw                               0 0
> >> /dev/sda3        /usr    ext3    defaults,noatime,data=writeback  0 2
> >> /dev/sda4        /var    ext3    defaults,noatime,data=writeback  0 2
> >> 
> >> 
> >> Obviously I can't have my camera and phone plugged in at the same time, but 
> >> that's not physicaly possible for my anyway due to the way I have an 
> >> extension cable from the box...
> >> 
> >> If I plug in a usb-data key, it almost always looks like 'camera', so I 
> >> just type mount /camera and it works.
> >> 
> >> But then, I don't have a fancy desktop/filemanager thing to wory about 
> >> finding stuff and copying it to/from devices.
> >> 
> >> I know I'm old, boring and of a dying breed, but I do feel that my system 
> >> is more "productive" to the way I work than anything else...
> >> 
> >>> And as for build time - these sodding USB devices often arnt there at 
> >>> build time!
> >> 
> >> Same here - but I just edit them into fstab afterwards...
> >> 
> >> Gordon
> >> 
> > But that can require several re-boots to get it right - and this machine is 
> > SLOOOOOOOOOW. I share out the USB drives and I'd like to just go 'use that' 
> > once I've got stuff sorted so when we get one of our regular power cuts I 
> > dont have to edit via SSH, or if fstab is borked pull the damn thing out of 
> > the cupboard and wire it up to monitor etc.
> 
> Hm. What's a reboot? I seem to survive without them.
> 
> Really - you don't need a reboot when editing /etc/fstab... If you do, 
> something in your system is broken. The noauto parameter tells the system 
> to not try to mount it at boot time and the user option lets ordinary 
> users do the mount without becoming root...
> 
> > I seem to remember there was a simple way of doing it - in my dreams perhaps 
> > ..
> 
> I think my way is simple, but then I've been doing it that way for more 
> years than I care to remember...
> 
> Gordon
> 
Regards

Kevin Lucas
Minions Post Master(Sub) 
Ten Years in the Making!
www.minionsbandb.co.uk
www.tearooms.minionsbandb.co.uk
Po House, Minions,
Liskeard Cornwall 
PL14 5LE
01579363386


-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq