LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2009, 07:54 AM   #1
comcastuser
Member
 
Registered: May 2004
Posts: 189

Rep: Reputation: 22
Is there a utility to manage /etc/fstab -core11


I see /etc/fstab is identifying drives by some unique data (UID=blah blah).

Is there a way I can run a program to identify drives on my system at the moment and assign a mounting point for them? Or do I have to dig into editing the fstab thing by hand?

Thanks!
 
Old 11-29-2009, 08:17 AM   #2
stoggy
Member
 
Registered: Jun 2008
Location: Dallas, TX
Distribution: Slackware and FC
Posts: 113

Rep: Reputation: 22
yea, i don't have a FC machine close by but if you go into the system menu you can get the partition editor then edit the partition and give it a mount point.


== By hand Method ==
Im using Suse right now but i can look in these dirs, everything is links to the old hdd names.

ls -l /dev/disk/by-id
ls -l /dev/disk/by-path
ls -l /dev/disk/by-uuid

I forget but I think fedora names the dirs differently but grab one of the UUID names from the fstab and run `find /dev -name $UID-You-Grabbed` then check around there for the others. Then you can use the UUID names in your fstab by hand. If its a device node then it gets harder, either you have to know the major minor numbers to find the disk or you have to search the old dev names for those numbers...
 
Old 11-29-2009, 08:37 AM   #3
comcastuser
Member
 
Registered: May 2004
Posts: 189

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by stoggy View Post
yea, i don't have a FC machine close by but if you go into the system menu you can get the partition editor then edit the partition and give it a mount point.


== By hand Method ==
Im using Suse right now but i can look in these dirs, everything is links to the old hdd names.

ls -l /dev/disk/by-id
ls -l /dev/disk/by-path
ls -l /dev/disk/by-uuid

I forget but I think fedora names the dirs differently but grab one of the UUID names from the fstab and run `find /dev -name $UID-You-Grabbed` then check around there for the others. Then you can use the UUID names in your fstab by hand. If its a device node then it gets harder, either you have to know the major minor numbers to find the disk or you have to search the old dev names for those numbers...
That's what I was trying to avoid... editing fstab by hand.

Windows just auto mounts stuff, no need to edit a fstab.

I'm showing off this system to try to get my wife and (adult) kids to try it out.
 
Old 11-29-2009, 09:34 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Windows just auto mounts stuff, no need to edit a fstab.
In my experience, linux "auto mounts stuff".

In both KDE and gnome, if you plug in a USB drive, after a moment it appears on the desktop.

This is generally managed by udev, and you can change the default behaviour by writing udev rules
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse won't boot after fstab changes - fstab not editable baking-a-77 Linux - Newbie 10 06-02-2007 10:51 AM
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
Utility to manage /etc/rc[0-6].d outtacontrol Ubuntu 1 04-20-2005 03:27 AM
Manage automatic mounting/adding to fstab of new devices?? brynjarh Debian 2 02-13-2005 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:46 PM.

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