General :: Fstab Sdxx Or Uuid Or / Disk And Partitions In The Fstab File?

Jan 5, 2010

What would be the best way list disk and partitions in the fstab file?

View 1 Replies


Hardware :: Changes To Fstab (UUID's) / Revert Fstab's Listings Back To The Old /dev/hd Settings?

Jan 15, 2010

I've had two hd's in my box forever. for more space and backup reasons. Well I have started running the Debian Squeeze distro since December. I've had many issues, some are still unresolved. but now I'm running into major headaches with the fstab. Specifically dealing with/wondering why UUID's are used instead of the old /dev/hd? I was a little annoyed when I tried Kubuntu to find /dev/sd? used instead of /dev/hd? but that was workable. But the UUID's are a nightmare. Here's my problem.

My main box is finally giving up the ghost. The mobo is dying. So in order to do some tests I took my hd bundle (my two hard drives with their cables) physically out of the box and temp installed them in a test box. I wanted to do some benchmark and other tests. I got all kinds of errors. I found that the system wasn't recognizing the UUID's listed in fstab. My concern is when the new mobo gets here next week I won't simply be able to plug the hd's in like I always have been and just let Linux reconfigure itself (Debian used to be good about this). I really don't want to have to clean reinstall if it's not needed.

So for this I have two questions. WHY developers decided to drop using /dev/hd? or even /dev/sd? ?

And is it possible to revert fstab's listings back to the old /dev/hd? settings. In debian fstab had lines commented out showing how each partition was listed in it's /dev/hd? status during install.

I'm getting really sick of all these archane changes in ALL aspects of linux that don't seem to have any good explaination or need.

View 4 Replies View Related

Ubuntu Servers :: HW RAID Disk Shows Up In Fstab But Not In /dev/disk/by-uuid?

Jun 28, 2010

I have an SiI hardware SATA RAID card, with two 500GB disks in mirrored RAID configuration. When I first plugged them in and set it up, things seemed to work ok, but on boot the raid controller told me that the RAID needed rebuilding, and it would happen automatically after POST. So I didn't worry about it, and the drive mounted fine, and it's been that way for years. I just went in and manually on-line rebuilt the RAID in the controller's BIOS, and now when I boot into Ubuntu, both disks show up in fdisk, but neither show up in /dev/disk/by-uuid. Am I missing something?

View 9 Replies View Related

General :: Cameras, Pendrive: Severail UUID Into The /etc/fstab?

Dec 29, 2010

Simple. UUID is apparently limited to a single UUID to be defined. Example UUID="DEB0-0001","3338-3164" separated with a comma is not working.

What could be the linux alternatives for pluging several UUID disks? How to bypass when there is a CF card and a reader box, since blkid gives no UUID ?

UUID="DEB0-0001" /media/pendrive vfat users,rw,noauto,umask=0000,uid=1000,gid=1000 0 0
#UUID="3338-3164" /media/pendrive vfat users,rw,noauto 0 0
#TYPE="vfat" /media/pendrive vfat users,rw,noauto 0 0

View 3 Replies View Related

General :: Label Versus UUID In Fstab And Menu.lst?

Jan 2, 2010

I realized that my understanding of UUIDs in Linux to specifying hard disk partitions may be erroneous.

The proverbial wisdom is that one should not use hard-coded device specifications in fstab and in the boot menu.lst, such as /dev/sda1 etc. The reason normally given is that if hard disk order changes or the order of partitions change, then the entries will be incorrect since they are hardcoded to partitions following a specific order.

So my understanding was that using hard disk labels, in the form of LABEL=xxxx, or UUIDs in the form of UUID=some-uuid, would prevent these problems when disk order or partition order changed.

I decided to avoid the use of LABEL in case I wanted to change the LABEL on a partition to make the names of partitions more easily identifiable. I then thought that UUID was ideal since it never changed for a partition no matter even if I moved that partition to another drive or added another hard drive and thus changes the order of hard drives on my computer. I essentially thought that once UUID was determined for a partition, it never changed but was somehow part of the partition in the hardware of my computer.

Then I became curious of how a UUID was determined. I did this because I often make backups of partitions on external SATA drives and wanted to make sure that somehow the backup would not duplicate whatever Linux considers the UUID of a partition and present a Linux distribution with two UUIDS which are somehow the same and therefore confuse the Linux distribution to the point that I could not use it. I am aware that UUID means a unique id, but I wanted to make sure I understand how that unique id is determined in Linux. This is especially true since the tool I use to make backups of an entire partition is a Windows application, and not a Linux application, and I wanted to make sure that the backup partition UUID would not duplicate that of an existing partition.

In my very brief research in how a UUID is generated under Linux it appears that it is not something that is part of the hardware of the partition itself but rather a number generated by some parameters of the partition, one of which is the partition order.

If it is, it means to me that if I move a partition from one place to another, even on the same hard drive, or to another hard drive, a Linux distribution will no longer find the partition based on the UUID. In that case it seems as if the UUID is subject to the same weakness as the device specification in fstab and menu.lst in that the order of a partition or the placement of a partition on a particular hard drive will cause the designation to no longer refer to the same partition. In which case it appears to me that only the LABEL parameter is not subject to this weakness and as long as I keep distinct labels for all partitions on my hard drive I could theoretically move them around at will and a Linux distribution will find them correctly. I am aware of course that my computer must always find the boot partition to be able to boot a Linux distribution, so moving Linux parttions where I want them is subject to the ability of my computer to find them from the MBR of my hard drives. But in the main it now appears to me that the best way to insure that moving partitions does not keep a Linux distribution from botting correctly is to use LABEL, and not UUID, in fstab and menu.lst, and of course to make sure that if I decide to change the LABEL of a partition that I must change its entry in fstab and possibly menu.lst before rebooting that distribution.

If I have been wrong in my latest surmises I would appreciate being corrected, as the information I found on UUIDs and how they are generated may not be correct. Also if there is more exact information on exactly how partition UUIDs are generated in Linux I would appreciating anyone pointing it out to me.

View 10 Replies View Related

Hardware :: Using UUID Or LABEL In Fstab And Menu.1st?

Apr 9, 2010

I have a question about mounting partitions. I thought of using UUID or LABEL in fstab and menu.1st Is there an advantage of one over the other?

View 5 Replies View Related

General :: Mounting The Partitions Without Fstab?

Jun 23, 2011

I have ubuntu 10.04 LTS installed. I want to mount a windows partition. I can, of course, use fstab. However, I open nautilus and click on the windows partition in the placed panel. How do I use mount (or any other command) to emulate this?

View 6 Replies View Related

Ubuntu :: 10.04 Install - Disabling UUID In Grub2 And Fstab?

Nov 25, 2010

For reasons long and unique, I want to disable UUID in my recent Ubuntu 10.4 install, and use the old fashioned /dev/sda1 /dev/sdb3 etc. method. I had this "all fixed" under GRUB (pre-2) on Ubuntu 8.04 and it has served well and bug free for years. (Warning: I use old stable hardware - others may have disasters.) But with GRUB2, the task seems more complicated. (This guide me make the backups I haven't done since the fresh install 2 weeks ago.)

Is the following process complete, necessary, and accurate...
Edit the file /etc/default/grub to remove the # in the line...
... making sure to add the two " if missing .....

Copy nearly the entire /boot/grub/grub.cfg file
into /etc/grub.d/40_custom and then...
Comment out every line that says...
search --no-floppy --fs-uuid --set (etc.)

Change every line that says...
linux /boot/vmlinuz-2.x.yy-zz-generic root=UUID=(etc.) into...
linux /boot/vmlinuz-2.x.yy-zz-generic root=/dev/sda1
Edit /etc/fstab and change every instance of UUID=(etc.)
to the appropriate drive and partition e.g. /dev/sda1

edit /etc/initramfs-tools/conf.d/resume and change RESUME=UUID=(etc.)
into RESUME=/dev/sda1
Run update-grub

Do all the above, every time I do a kernel upgrade. (Is it important to do all the above before or after rebooting for an upgrade?) Am I correct, succinct, and complete in the above process? Any mistakes? Any omissions?

View 3 Replies View Related

OpenSUSE Install :: Pc Not Starting After Change In Fstab Options ( Uuid )?

Jan 31, 2010

all of a sudden my pc decided no to start anymore.YOu might be aware of the ide/sata driver problem, well it was the problem. I reinstalled grub with suse dvd and it went ok. Pc working properly. But then i tried to fix this once for all and changed the fstab options from /dev-by-id to uuid (all partitions : swap, /, /home etc ).Is uuid a definite solution ?Why is the pc not able to start from there ?

Since i moved the partitions with uuid option in fstab and even after reinstalling grub the pc is not starting anymore . It gives me the boot menu (linux suse/failsafe) and then a black screen left with no keyboard nor mouse available.


View 9 Replies View Related

Ubuntu :: Safe To Change Fstab UUID Entry For The System To /dev/sdb4?

Nov 13, 2010

is it safe to change fstab UUID entry for the system to /dev/sdb4? and after editing fstab, is there a script or command I need to run to release lock or update mount information? edit: I see not correct, and therefore not safe,but is there a format to tell linux to use /dev/sda1 instead of UUID= or label= .

View 9 Replies View Related

General :: Automatically Mount Partitions Under /media Instead Of Clicking Without Fstab

Mar 29, 2010

I'm using Kubuntu 9.10. Partitions get listed in the sidebar when I open the File Manager, but they don't get mounted under /media until I click on the entries. I do not want to use /etc/mtab and mount them under folders I create in /mnt; would prefer if there was a way to mount the partitions without Kubuntu waiting for me to click on the names.

View 5 Replies View Related

Debian :: Use Udev Rules To Prevent HDDs To Change Device Instead Of Using UUID In /etc/fstab?

Dec 15, 2010

UUIDs make fstab hard to read, so.. Is it possible to use udev rules to prevent HDs to change device, instead of using UUID in /etc/fstab?

View 2 Replies View Related

Ubuntu :: Accessing Drive When Fstab Contains UUID's / No Longer Pertinent To Any Hardware On System

Jul 8, 2011

I cloned one of my hard drives to another, using Acronis True Image Home 2011.In the process, of course, fstab got copied verbatim from old to new.I then, using a livecd on a flash drive, mounted the new drive, went into fstab and rewrote the UUID's, using the numbers I'd gotten previously by doing sudo blkid.Now, the new drive had the UUID's revealed by that command.Then, I used boot-repair, from yannubuntu, to make that drive bootable, since it wasn't after the cloning and after the fstab rewrite.The drive is bootable, and it's mountable from a flash drive, or from the old drive.

I can access files either way.the fstab file on the new drive still has the old numbers, yet when I ran boot-repair, it apparently changed the UUID's for sectors 1 and 5 on the new drive.fstab seems to be irrelevant at this point, yet everything I read about it indicates that it is not only relevant, but necessary.I don't understand how I can be accessing the drive when the fstab contains UUID's that are no longer pertinent to any hardware on my system.

View 5 Replies View Related

Software :: Binding LVM Partitions In Fstab ?

Feb 18, 2011

I'm trying to bind a couple of LVM partitions to directories in the /export directory for NFS hosting. I just want to make it clear that the partitions I'm trying to bind are local LVM partions, the binding is to allow NFS export (they are not networked partitions).

My distro is Ubuntu 10.10 if that makes any difference.

I can bind the partitions perfectly manually using this as an example:


However fstab fails to bind when I restart, and trying to use the fstab with a mount command to check it yields:


Are their subtleties with LVM that I do not understand?

Before setting up LVM, I previously had partitions bound in fstab with no issues using regular partitions (for NFS export again).

my fstab:


View 3 Replies View Related

Debian :: Mount NTFS Partitions In /etc/fstab?

Jun 29, 2010

Using: Debian Lenny. I want to mount 2 NTFS partitions in my /etc/fstab file, so that I needn't manually mount them when I want to use them. One of the partitions is the primary partition on the same hard disk as my Debian /, /home, and /swap partitions. The other is a 2nd internal hard disk.

a) Should I use ntfs-3g instead of ntfs as the /etc/fstab filesystem? I want to be able to read and write to the partitions as a user and not just as root.

b) I have read on the forum that "mounting NTFS partitions through fstab is not a great idea" - I thought that any dangers of doing so were ancient history. Why would it not be a good idea?

