![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | |
|
Ubuntu addict and loving it
![]() Join Date: Jan 2007
Beans: 6,630
Ubuntu Development Release
|
GUI Fstab Editing with PySDM
Storage Device Manager - Worry-Free Fstab Configuration Storage Device Manager provides an easy, non-technical GUI method to make changes to mounting options without manually editing any files. It does for mounting partitions what StartUp-Manager does for editing grub's menu.lst. Storage Device Manager (PySDM) allows the full range of options available to those who manually edit fstab while simplifying the steps so that even beginners will feel comfortable making the same changes through Storage Device Manager. You no longer have to wonder if relatime is really the correct spelling.Note that pySDM is an older application that hasn't been updated recently. It has some limitations. For one, it does not make a back up copy of the /etcfstab file. Secondly, it uses the older method of identifying partitions with "sdXX" in the fstab file. The preferred method, using UUIDs or labels, must be done outside of the pySDM application if desired. Before proceeding, please note that there are some excellent references for further information regarding fstab located at the bottom of this guide. Sections: 5 Minute Guide --- Installing & Starting --- Fstab Backup --- Using PySDM When You Will Need Fstab --- Notes --- Partition Commands --- Links Quote:
Storage Device Manager is accessed via System > Administration > Storage Device Manager. From the command line, start it with "gksu pysdm". Root privilege is required since PySDM makes changes to system files. gksu is the cousin of sudo and should be used with graphical apps. If Storage Device Manager is not in your menu, install it via synaptic ( System > Administration > Synaptic Package Manager ). If you don't see 'pysdm' listed in synaptic or the following command line method is not successful, go to Synaptic > Settings > Repositories > Ubuntu Software and make sure the 'universe' repository is checked. Hit the 'Reload' button to refresh the package list and then select pysdm. You can also install it via command line with: Code:
sudo aptitude install pysdm Before modifying any system file, it is good practice to make a backup copy. If you intend to make multiple changes within a short time, I'd recommend assigning each backup a unique number (fstab.bak1, bak2, etc). To make a backup: Code:
sudo cp /etc/fstab /etc/fstab.bak1 The PySDM interface consists of 3 sections: the Partition window for selecting the partition, the General Configuration window for setting fstab options, and the Dynamic configuration rules window for modifying hot-plug device and removable settings. Partition List When Storage Device Manager starts, it reads the devices/partitions available to it and displays them in the far left window. Starting with Hardy, Ubuntu no longer refers to devices as hda even for IDE drives. Select the partition which you want to mount by expanding the drive (sda, sdb, etc) and clicking on the triangle to the left of the individual partition (sda, sdb, etc). Until you select a partition the right side of PySDM will be grayed out and unavailable for input. If you don't know which partition you want to select, go to the Which Partition? section at the bottom of this page for help. The first time PySDM works with a partition, even if an entry already exists in fstab, it will ask 'Configure Now? - click OK. General Configuration
Dynamic Configuration Rules This section enables you to set udev rules. Click on the 'New' button and you can set the conditions of Name, Model, Vendor, and bus type. After setting specifications to identify the device, you can set the user, group, device file name, and specify user's rights. You can also create a link with a name of your choosing. The settings are stored in /etc/udev/user.rules. For more information about udev configuration refer to the man page ( man udev) or the link at the bottom of this guide. 4. When You Will Need Fstab (and How to Do It) While PySDM offers an easy and safe way to change or create partition mounting instructions, there are several reasons why you might wish to edit fstab manually. Before modifying any system file, it is good practice to make a backup copy. Code:
sudo cp /etc/fstab /etc/fstab.bak gksu gedit /etc/fstab
5. Notes & Additional Information How Do I Know Which Partition to Choose? When adding a new device or after partitioning a drive, you may not be sure which partition you want to select. One method you can try is to watch the list as the device is plugged in. If it may be mounted, run "sudo umount -a". There will be some busy messages but it won't hurt anything. Then plug in the device and see if it mounts by watching the Partition List window to see if it appears. Normally PySDM will place this 'new' device at the bottom of the list, even if the letter designation is lower than some already displayed. You can use some of the commands listed later in this section to help you investigate your system's partition information. Some of the following characteristics may help you determine the partition:
'Unprivileged User' NTFS Errors NTFS-3g was incorporated in Hardy and is enabled by default. Nevertheless, it is possible to get an error message when trying to mount an NTFS partition as a specific user. The error message is:
What partitions are currently mounted? mount /dev/sda5 on / type ext3 (rw,errors=remount-ro) What is contained in my fstab (to exclude commented lines, add [ | grep -v "#" ]? cat /etc/fstab # Entry for /dev/sda5 : UUID=4d33bfe6 / ext3 defaults,errors=remount-ro 0 1 What is the UUID / LABEL of my partition? sudo blkid -c /dev/null /dev/sda1: UUID="CEECFF9EECFF7F51" TYPE="ntfs" What partitions are on my computer (note the switch is a small L)? sudo fdisk -l /dev/sda5 * 2804 4078 10241406 83 Linux How much space do I have on my partitions? df -Th /dev/sda5 ext3 9.7G 3.9G 5.4G 42% / How do I make a label for my NTFS partition? (Install ntfsprogs first) sudo ntfslabel <device> <label> sudo ntfslabel /dev/sda5 MYLABEL How do I make a label for my ext2/3 partition? (Install e2fsprogs first) sudo tune2fs -L <label> <dev> sudo tune2fs -L MYLABEL /dev/sda5 How do I make a label for my fat32 partition? Warning: This overwrites any data on the partition. sudo mkfs.vfat -F32 -n <label> <device> sudo mkfs.vfat -F 32 -n MYLABEL /dev/sda5 sudo mkfs.vfat -F32 -n /dev/sdc 1 usb.5 7. Links Ubuntu Community Related Links Introduction to Fstab UsingUUID LinuxFilesystemsExplained RenameUSBDrive (Really - How to Label Any Format) MoveMountpointHowto MountingWindowsPartitions Other Links Understanding fstab How to edit & understand /etc/fstab Understanding & Using File Permissions PyGTK Storage Device Manager Writing udev Rules What's With the Name PySDM? PySDM runs a PyGTK graphical interface = py for the python wrapper and GTK for the Gimp Tool Kit. Last edited by drs305; June 21st, 2009 at 10:37 AM.. Reason: pySDM limitations added in the introduction. |
|
|
|
|
|
|
#2 |
|
Twilight Master Bumper
![]() Join Date: May 2007
Location: New Jersey
Beans: 6,368
Ubuntu Development Release
|
Re: GUI Fstab Editing with PySDM
Moved to Tutorial & Tips. Looks like a nice guide.
You may consider adding links to some of these wiki guides where appropriate, since they are relevant and on topic: community/Fstab community/UsingUUID community/LinuxFilesystemsExplained community/RenameUSBDrive community/MoveMountpointHowto community/MountingWindowsPartitions -> community/MountingWindowsPartitions/ThirdPartyNTFS3G
__________________
Beginners Guide to Filing Bug Reports | Ubuntu Security | Grub2 Troubleshooting Suspend/Resume: Remotely Backtrace X The Bump Thread - as pointless as it sounds. ![]() Last edited by Rocket2DMn; July 27th, 2008 at 07:36 PM.. |
|
|
|
|
|
#3 |
|
Ubuntu addict and loving it
![]() Join Date: Jan 2007
Beans: 6,630
Ubuntu Development Release
|
Re: GUI Fstab Editing with PySDM
Thanks for the input.
Last edited by drs305; July 29th, 2008 at 01:09 PM.. |
|
|
|
|
|
#4 |
|
== Happy Ubuntuing ==
![]() Join Date: Mar 2008
Location: California, USA
Beans: 8,111
Ubuntu 9.04 Jaunty Jackalope
|
Re: GUI Fstab Editing with PySDM
I really like the idea of a GUI for modifying fstab, but I have few questions about pysdm:
Anyway, I like your program and think it has alot of potential, but it still is not quite "GUI enough" yet for a true noob. |
|
|
|
|
|
#5 | |
|
Ubuntu addict and loving it
![]() Join Date: Jan 2007
Beans: 6,630
Ubuntu Development Release
|
Re: GUI Fstab Editing with PySDM
Quote:
I was thinking the same thing about making a backup. You shouldn't have to go to the command line at all. In fact, your observation prompted me to get into /etc to make sure it didn't make a backup. There is a remnant .swp backup but nothing else There are a couple of other major things needing updating: allowing labels and uuid's being two of them. Added: Here are some of the deficiencies. They are more annoyances except for # 3: 1. No automatic or selectable backup of fstab. 2. No recognition or use of labels or UUIDs. 3. Uses defunct Options setting of 'Clean' presumably for fsck checking, but this will now produce errors if used. 4. Uses nls for language support rather than more commonly used iocharset. Last edited by drs305; July 30th, 2008 at 09:22 PM.. |
|
|
|
|
|
|
#6 |
|
Extra Roomy Joe
![]() Join Date: Mar 2008
Beans: 4,715
Ubuntu 9.10 Karmic Koala
|
Re: GUI Fstab Editing with PySDM
drs305, thank you for writing this excellent guide!
One small question: should gid=1000 in this line? Code:
auto,users,uid=1000,gid=100,utf8,dmask=027,fmask=137 |
|
|
|
|
|
#7 | |
|
Just Give Me the Beans!
![]() Join Date: Dec 2006
My beans are hidden!
|
Re: GUI Fstab Editing with PySDM
Quote:
1 & 2 are bad enough but even more troubling to me is the fact that it will prompt you to set up your root and swap partitions if you click on them. That makes absolutely no sense. ![]() It's too bad too, because the interface is nice and clean, should be forked/fixed/updated and installed by default IMHO. Anyone? |
|
|
|
|
| Bookmarks |
| Tags |
| edit fstab, graphical, gui, pysdm |
| Thread Tools | |
| Display Modes | |
|
|