Debian :: Change The UUID Of A Partition?

May 9, 2011

I have, as I have in the past, copy/pasted a partition using gparted to get a working OS to another place.

I have always done this in the past to a different drive. Never paid much attention to the UUID.

This time I did it on the same drive. The partitions have the same UUID. This is not a good thing.

The copied OS boots and mounts fine as I edited the fstab to go by /dev/sdxy (where x is the drive and y the partition). My grub uses a custom menu using symbolic menu entries so it goes by the partition definition instead of UUID too.

I would really like to change the UUID on that partition.

View 8 Replies


ADVERTISEMENT

Debian Installation :: Why Does 8.2 Change UUID Of Swap Drive

Dec 14, 2015

Been doing some installations in a newly upgraded machine where I'm setting up two instances of 8.2 in slightly different configurations.Installing from netinst AMD64 DVD with firmware non-free. First installation goes smooth as then the second changes the UUID of the swap partition, meaning that the first then can't find it. To add insult to injury the second installation doesn't install GRUB in the MBR of the HDD.

Nothing different or special about the installation which is standard graphical with manual allocation of previously set up partitions. I don't touch the swap drive in the partitioner - just point to the correct partitions for / and /home as I want them. This is exactly as I've done before, many times.Setup asks me if I want to install GRUB in MBR and I answer "No" (because it would otherwise load in MBR of sda where I want it on sdb) then point to sdb in the next screen. Again really nothing different to what I've done dozens of times.

View 7 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 :: How To Restore Partition UUID

Sep 4, 2010

After installing another OS on second drive, UUID for swap on my main system was missing. In other words there is no appropriate symlink in /dev/disk/. I've tried to create it manually, but it dissappears again after rebooting. Temporarily i solved this problem by adding in /etc/fstab direct address to swap device. The question is how to restore UUID for swap partition correctly?
Code:
sudo blkid /dev/sda6
/dev/sda6: TYPE="swap"
/dev/sda6 is swap partition.
Also i've tried to use tune2fs:

[Code]....

View 3 Replies View Related

Programming :: How To Get UUID Of Device / Partition

Mar 13, 2011

I am very much new to Linux programming. My question is Is there any way to read UUID of a device or partition in linux programatically. Is there any c/c++ API for user-space applications. I found some commands "sudo vol_id --uuid /dev/sda1", "sudo blkid", "ls -l /dev/disk/by-uuid/". But all are commands which we need to run in terminal. But I need to achieve this from a c/c++ program. (FYI: I need to read uuid of root filesystem ("/") where Linux has been installed.)

View 1 Replies View Related

General :: Swap Partition UUID Changed - What To Do

Jun 5, 2010

Someone (not me) recently installed some new distros on my HD. It seems that during the installation my swap partition was reformatted and a new UUID was assigned to it. I have the following questions:

1. I know that I have to change the swap partition UUID in /etc/fstab and /boot/grub/menu.lst of the affected distros. Is there anything else that needs to be changed?
2. I presume a similar change has to be made to the Grub 2 configuration, for those distros that use Grub 2. I have no experience using Grub 2 so how do I make the change or where can I find instructions to do it?

View 13 Replies View Related

Programming :: Get Uuid Of A Device / Partition In System Programatically?

Mar 13, 2011

I am very much new to Linux programming. My question is Is there any way to read UUID of a device or partition in linux programatically. Is there any c/c++ API for user-space applications. I found some commands "sudo vol_id --uuid /dev/sda1", "sudo blkid", "ls -l /dev/disk/by-uuid/". But all are commands which we need to run in terminal. But i need to achieve this from a c/c++ program. Can some one help me in this problem.(FYI: I need to read uuid of root filesystem ("/") where Linux has been installed.)

View 9 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.

[Code]...

View 9 Replies View Related

Ubuntu :: Boot Failure - Can Not Find Root Partition No Uuid

Mar 5, 2010

