Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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'm trying to move a distro from sdc1 to sda3. It boots as hd0,0 from
sdc1 and as hd0,2 from sda3. I used cp -av to copy all the files.
After adjusting menu.lst and /etc/fstab it still hangs midway thru boot
telling me either it is spawning too fast and has stopped or cannot create
the root file system and has stopped. Perhaps initrd needs to be
recreated. I wonder what I have missed.
It boots as hd0,0 from
sdc1 and as hd0,2 from sda3.
Well, that's a little unusual. You haven't really posted much information. You have at least two drives, how many partitions? how many operating systems? what are they? What are you using to boot? You might just go to the site below and read the instructions on the bootinfoscript, download and run it on any Linux and review the output, a results.txt file. Or you could post it here.
You might just go to the site below and read the instructions on the bootinfoscript, download and run it on any Linux and review the output, a results.txt file. Or you could post it here.
Rather long but here goes. Trying to get sda3 to boot.
Code:
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the
same drive in partition #1 for /boot/grub/stage2 and /boot/grub/menu.lst.
=> Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: PCLinuxOS release 2012
(PCLinuxOS) for i586 Kernel 2.6.38.8-pclos3.bfs on a
Dual-processor i686 /
Boot files: /boot/grub/menu.lst /etc/fstab
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda3: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Fedora release 14 (Laughlin)
Kernel on an ()
Boot files: /boot/grub/menu.lst /boot/grub/grub.conf /etc/fstab
sda4: __________________________________________________________________________
File system: Extended Partition
Boot sector type: Unknown
Boot sector info:
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda7: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sdb1: __________________________________________________________________________
File system: ext3
Boot sector type: EXTLINUX 3.85 2010-02-20
Boot sector info: Syslinux looks at sector 311296 of /dev/sdb1 for its
second stage.
Operating System:
Boot files: /boot/extlinux/extlinux.conf
/boot/extlinux/extlinux.sys
sdb2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 63 21,494,969 21,494,907 83 Linux
/dev/sda2 21,494,970 34,395,164 12,900,195 83 Linux
/dev/sda3 34,395,165 55,890,134 21,494,970 83 Linux
/dev/sda4 55,890,135 312,576,704 256,686,570 5 Extended
/dev/sda5 55,890,198 161,356,859 105,466,662 83 Linux
/dev/sda6 161,356,923 266,823,584 105,466,662 83 Linux
/dev/sda7 266,823,648 312,576,704 45,753,057 7 NTFS / exFAT / HPFS
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 32.1 GB, 32082231296 bytes
64 heads, 32 sectors/track, 30596 cylinders, total 62660608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 * 32 1,394,687 1,394,656 83 Linux
/dev/sdb2 1,394,688 62,660,607 61,265,920 83 Linux
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 a5adc2ce-fbc3-4511-a7ab-8f6a77becbfd ext4 LXDE2011-F
/dev/sda2 c1aac268-ae8b-4b31-94af-dcf525c564f5 ext4 FILES-F
/dev/sda3 6a1cea48-007e-4a6b-899f-6fab8c75bbd8 ext4 LINUX-DATA-0
/dev/sda5 b3e192dc-ca6f-4506-ae30-f8cb4e6be621 ext4 LINUX-DATA-1
/dev/sda6 069d6b67-001f-4768-b552-8bececbf163b ext4 LINUX-DATA-2
/dev/sda7 5E903012229BD385 ntfs NTFS-DATA
/dev/sdb1 307f922a-e58b-4289-a5d9-7a4363e77d7a ext3 TC
/dev/sdb2 862d177d-4302-4d64-b22b-30e0aef0a0fb ext4 SDHC
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda1 / ext4 (rw,noatime)
/dev/sda2 /media/FILES-F ext4 (rw,nosuid,nodev,uhelper=hal)
/dev/sda3 /media/LINUX-DATA-0 ext4 (rw,nosuid,nodev,uhelper=hal)
/dev/sda5 /media/LINUX-DATA-1 ext4 (rw,nosuid,nodev,uhelper=hal)
/dev/sda6 /media/LINUX-DATA-2 ext4 (rw,nosuid,nodev,uhelper=hal)
/dev/sda7 /media/NTFS-DATA fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sdb1 /media/TC ext3 (rw,nosuid,nodev,uhelper=hal)
/dev/sdb2 /media/SDHC ext4 (rw,nosuid,nodev,uhelper=hal)
=========================== sda1/boot/grub/menu.lst: ===========================
--------------------------------------------------------------------------------
timeout 4
color light-gray/black white/black
default 0
title 2.6.38.8-pclos3.bfs
kernel (hd0,0)/boot/vmlinuz-2.6.38.8-pclos3.bfs BOOT_IMAGE=2.6.38.8-pclos3.bfs root=LABEL=LXDE2011-F
initrd (hd0,0)/boot/initrd-2.6.38.8-pclos3.bfs.img
title 2.6.38.8-pclos3
kernel (hd0,0)/boot/vmlinuz-2.6.38.8-pclos3 BOOT_IMAGE=2.6.38.8-pclos3 root=LABEL=LXDE2011-F
initrd (hd0,0)/boot/initrd-2.6.38.8-pclos3.img
title linux
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=LABEL=LXDE2011-F
initrd (hd0,0)/boot/initrd.img
title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=LABEL=LXDE2011-F quiet vmalloc=256M acpi=on
initrd (hd0,0)/boot/initrd.img
title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=LABEL=LXDE2011-F quiet failsafe vmalloc=256M acpi=on
initrd (hd0,0)/boot/initrd.img
title memtest-4.20
kernel (hd0,0)/boot/memtest-4.20 BOOT_IMAGE=memtest-4.20
title Fedora F14 LXDE (2.6.35.6-45.fc14.i686)
root (hd0,2)
configfile /boot/grub/menu.lst
# kernel (hd0,2)/boot/vmlinuz-2.6.35.6-45.fc14.i686 ro root=UUID=6a1cea48-007e-4a6b-899f-6fab8c75bbd8 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
# initrd (hd0,2)/boot/initramfs-2.6.35.6-45.fc14.i686.img
--------------------------------------------------------------------------------
=============================== sda1/etc/fstab: ================================
--------------------------------------------------------------------------------
# Entry for /dev/sdb1 :
LABEL=LXDE2011-F / ext4 noatime 1 1
none /proc proc defaults 0 0
none /dev/pts devpts defaults 0 0
#UUID=1262864b-d43c-43b6-9b62-8aba37f31e0b swap swap defaults 0 0
#LABEL=FILES-F /home/user/FILES ext4 noatime 1 1
--------------------------------------------------------------------------------
=================== sda1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
6.443625927 = 6.918790656 boot/grub/menu.lst 1
4.758521557 = 5.109423616 boot/grub/stage2 1
4.765189648 = 5.116583424 boot/initrd-2.6.38.8-pclos3.bfs.img 1
4.758414745 = 5.109308928 boot/initrd-2.6.38.8-pclos3.img 1
4.765189648 = 5.116583424 boot/initrd.img 1
0.304717541 = 0.327187968 boot/initrd.img.old 2
4.770347118 = 5.122121216 boot/vmlinuz 1
4.767570019 = 5.119139328 boot/vmlinuz-2.6.38.8-pclos3 1
4.770347118 = 5.122121216 boot/vmlinuz-2.6.38.8-pclos3.bfs 1
========================== sda3/boot/grub/grub.conf: ===========================
--------------------------------------------------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sdc1
# initrd /boot/initrd-[generic-]version.img
#boot=/dev/sdc
default=0
timeout=0
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora F14 LXDE (2.6.35.6-45.fc14.i686)
root (hd0,2)
kernel /boot/vmlinuz-2.6.35.6-45.fc14.i686 ro root=UUID=6a1cea48-007e-4a6b-899f-6fab8c75bbd8 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /boot/initramfs-2.6.35.6-45.fc14.i686.img
--------------------------------------------------------------------------------
=============================== sda3/etc/fstab: ================================
--------------------------------------------------------------------------------
#
# /etc/fstab
# Created by anaconda on Sun Nov 18 19:54:49 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=6a1cea48-007e-4a6b-899f-6fab8c75bbd8 / ext4 noatime 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
--------------------------------------------------------------------------------
=================== sda3: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
17.662615299 = 18.965088768 boot/grub/grub.conf 1
17.662615299 = 18.965088768 boot/grub/menu.lst 1
17.657740116 = 18.959854080 boot/grub/stage2 1
16.420420170 = 17.631291904 boot/initramfs-2.6.35.6-45.fc14.i686.img 1
17.654013157 = 18.955852288 boot/initrd-plymouth.img 1
17.657457829 = 18.959550976 boot/vmlinuz-2.6.35.6-45.fc14.i686 1
====================== sdb1/boot/extlinux/extlinux.conf: =======================
--------------------------------------------------------------------------------
DEFAULT core
LABEL core
KERNEL /boot/vmlinuz
APPEND initrd=/boot/core.gz quiet waitusb=5:LABEL="TC" tce=LABEL="TC" home=LABEL="TC"
#APPEND initrd=/boot/core.gz quiet waitusb=5:UUID="58ac1005-3c90-44be-bce0-6d23fe496d7b" tce=UUID="58ac1005-3c90-44be-bce0-6d23fe496d7b" home=UUID="58ac1005-3c90-44be-bce0-6d23fe496d7b" --------------------------------------------------------------------------------
=================== sdb1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
0.179283142 = 0.192503808 boot/vmlinuz 2
================= sdb1: Location of files loaded by Syslinux: ==================
GiB - GB File Fragment(s)
0.176925659 = 0.189972480 boot/extlinux/extlinux.conf 1
0.148468018 = 0.159416320 boot/extlinux/extlinux.sys 1
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sda4
00000000 05 c3 e0 13 59 72 d7 6d af 91 4e f6 44 36 8b af |....Yr.m..N.D6..|
00000010 f1 54 3e 3f 02 d0 34 6a 96 e2 47 55 4a ff e8 3d |.T>?..4j..GUJ..=|
00000020 be 51 dc 89 dc 96 5b 62 75 58 52 fa 5f 69 7c 8a |.Q....[buXR._i|.|
00000030 69 a7 9f 1e db 35 b8 41 ca 6c 0e 5a 64 20 cb e9 |i....5.A.l.Zd ..|
00000040 bb e5 55 2c a2 d1 f0 b7 dd fe 59 19 26 1e 25 64 |..U,......Y.&.%d|
00000050 d0 ff 6c d6 a4 b0 c4 c9 d2 61 f0 96 e1 cf 9f 63 |..l......a.....c|
00000060 9c a8 9d 96 c6 b2 22 82 f1 30 06 97 d1 ed 10 1d |......"..0......|
00000070 52 60 d0 98 1b 6a b5 7f 11 e8 44 5e 01 03 e0 0f |R`...j....D^....|
00000080 ad e5 69 93 14 8d 7d 3d ff 9d 11 19 ba 68 95 56 |..i...}=.....h.V|
00000090 cc f3 8e 95 15 58 f4 b9 35 ae 1d 7b f9 3f c5 9e |.....X..5..{.?..|
000000a0 34 04 f4 cd ca d5 6c 62 7c 4b 7f 39 29 b2 f0 09 |4.....lb|K.9)...|
000000b0 df 19 fe 6b 82 e1 de 52 4d 74 f5 38 68 5b 39 ab |...k...RMt.8h[9.|
000000c0 be e9 93 02 b8 76 16 ea fb da d0 ce b0 fa 7c f8 |.....v........|.|
000000d0 ba af 5b e4 d6 b2 57 5b 47 59 1a 29 17 5a d4 84 |..[...W[GY.).Z..|
000000e0 b6 43 47 c5 cf 6b 49 49 f3 79 63 06 82 18 95 f0 |.CG..kII.yc.....|
000000f0 3c 3f ef 25 96 6e 37 ae 54 ab 9e be 59 5d 83 33 |<?.%.n7.T...Y].3|
00000100 e2 56 5f ff 4b ef 3b 99 a7 e9 f2 f8 23 28 56 c5 |.V_.K.;.....#(V.|
00000110 d0 c8 e0 f8 08 21 dd e7 4e 53 c5 45 5e 11 c3 e0 |.....!..NS.E^...|
00000120 9c 05 cd 6f fc 43 08 5e 5c 7f f3 e6 d5 9c 2f 20 |...o.C.^\...../ |
00000130 3e 57 d8 38 a2 cd a7 07 f6 3b 6d bc 0c 86 c0 7a |>W.8.....;m....z|
00000140 81 e3 65 de 1e f4 d2 15 6c 9e 0f 8c 02 31 d6 6e |..e.....l....1.n|
00000150 d7 7d c6 8a 75 d8 74 44 1e 5b c9 8c be 41 29 b1 |.}..u.tD.[...A).|
00000160 d0 53 8e b4 f5 ae fb 6d bc f8 59 79 38 6e c2 55 |.S.....m..Yy8n.U|
00000170 72 f8 9b 29 d1 f1 17 bd 27 3d 76 3f fb 21 91 70 |r..)....'=v?.!.p|
00000180 2b 8f 3e af 1c ad 83 e7 ea b0 75 78 cc 3b 04 6d |+.>.......ux.;.m|
00000190 ef 37 1c bd 7c b0 2d 0c c7 c2 6f 6b 53 1a 71 7a |.7..|.-...okS.qz|
000001a0 ac 92 eb 74 46 24 be 67 69 02 bb d2 21 f0 a4 ff |...tF$.gi...!...|
000001b0 f6 ec 21 ba 72 e7 66 f4 91 e2 41 1d ef 15 00 fe |..!.r.f...A.....|
000001c0 ff ff 83 fe ff ff 3f 00 00 00 26 4b 49 06 00 fe |......?...&KI...|
000001d0 ff ff 05 fe ff ff 65 4b 49 06 65 4b 49 06 00 00 |......eKI.eKI...|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
How did grub appear on /dev/sda3 ?.
Did you copy it from sda1, or (re-)install it from with that Fedora system ?.
Well grub itself is in sda, the sda3 entries are from sdc1, I just changed root to
hd0,2 and the UUID to the partition's UUID at sda3.
The prefdm attempt during boot says respawning to fast, stopped.
If I boot a second way, thru menu.lst in sda1 for sda3 it says can't mount root filesystem, stopped.
Things might work if you change the "root" to point to your active grub, rather than the one you are transferring into - that (target) has no active code.
Personally I have always chroot into the target system and do a grub-install/setup/whatever the distro needs.
Things might work if you change the "root" to point to your active grub, rather than the one you are transferring into - that (target) has no active code.
Personally I have always chroot into the target system and do a grub-install/setup/whatever the distro needs.
Nothing in this thread works.
The problem as I see it is when I cp the files from
sdc1 to sda3 and try to boot from any menu.lst is that
the initrd has to be changed to do so. But, it is very
hard to change the initrd on an inactive partition.
If the initrd can be changed while the partition is inactive
to relate to sda3 rather than sdc1 success is done.
I've only seen it done once, it's like a five step process,
and I can't find the thread where such genius has done so.
If I cp a change from sdc1 to sda1, no problem, but from sdc1
to sda3, then the initrd needs changing, big problem then.
So right now it's just a technical question, but not completely
unresolvable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.