Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
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.
I think I have set up my pc to boot from the wrong hard disk. hdb, and not hda. I found this out when I disconnected hdb, because I think it maybe failing. It freezes on 'Verifying DMI Pool'. I would like to take out the old drive, but didn't really want to re-install Ubuntu on my new one. What do you think I should try?
Thanks
Code:
sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0001476c
Device Boot Start End Blocks Id System
/dev/sda1 1 8162 65561233+ 83 Linux
/dev/sda2 9448 9729 2265165 5 Extended
/dev/sda3 8163 9447 10321762+ 83 Linux
/dev/sda5 9448 9729 2265133+ 82 Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/sdb: 15.3 GB, 15367790592 bytes
255 heads, 63 sectors/track, 1868 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000696c5
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1868 15004678+ b W95 FAT32
df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/sda1 63520 13786 47174 23% /
varrun 379 1 379 1% /var/run
varlock 379 0 379 0% /var/lock
udev 379 1 379 1% /dev
devshm 379 1 379 1% /dev/shm
lrm 379 39 340 11% /lib/modules/2.6.24-23-generic/volatile
gvfs-fuse-daemon 63520 13786 47174 23% /home/x/.gvfs
/dev/sdb1 14639 12287 2353 84% /media/disk
/dev/sda3 10001 151 9346 2% /media/disk-1
============================= Boot Info Summary: ==============================
=> No boot loader is installed in the MBR of /dev/sda
=> Grub0.97 is installed in the MBR of /dev/sdb and looks on boot drive #2 in
partition #1 for /boot/grub/stage2 and /boot/grub/menu.lst.
sda1: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 8.04.2
Boot files/dirs: /boot/grub/menu.lst /etc/fstab
sda2: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda3: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sdb1: _________________________________________________________________________
File system: vfat
Boot sector type: Fat32
Boot sector info: According to the info in the boot sector, sdb1 starts
at sector 0. But according to the info from fdisk,
sdb1 starts at sector 63.
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0001476c
Partition Boot Start End Size Id System
/dev/sda1 63 131,122,529 131,122,467 83 Linux
/dev/sda2 151,766,055 156,296,384 4,530,330 5 Extended
/dev/sda5 151,766,118 156,296,384 4,530,267 82 Linux swap / Solaris
/dev/sda3 131,122,530 151,766,054 20,643,525 83 Linux
Drive: sdb ___________________ _____________________________________________________
Disk /dev/sdb: 15.3 GB, 15367790592 bytes
255 heads, 63 sectors/track, 1868 cylinders, total 30015216 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x000696c5
Partition Boot Start End Size Id System
/dev/sdb1 * 63 30,009,419 30,009,357 b W95 FAT32
blkid -c /dev/null: ____________________________________________________________
/dev/sda1: UUID="b5d2f0b3-9e53-427a-85e5-5b31236f030a" TYPE="ext3"
/dev/sda3: UUID="e2406a6d-ccef-4a1f-826e-0d990c3564c5" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: UUID="fd16e8b2-534d-fba1-4244-0896daf3d728" TYPE="swap"
/dev/sdb1: UUID="4850-2FE4" TYPE="vfat"
=============================== "mount" output: ===============================
/dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-23-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
gvfs-fuse-daemon on /home/myname/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=myname)
=========================== sda1/boot/grub/menu.lst: ===========================
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=b5d2f0b3-9e53-427a-85e5-5b31236f030a ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.04.2, kernel 2.6.24-23-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=b5d2f0b3-9e53-427a-85e5-5b31236f030a ro quiet splash
initrd /boot/initrd.img-2.6.24-23-generic
quiet
title Ubuntu 8.04.2, kernel 2.6.24-23-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=b5d2f0b3-9e53-427a-85e5-5b31236f030a ro single
initrd /boot/initrd.img-2.6.24-23-generic
title Ubuntu 8.04.2, kernel 2.6.24-22-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=b5d2f0b3-9e53-427a-85e5-5b31236f030a ro quiet splash
initrd /boot/initrd.img-2.6.24-22-generic
quiet
title Ubuntu 8.04.2, kernel 2.6.24-22-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=b5d2f0b3-9e53-427a-85e5-5b31236f030a ro single
initrd /boot/initrd.img-2.6.24-22-generic
title Ubuntu 8.04.2, kernel 2.6.24-16-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=b5d2f0b3-9e53-427a-85e5-5b31236f030a ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
title Ubuntu 8.04.2, kernel 2.6.24-16-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=b5d2f0b3-9e53-427a-85e5-5b31236f030a ro single
initrd /boot/initrd.img-2.6.24-16-generic
title Ubuntu 8.04.2, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
=============================== sda1/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb1
UUID=b5d2f0b3-9e53-427a-85e5-5b31236f030a / ext3 relatime,errors=remount-ro 0 1
# /dev/sdb5
UUID=fd16e8b2-534d-fba1-4244-0896daf3d728 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd1 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
# Added to Mount old vfat IDE drive
#/dev/sdb1 /media/winshare vfat defaults 0 0
=================== sda1: Location of files loaded by Grub: ===================
50.4GB: boot/grub/menu.lst
50.4GB: boot/grub/stage2
50.3GB: boot/initrd.img-2.6.24-16-generic
50.4GB: boot/initrd.img-2.6.24-16-generic.bak
50.3GB: boot/initrd.img-2.6.24-22-generic
50.3GB: boot/initrd.img-2.6.24-22-generic.bak
50.4GB: boot/initrd.img-2.6.24-23-generic
50.4GB: boot/initrd.img-2.6.24-23-generic.bak
50.4GB: boot/vmlinuz-2.6.24-16-generic
50.4GB: boot/vmlinuz-2.6.24-22-generic
50.3GB: boot/vmlinuz-2.6.24-23-generic
50.4GB: initrd.img
50.3GB: initrd.img.old
50.3GB: vmlinuz
50.4GB: vmlinuz.old
=============================== StdErr Messages: ===============================
umount: /tmp/BootInfo1/sdb1: device is busy
umount: /tmp/BootInfo1/sdb1: device is busy
Yes, I have both IDE and SATA. The SATA drive was to replace a failed IDE drive. I planned to use the other IDE for backups only, and reinstalled Ubuntu with the defaults on what I thought was the SATA drive.
Specify labels instead of UUID. File systems like FAT does not have support for UUID. If you use labels, you can easily boot with any computer and on any controller.
Would you like to explain that Electro ?.
Using either UUID or Label (in the boot parms) requires the use of an initrd that is specifically coded to support such. And the kernel or initrd must have the specific support for the controller and filesystem.
Hardly qualifies as "If you use labels, you can easily boot with any computer and on any controller." - especially for those of us that don't use initrd. For a while, Fedora only supported LABEL (and not UUID) and Ubuntu was the reverse - i.e. you couldn't even use LABEL on Ubuntu (fstab was o.k.)
I haven't tried, but the solution here might be to use /dev/disk/by-id. I have a broken box that needs a total rebuild that has this IDE and S-ATA issue with Ubuntu. I might see if I can get it rebuilt this weekend and try to solve it - in the past I just discarded Ubuntu because it was too hard (used Arch instead).
I have seen some details on the Ubtuntu web site (although I can't find it now), that suggested the following:
* Use LiveCD version, and Gparted to create a 100mb partition to be used for Boot (presumably at the start of the drive?).
* Then part re-run the install, but choose manual partitioning. In this you then have to define /root, /, /swap and /user (selecting option not to Format the partitions)
* Save this part, then cancel out of the install
You get error messages, but it is supposed to work. Sounds a bit risky, so I have not tried it yet.
Would you like to explain that Electro ?.
Using either UUID or Label (in the boot parms) requires the use of an initrd that is specifically coded to support such. And the kernel or initrd must have the specific support for the controller and filesystem.
Hardly qualifies as "If you use labels, you can easily boot with any computer and on any controller." - especially for those of us that don't use initrd. For a while, Fedora only supported LABEL (and not UUID) and Ubuntu was the reverse - i.e. you couldn't even use LABEL on Ubuntu (fstab was o.k.)
I haven't tried, but the solution here might be to use /dev/disk/by-id. I have a broken box that needs a total rebuild that has this IDE and S-ATA issue with Ubuntu. I might see if I can get it rebuilt this weekend and try to solve it - in the past I just discarded Ubuntu because it was too hard (used Arch instead).
Yes, UUID and/or LABEL have to be supported, but syg00 do not have to be an ass by trying proving me wrong. By now they are supported. Sure Fedora uses LABEL, but I am sure distributions before Fedora could use LABEL. Fedora considered using LABEL for mounting because to ease mounting SCSI and SATA devices.
Yes, have to include every controller in the initrd file to boot with any setup, but that is not the point I am trying to make. The point I am making is using labels is easier because it relates to human words instead of machine description like UUID.
Yes, instead of specifying LABEL=label name can use /dev/disk/by-label/label name.
Not all distributions ask you to specify labels during install, so you have to later set them. The file system administrating utility can be used to set labels after formating or a program like gparted could be used.
One problem using UUID is NTFS and FAT does not support it. Ubuntu developers should have look into this before ever introducing a version of theirs that only uses UUID for booting. Also their patched grub or kernel does not find my IDE drives in the same order that the BIOS sees them. It actually found my drives in the opposite order and the grub config (menu.lst) was related to the wrong arrangement too. I changed the root command in the grub file. If I had to do that, then I can not recommend it to a novice user. I can recommend Sabayon (full version or DVD) to a novice user because it does provide an option to specify a LABEL for each partition and it has reliable installs on IDE and SATA setups.
In the end I decided I needed to ditch the IDE drive, I did the following (may not be the easiest solution but seems to have worked.)
Used LiveCD (GParted)
- Made space at the start of the SATA drive (250mb)
- Created small EXT3 partition to be used as boot in the space created
- Resized main partion (made smaller)
- Created new logical partions (2 big enough for Ubuntu install)
- Intalled Ubuntu into new empty partitions, manually defining partitions, Boot, \ and \usr
Tested, and was able to boot to new install and old install
Used liveCD again, to remove the new logical partitions and resized partition with original install back to previous size.
Edited Menu.lst (in new boot partition) so that only the old installation appears.
I am happy now, as I have not had to overwrite my existing installation and no longer have the IDE drive in use.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.