I posted this first to thread 'Boot problem - "Gave up waiting for root device.", (initramfs)' then realized that I should start a new thread because the problem is not the same. On boot the splash goes black and nothing happens, On a recovery boot it drops into shell BusyBox and messages indicate that the root partition cannot be found. After booting from CD Gparted GUI partition information shows no label or ssid for the root partition sda2. The data for the root partition appears to be there. how to fix this? My /home, swap, and / are on separate partitions formatted ext3. I have a recent backup only for my data. I would like to avoid having to rebuild my system from scratch.

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

Debian :: Change The Partition Size ?

Apr 21, 2010

I want to make a new partion,my home is /dev/hda9,so I use the Partion Editor(Gparted) ,frist umount the device(umount -l /dev/hda9),then change the size,everyone thing works well until I clicked the Apply,the error occurred:

View 1 Replies View Related

Debian :: Change Permission On /windows Partition

Jul 2, 2010

I'm running a dual boot system with winXP and Debian Lenny. Here's my hard drive set up

hda1 - windows ntfs (just for use with windows)
hda2 - / ext3
hda3 - swap
hda4 - /home ext3
hda5 - /windows fat32 (shared partition between linux and windows)

Now, I have access to /windows but it's owned by root so I can't create/modify anything and I can't unmount it to use chown.

View 14 Replies View Related

Debian Installation :: Change Partition Sizes From Defaults?

Aug 19, 2010

I'm running the installer, and "Guided Partitioning" selected partition sizes I'm not completely happy with. I selected separate partitions for /home, /var, /usr, /tmp etc, and by default it gave me only 5GB for the /usr partition. I'd like to take some space away from /home and give it to the /usr partition, but I can't figure out how to do that using the menu options available.

View 7 Replies View Related

Debian Configuration :: No UUID For Some Partitions?

Jun 15, 2010

I have two encrypted partitions which I cannot find UUID numbers for.

/etc/crypttab looks like this:

[Code]....

and *sometimes this works, other times I have to edit the file and /etc/init.d/cryptdisks restart.

Obviously I should use UUIDs here and in fstab but blkid does not list those partitions

[Code]....

View 4 Replies View Related

Software :: Changing An NTFS UUID - Restore An NTFS Partition From A Backup?

Dec 25, 2010

I am trying to restore an NTFS partition from a backup and I need the new drive to have the old (dead) drive's UUID (which I recorded).I really really really cannot use the option of changing fstab to mount using a new UUID, for this case I need the old UUID that existed on the other drive.Is there some ntfs equivalent of tune2fs that'll let me change the UUID on an ntfs partition?

View 4 Replies View Related

Debian Installation :: How To Get UUID For Root In Grub CFG

Mar 15, 2015

I am running Wheezy as my main OS in the first drive in my desktop. I use the 2nd drive for data. I am trying to add another OS to multiboot. When I ran grub-update in Wheezy, I am getting device letter for the root device instead of UUID in grub.cfg, in the os-prober section. Like this

Code: Select allsearch --no-floppy --fs-uuid --set=root 6ee49a8e-a619-49c7-9f66-51a5ca9a48cc
   linux /boot/vmlinuz-316-x86_64 root=/dev/sdb3
   initrd /boot/initramfs-316-x86_64.img

In the same file, UUID was used for the existing kernels.

Code: Select alllinux   /boot/vmlinuz-3.2.0-4-686-pae root=UUID=c2eecf02-d427-4f2e-9fd0-9db61256cbac ro  quiet
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-3.2.0-4-686-pae

How can I get UUID instead of /dev/sdb3 for the 2nd OS?

View 3 Replies View Related

Debian Configuration :: Hdd Dev Letters - UUID And Labels ?

Jun 30, 2011

I have a debian 6 system in my basement acting as a media server. Debian is on a separate HDD from the raid drives and there is one external drive. Under normal conditions the Debian HDD shows up as /dev/sdk and the external shows up as /dev/sdl, no problems here because I use UUID for mounting. The problem is sometimes this drive isn't picked up on restarts (its old and I think the issue is the power supply in the base of it, to be solved later) . This wouldn't be a problem but it some how shuffles the drive addresses and the Debian HDD becomes /dev/sde, this in turn messes up a script that does a weekly dd of that hard drive. I am only really worried about this for when I go on vacation and I wont be at home if the power goes out.

