Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-27-2008, 05:44 PM
|
#1
|
Senior Member
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127
Rep:
|
Can Ubuntu 7.10 be run without UUIDs?
Well it seems that those UUIDs are busting my silicons again. Here is the situation:
My PC consists of a hard drive rack with several removable hard drives (SATA 80GB) on which I install various operating systems. I have XP, Ubuntu - Production (for which I am careful to document any changes), Ubuntu - test (which was cloned from Ubuntu - Production and which I use to test things before I install them on Production). Inside the PC is a fixed SATA 320GB formatted with NTFS. The 320GB drive is accessible from all OSes and auto mounts and appears on the Ubuntu desktop as "Quite Large" which is the NTFS label. Until...
I recently installed 7.10 on another drive to try out the upgrade process to 8.04 LTS. Other than the upgrade taking a long time because of all the users hitting the server and the fact that 8.04 broke my marginal xsane scanner capability (I think) no big deal. Until...
I booted the PC with my Ubuntu - Production disk installed. The "Quite Large" icon representing the NTFS drive was not on the desktop. I can select Places; Computer; Quite Large; and mount it. However, I cannot access it with gnome-commander. "No permission to mount" error even though it appears to be mounted.
After a couple of hours of booting different configurations, comparing files such as /etc/fstab, testing, tweaking, cussing etc. I tried to manually mount the NTFS drive from the command prompt on the Production disk. I got a message to the effect "can not find UUID blah blah blah".
I then compared the fstab files. On Production and Test (remember this was cloned from Production) the UUDI for /dev/sdb1 (my NTFS partition) was the same. On the "newest" Ubuntu install it was different. It seems that the installation process "discovered" the 320GB drive, assigned it a new UUID and wrote the UUID to the drive. I copied the "new" UUID to fstab on the older installs and the automatic mounting works as before and the icon is on the desktop.
I have had some previous run ins with UUIDs when doing backup and restore between hard drives. I was advised to "just say no to UUIDs" however, the process to do this was not explained. I tried removing them from fstab and the grub boot list and managed to get things rather messed up.
Can someone please explain to me how to dispense with UUIDs for good? If it is possible?
TIA,
Ken
|
|
|
04-27-2008, 06:35 PM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286
|
Same as always - use device designations; /dev/sda3 (whatever is appropriate). For all my systems I eventually dispense UUID/LABEL, as I am always screwing around with drives/partitions. It was introduced because of the libata namespace change (when /dev/hda became /dev/sda) - for the convenience of the distro devs/maintainers, not the users.
Ubuntu installs usually mess with the UUID on swap as well ...
|
|
|
04-28-2008, 11:52 AM
|
#3
|
Senior Member
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127
Original Poster
Rep:
|
Well I gave it a try again. I think I should go back to vi (or perhaps CP/M - bet that would run like a scalded dog on a Pentium 4). Anyhow gedit showed me entries in fstab which looked like this:
Quote:
# /dev/sda2
UUID=9deaf70a-dcb4-43f7-91ea-3c1d8a66ed84 /home ext3 defaults 0 2
|
So I simply deleted the UUID= expression which of course gave me:
Quote:
# /dev/sda2
/home ext3 defaults 0 2
|
In effect I commented out my entire fstab I think this is what happened the last time I played with removing UUIDs. Word wrap - wonderful NOT!
I have also removed UUIDs from /boot/grub/menu.lst and all is working well. Thanks for motivating me to finally fix this!
I can see how UUIDs would be helpful in some cases where data storage is removed and replaced. However, in my case I am removing and replacing the OS disk. The data disk always is in the same place and I do not need different installs of the OS calling it different UUIDs.
Regards,
Ken
|
|
|
04-28-2008, 01:00 PM
|
#4
|
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep:
|
Neither UUIDs nor sd/hd identifiers are reliable. The real problem in this case is that Ubuntu inherits a serious bug from Debian, which still fails to handle hard drives correctly if they are connected to more than one controller. The solution is easy but it takes a bit of work. You have to look in /dev/disk and use IDs to identify your partitions, both in fstab and in in GRUB. You would identify a partition on a SATA drive as:
/dev/disk/by-id/scsi-(etc. - just copy the information from the /dev/disk directory)
|
|
|
04-28-2008, 01:13 PM
|
#5
|
Senior Member
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127
Original Poster
Rep:
|
Thanks jay73. At the moment I only have a single controller - 2 SATA connections on the motherboard - and I only use 2 drives at any given time. I will keep your advice in my reference file in case I ever need to add more storage or create a more complicated configuration.
Regards,
Ken
|
|
|
04-28-2008, 01:23 PM
|
#6
|
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
|
Quote:
Originally Posted by taylorkh
Well I gave it a try again. I think I should go back to vi (or perhaps CP/M - bet that would run like a scalded dog on a Pentium 4). Anyhow gedit showed me entries in fstab which looked like this:
|
Okay, first thing to understand--any line which begins with # is a comment. The line is ignored.
Quote:
So I simply deleted the UUID= expression which of course gave me:
|
You can't just delete the UUID= field. The first field is the field which tells the computer where the heck this file system is. This can be UUID=sfasdfw or it can be /dev/sda1 or it can be something else, but it has to be SOMETHING.
The line which starts with "#" is JUST a comment. It's a helpful comment, since it tells you which device the next line is talking about, but it is for YOUR benefit, not the computer's. The computer ignores it.
If you want to modify your fstab, you can delete the UUID= field, but you must replace it with something else, like /dev/sda1.
So this has nothing to do with word wrap.
|
|
|
All times are GMT -5. The time now is 10:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|