c) Which options should I use?

d) If I use 'user' instead of 'users' so that one specific user (me) can use the partitions, how do I specify which user name? (The man page is annoyingly unclear about this).

View 5 Replies View Related

Ubuntu :: 9.04 - Mounted Partitions Disappeared (Fstab Is Bad)

Jan 14, 2011

My Laptop has Ubuntu 9.04 and I am using it for the past one year. I have four partitions. Gparted Screen Shot attached.
/dev/sda5 was mounted as "Laptop 2"
/dev/sda6 was mounted as "Laptop 3"

But from today morning I was not able to access any of the files from my hard disk. When I press the "Computer" Menu Item from the "Places" menu I could access all the files on my hard disk. It shows an error message attached with this thread. The system boots perfectly and work perfectly. "Laptop 2" and "Laptop 3" disappeared.

I searched the net and found ways to mount the Partitions with these following commands.
sudo nano /etc/fstab
# /etc/fstab: static file system information.
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5) .....

Is there any way I could use "Laptop 2" and "Laptop 3" as my mount points as it was earlier.

View 9 Replies View Related

Ubuntu :: Rename The Fstab-BAK To Fstab?

Jan 19, 2010

I've apparently changed my fstab file and now my boot drive fails to mount. The original file is still there "fstab.BAK". How do I rename the current fstab to another name and rename the fstab.BAK to fstab? Since this is read only in the /etc directory I have not been able to make this happen from a command prompt.

View 9 Replies View Related

Ubuntu Servers :: Mount A USB Drive In Rc.local With /sbin/mount And UUID Instead Of Fstab?

Feb 6, 2010

I run a headless Ubuntu 8.04 server, which acts as a web, email and file server. I am sticking with 8.04 as it is a LTS release and will upgrade to the next LTS when it is released.

I have two external USB drives, that I need to mount at boot. I have been using /etc/fstab up until now, with the following entries:


However, as I gather from doing searches is quite common, occasionally I get an error during boot (causing the system to drop to a recovery shell) because the USB drives take time to wake up and the system hasn't found them by the time it reads /etc/fstab.

From doing searches, it seems there is nothing you can do to fstab to fix this, so you need to mount them using an rc.local script instead, using:


The problem is, as I have two USB drives, their /dev/sdxx location changes between boots. I thus want to use UUID codes as I do in fstab, however I haven't found anything about this.

Does anyone know how I can use the mount command and UUID to mount a drive in rc.local and what options I have to use the mount the drive with the same options that I am using in my fstab entry? Obvisouly, I can't refer back to fstab using the mount command, because then I will still get the boot error issue if they are listed in fstab. And there is no space internally for the USB drives as there is already two internal drives.

View 3 Replies View Related

Ubuntu :: FSTAB Timeout - Recover Lost Partitions ?

Feb 21, 2010

I woke up this morning to a non-booting 9.10 computer. After my grub screen disappears, I get the familiar Ubuntu b/w logo in the center of my screen. My hard drive cranks for an abnormally long time and then I get the following error:

I booted into a live CD and opened up GPARTED and my sdb4 (my /home location) partition shows up. I do a check on it and it seems ok.

I opened the Palimpsest Disk Utility to see what it said and it shows sdb4 as Unknown or Unused. I can not mount this drive using GUI methods.

I did some research on the forums looking to recover lost partitions. here is the output from fsck


and the abbreviated output from fdisk -l


Disk identifier:

This seems ok too.

My next step was to try testdisk. When I ran it, I was able to navigate this partition and apparently see all my files. I then tried to mount the partition manually.


That also worked.

It seems to me that I practically have this thing where I need it without too many worries.

My question is: What is the next step to get this back booting again? I'm afraid of rewriting the partitions in testdisk until I get some feedback on whether this will really solve my problem. Maybe the partition isn't the problem? Is it something else and I've been going down the wrong path?

View 4 Replies View Related

Ubuntu Servers :: VirtualBox - Partitions In Fstab Hosed

Jun 23, 2010

Every time my kernel is upgraded (happens often), I reboot and forget to reinstall the VirtualBox guest additions, so my partitions in fstab that use vboxsf (for shared folders) are hosed.

View 1 Replies View Related

General :: Setup Fstab To Automatically Mount NTFS Partitions - GUI To Set The Mount Permissions?

Feb 10, 2010

I am trying to setup fstab to automatically mount my NTFS partitions. I have used various Mount managers to create the entries in fstab. The fstab seems fine, but when mounting at boot or even via Nautilus I get the error message that I do not have permission to mount the disk.

1) Can this permission be set in the fstab file? If so what is the syntax of the fstab entry?

2) If not, is there a tool i.e. GUI to set the mount permissions?

View 14 Replies View Related

Debian Configuration :: Broken Trash From Fstab-partitions In Nautilus

Jan 21, 2016

On my system nearly all subfolders of my home-directory are on another hard drive. I included them via /etc/fstab as shown in the example below:

UUID=12c12565-ece4-4a22-b5c5-275aba1a3fd4 /media/data ext4 defaults 0 2
/media/data/archive /home/XXX/archive none bind 0 0

View 1 Replies View Related

OpenSUSE Install :: Auto-mount Truecrypt Partitions From Fstab?

Jan 14, 2011

I have a Windows partition encrypted with TrueCrypt. If I start TrueCrypt (or RealCrypt) I can mount the partition through the GUI. before I encrypted the partition I used to auto-mount it at boot using fstab and it would appear in my places bar in the file managers. Is it possible to auto-mount truecrypt partitions from fstab?

View 2 Replies View Related

General :: Fstab File And Backup Products

Aug 18, 2010

The fifth field in the /etc/fstab file specifies dump frequency isn't it ?now this value can be theoretically used by backup products isn't it ?

View 2 Replies View Related

General :: Add Flash Drive To Fstab File?

Mar 30, 2011

I have Debian 5 XFCE currently installed on my old desktop. I cant open my flash drive, it doesnt pop up on the desktop, nor is it in the file manager. I read that you can add it to the fstab list but I dont know how to do it.

My flash drive shows up as sda1 in lsusb.

get my flash drives working, thats how I install packages.

View 11 Replies View Related

Ubuntu :: Put A Line In /etc/fstab To Mount One Of Partitions With Owner And Group Not Root

Jan 9, 2010

According to a couple of different places, it's not possible for me to put a line in /etc/fstab to mount one of my partitions with owner and group not root; instead, I have to mount it in /etc/fstab, then chown & chgrp to my user. That seems ridiculously tedious and silly... is it true? I'm sure a short script could be written to get around it, but it seems obtuse for Linux not to allow that to be set in /etc/fstab.

View 9 Replies View Related

Ubuntu Security :: Forbid Non-root To Unmount Fstab-mounted Partitions?

Jan 4, 2011

Is it possible to forbid a non-root to umount a partition that was mounted via fstab-entry?

View 2 Replies View Related

Ubuntu :: Set Up Fstab For Usb Disk ACL?

Apr 13, 2010

I want to use Access Control Lists (ACLs) on a removable usb hard drive. I don't know how to set up /etc/fstab for usb drives. Every time I try to make an fstab entry for the usb drive I get an error, when I plug in the usb drive and the system tries to automatically mount it. The drive isn't mounted. If I delete the fstab entry for the usb drive, the drive automatically mounts with no problem. However, ACLs are not enabled, because no fstab entry exists to enable ACLs.

The error message states that "only root can mount the drive". However, as far as I can tell, automatic usb mounting is being done by root. When I plug in the drive (with no fstab entry) and it automatically mounts, Nautilus Properties shows the drive is owned by root and has permissions of rwxr-xrwx.

View 1 Replies View Related

Ubuntu :: Trying To Add RAM Disk But Fstab Fails To Boot

May 26, 2010

I was able to successfully create a small, fixed-size "ram disk" just for kicks, via:

sudo mkfs -t ext3 -q /dev/ram1 65536
sudo mkdir -p /media/ramdisk
sudo mount /dev/ram1 /media/ramdisk -o defaults,rw
However, I wanted it to auto-boot, so I added the line to fstab:

/dev/ram1 /media/ramdisk ext3 defaults 0 0

This, however, rendered Ubuntu unbootable and I had to repair the fstab by removing the line via a Live CD. I had enough patience to boot through the CD an extra time to see if just deleting "ext3" would work, but it did not. What would cause this to make the system unbootable and how I could make it work?

View 5 Replies View Related

General :: Mount NTFS Partition Deeper In File System With Fstab?

Mar 15, 2010

I'm dual booting with Windows 7 and would like to have my windows 7 user folder mount when I boot.

After some looking around I edited /etc/fstab to add the following line:

This works. But it mounts the windows partition from the root level. I'd like to just mount C:UsersFHSM (/Users/FSHM) to /mnt/windows.

I'm trying to get it so that when I click on the windows drive I get my windows user folder instead of having to click through from C: to get to it.

I'm the only user on this system but if I created a second windows user would my home folder mount for that person too or does setting the user ID prevent that from happening?

View 2 Replies View Related

Copyrights 2005-15, All rights reserved