So, is there a way to address the entire hard drive (not just a partition) other than the dev file? Why did this change from Debian 5 to 6? I never had this problem before with 5.

In case you are wondering, I find it easier recover from an image rather than do a reinstall, then get all the updates and software, then put in all the backed up files.

View 3 Replies View Related

Debian :: Uuid Not Working On Ancient Laptop?

May 16, 2011

System Fossil age laptop, Debian testing with lilo. SymptomAfter an upgrade (2nd week May), custom kernel compiled, kernel panics on boot, saying unable to mount root drive. (or more precise, unable to mount whatever uuid device). Stock kernel can boot. Workaround Instead of uuid on kernel option, use prehistoric root=/dev/XXX.

edit:The kernel which panics is 2.6.38 (make oldconfig, all default answer from 2.5.32 config)Stock is 2.6.32 On 2.6.38 after boot with tweak, the command "uuid" looks good.

View 2 Replies View Related

Security :: Debian Shows File Permissions Change When Copied To A Windows Partition?

Dec 10, 2010

Some time back using this computer a SucKit rootkit was found. Having dd urandomed the drive, flattened CMOS battery, flashed BIOS, run Knoppix live CD 6.1,using no flat pack battery (laptop), and memtested the RAM, I am still having problems with what I suspect is a javascript file that tries to reload the rootkit from? firmware. I suspect the firmware as everything else should have eradicated it??

Also it or a hacker via a backdoor then corrupts the drivers so devices malfunction. Windows security programs and rootkit detectors don't seem to pick it up. Fresh install of Windows or linux after the above still show this problem, though internet not used. The person who admitted rootkitting this machine is capable of writing java programs or using javascripts to do all this.

When viewed using Ubuntu 8.4 files and dates on a Windows partition appear normal both in file manager and terminal. However booting using Knoppix CD these files are all green, and I cannot change their permissions, even as root. ie: everything is green including text files etc. If I copy them to a linux partition, I can change their permissions and make them nonexecutable and nonwritable. Also on the Windows FAT32 partition the . directory has the date 1 Jan 1970.

If I disable any green files, I can shutdown and reboot cleanly. If I don't I start having problems shutting down [/usr/sbin/init ?] And always these follow a pattern:

Can't remember details as I have now corralled the beast but error messages relating to:

nfs-server
inet.d/statd

are the start of these.

View 3 Replies View Related

Debian Configuration :: Duplicate Disks With Same Uuid Under Fdisk

Jan 19, 2016

I am running Debian 3.2.0-0.bpo.2-amd64 on hyper-v, my / volume ran out of space and is sitting at 100%, I have extended the disk size on hyper-v, however when I go to Fdisk I see duplicates of each disk.

I have total of 2 vhds on the vm, so I see 4 disks under fdisk. Here is the output of fdisk

root@apachevm:~# fdisk -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0009bfe8

[CODE]....

View 2 Replies View Related

Debian :: Grub Menu - How To Set Default Format To Use UUID

Sep 21, 2010

I am using Debian lenny (kernel 2.6.26-2-686).

I changed my menu.lst to use
root=UUID=<long uuid string>
instead of the good old
root=/dev/sd...

I did that because, if I boot with a usb drive attached to my computer, sda become sdb and therefor nothing works anymore since my friend Kernel can't mount it's root partition. BTW, it works wonders using the UUIDs. The story darkens each time there is a kernel update, dist-upgrade resets my menu.lst back using the /dev/sd... format. and BANG... no more booting again. I am good to change my menu.lst back each time.

View 2 Replies View Related

Debian :: Fsck.ext3: Unable To Resolve 'UUID=theUUID'

Jun 24, 2011

Upon booting my LVM wheezy setup, I get

fsck.ext3: Unable to resolve 'UUID=theUUID'
where "theUUID" (without the quotes) is the UUID

I believe this is caused by me trying to get lvm to use the external /boot because when I had unmounted the external /boot, it was creating a /boot in root. So, I booted a live cd and mounted the external /boot where /boot in the root volume is supposed to be. Basically, I think the problem is that I need to make my /boot (which is the only ext3 partition in the entire system and I want it that way) "relate itself" to the lvm root so that it boots into the system. As mentioned earlier, in the live CD, I made the external /boot mount itself in the root's /boot but I don't know how to tell the system to do this on its own while booting without my assistance. I chrooted from the live cd which involved a lot of tedious stuff but basically the important stuff I did were:

grub-install /dev/sdb
update-grub
update-initramfs -u

P.S.I get the issue in the Subject of this topic by telling tune2fs to mark the external /boot, lvm / and /home partitions as "dirty."

View 2 Replies View Related

Software :: Changing Icon On Fat32 Partition / Cannot Change Icons Partition Is Mounted In Fstab?

Aug 17, 2010

using suse 11.3 and kde 4.4.4 on the mounted fat32 partition I cannot change icons partition is mounted in fstab in this way:/dev/sda8/ /dati vfat user, users, gid=users, umask=0002, utf8=true, 0, 0.I can create files folders modify, move and save them on the partition but if I try to change the icon (in dolphin right click>properties>click on icon) of the /eros folder (or any other folder or link) system gives me
this error:impossibile salvare le proprieta' , non hai accesso sufficiente per scrivere su /dati/eros/.directory tha in english is something like this: impossoble save properties, you havent enough permission access to write on /dati/eros/.directory this happen also as superuser I remember that with suse 11.0 or 10.3 I was able to change icons on fat32 partitions, now with 11.3 I cannot, there ought to be a way to do what I did with the previous version with this 11.3 brand new ad more advanced version shouldn't it?

View 11 Replies View Related

Ubuntu :: Change Sda2 Partition To Ntfs - WARNING: The Kernel Failed To Re-read The Partition Table

Mar 27, 2010

I want to change my sda2 partition to ntfs type. i have installed GParted but it is returning a strange type of error. Here is the error dump file...

[Code]...

WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot. WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot.

View 9 Replies View Related

SUSE / Novell :: Change Partition Size On Root Partition?

Aug 2, 2009

I am relatively new to Linux and Opensuse. I created the / root partition and now it is growing and maxing out. I have partitioner available to me but how do I change the partition size when the root partition is mounted. Do I login as root and then umount or modify fstab and restart and change from command line or do I format and reinstall everything? I have room to expand but not sure how to manage this?

View 4 Replies View Related

Slackware :: Change Owner Partition For NTSF Partition

Mar 26, 2010

I'm trying to samba share my NTSF partition in slackware 13. I chose for root to have read/write access only.
How can I change this to allow samba share for my regular non-root account?

View 1 Replies View Related

Debian :: Libgdu-WARNING : Partition /org/freedesktop/UDisks/devices/sdb7 Is A Logical Partition But No Extended Partition Exists

May 27, 2011

I installed Debian stable and I see these errors in the xsession error file

/etc/gdm3/Xsession: Beginning session setup...
GNOMEKEYRINGCONTROL=/tmp/keyring-j0E6Br
SSHAUTHSOCK=/tmp/keyring-j0E6Br/ssh
GNOMEKEYRINGCONTROL=/tmp/keyring-j0E6Br

[code]....

View 4 Replies View Related

General :: Change The Swap Partition To Another Partition?

Aug 1, 2010

I want to change the swap partition to another partition. Is there a gui that can make this process easier so I don't have to do things like manually editing files?

View 2 Replies View Related

Debian :: RT Kernel Not Booting - "/dev/disk/by-uuid/..." Does Not Exist

Dec 30, 2010

After installing the RT kernel, and updating my boot loader, I get this message. Code: ALERT! /dev/disk/by-uuid/... does not exist. Dropping to a shell! It doesn't make a difference whether I pass the 'root=/dev/', or 'root=UUID=', options to the kernel. I've also noticed a message while the system was attempting to boot up. Code: host side 80-wire cable detection failed, limiting max speed to UDMA33 This is all strange to me as I was running the Debian 2.6.32-5-686 kernel, without any problems.

View 1 Replies View Related

Debian :: No "vol_id --uuid" In Testing - Command Not Found

Jun 19, 2010

In the fstab it is written to run :

"vol_id --uuid"

and that it is a robust method...

but well there is not vol_id

command not found

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved