Find the answer to your Linux question:
Page 3 of 5 FirstFirst 1 2 3 4 5 LastLast
Results 21 to 30 of 44
Originally Posted by nessonic I'm away from the computer now, but as for sda, I used hda as that was what the drives were called back in the original steps ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21
    Linux Enthusiast gruven's Avatar
    Join Date
    Dec 2004
    Location
    Arkansas
    Posts
    541

    Quote Originally Posted by nessonic View Post
    I'm away from the computer now, but as for sda, I used hda as that was what the drives were called back in the original steps of preparing the hdd. I figured go with how it is structured, and every sda mention in the handbook I switched for hda. Hopefully that didn't mess up the entire thing now.
    You will have to use sd*. In kernels above 2.26.20+ or so, they deprecated the old ide drivers and now sd* is used.

    If you don't use sd* in grub and fstab, your system most likely won't boot.

    Linux User #376741
    Code is Poetry

  2. #22
    Just Joined!
    Join Date
    Feb 2011
    Posts
    44
    I tried booting through command line, and have a lot of lines that won't move and no keyboard/anything will get me out of it. It's also the same screen I get when I d(elete) the initrd line from the grub edit by hitting e(dit).

    Two things I can read (as in somewhat understand) are that it lists correct boot= options as sda (as you mentioned) and the other is a Kernal panic - not syncing: VFS: Unable to mount root fs on unknown-block (3,3)

    Since I've set everything dealing with sda to hda, it looks like I'll have to start over.

  3. #23
    Linux Enthusiast gruven's Avatar
    Join Date
    Dec 2004
    Location
    Arkansas
    Posts
    541
    No need to start over, that is the beauty of Gentoo. Just chroot back in, and bam, change anything you like.

    The error you are getting is likely that you either have a line in your fstab wrong, or you possibly didn't compile the correct filesystem into your kernel. There are a few things that will give that error, but those two are what I usually start with.

    Linux User #376741
    Code is Poetry

  4. #24
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Quote Originally Posted by gruven View Post
    No need to start over, that is the beauty of Gentoo. Just chroot back in, and bam, change anything you like.

    The error you are getting is likely that you either have a line in your fstab wrong, or you possibly didn't compile the correct filesystem into your kernel. There are a few things that will give that error, but those two are what I usually start with.
    Agreed. Do not start over unless you really want to and the error looks like you might have left out support for whatever filesystem you created on /boot.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  5. #25
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Post the oputput of
    Code:
    fdisk -l
    Code:
    cat /etc/fstab
    Code:
    cat /boot/grub/grub.conf
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  6. #26
    Just Joined!
    Join Date
    Feb 2011
    Posts
    44
    MikeTBob, is that through GRUB's c(ommand) mode?

    And I tried chrooting back in while using the the live installation cd again, and /bin/bash was undetected, so how would I chroot back in?

  7. #27
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    The fdisk, you can issue from LiveCD the other two, you need to be chrooted. Post the commands you use for chroot please.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  8. #28
    Just Joined!
    Join Date
    Feb 2011
    Posts
    44
    For chrooting, I'm using the same commands as in the handbook:

    # chroot /mnt/gentoo /bin/bash
    # env-update
    >> Regenerating /etc/ld.so.cache...
    # source /etc/profile
    # export PS1="(chroot) $PS1"

    fdisk -l gave this:

    /dev/hda1 * 3 80 39138 83 Linux
    /dev/hda2 80 1116 522112+ 82 LInux swap/ Solaris
    /dev/hda3 1116 58156 28748318 83 Linux

    Each disk line has another underneath it that reads: Partition 1(2,3) does not end on cylinder boundary.

  9. #29
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,040
    OK ... I suggest you get hold of a live CD which you can use to access the net & post output of commands here, then boot from the live CD, open a terminal and type
    Code:
    mkdir /mnt/hda1
    mkdir /mnt/hda3
    mount /dev/hda1 /mnt/hda1
    mount /dev/hda3 /mnt/hda3
    mount
    and post output of the last mount command.
    Also post the output of
    Code:
    ls /mnt/hda1 -l
    ls /mnt/hda3 -l
    I have IDE and SATA drives on my desktop PC running Gentoo, IDE drive references are /dev/hda1 etc while SATA drives are /dev/sda1 etc.

    Ed: if you find the mount /dev/hda1 /mnt/hda1 command throws an error the live CD you use may use /dev/sda rather than hda reference ... in which case do the above replacing hda with sda ...

  10. #30
    Just Joined!
    Join Date
    Feb 2011
    Posts
    44
    The output of the first set of commands is thus:

    tmpfs on / type tmpfs (rw)
    /dev/hdc on /mnt/cdrom type iso9660 (ro,relatime)
    /dev/loop0 on /mnt/livecd type squashfs (ro,relatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
    tmpfs on /mnt/livecd/lib/firmware type tmpfs (rw)
    tmpfs on /mnt/livecd/usr/portage type tmpfs (rw)
    usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
    /dev/hda1 on /mnt/hda1 type ext2 (rw)
    /dev/hda3 on /mnt/hda3 type ext3 (rw)

    note: for the "udev" part, I'm not entirely sure it's a u, my monitor cuts off and changing the resolution doesn't help (same cutoff, different size on screen).

    For the second:

    total 4021
    lrwxrwxrwx 1 root root 1 Mar 1 00:12 boot -> .
    -rw-r--r-- 1 root root 408688 Mar 1 12:08 gentoosrc2636
    drwxr-xr-x 2 root root 1024 Mar 1 22:52 grub
    drwx------ 2 root root 12288 Mar 1 06:04 lost+found

    I'm downloading the iso for knoppix now; copying over the 3rd command is too much.
    edit: The following are going to be the same results, but within Knoppix (through root terminal, the normal terminal gave me issues such as now allowing those commands)

    rootfs on / type rootfs (rw,relatime)
    proc on /proc type proc (rw,relatime)
    sysfs on /sys type sysfs (rw,relatime)
    /dev/sr0 on /mnt-system type iso9660 (ro,relatime)
    tmpfs on /ramdisk type tmpfs (rw,relatime,size=2097152k)
    /dev/cloop on /KNOPPIX type iso9660 (ro,relatime)
    unionfs on /UNIONFS type aufs (rw,relatime,si=ab05d17c,noplink)
    unionfs on /home type aufs (rw,relatime,si=ab05d17c,noplink)
    usbfs on /proc/bus/usb type usbfs (rw,relatime)
    tmpfs on /UNIONFS/var/run type tmpfs (rw,relatime,size=10240k)
    tmpfs on /UNIONFS/var/lock type tmpfs (rw,relatime,size=10240k)
    tmpfs on /UNIONFS/var/log type tmpfs (rw,relatime,size=102400k)
    tmpfs on /tmp type tmpfs (rw,relatime,size=2097152k)
    udev on /dev type tmpfs (rw,relatime,size=20480k)
    tmpfs on /dev/shm type tmpfs (rw,relatime,size=2097152k)
    devpts on /dev/pts type devpts (rw,relatime,mode=1777)
    cgroup on /cgroup/cpu type cgroup (rw,relatime,cpu,release_agent=/usr/sbin/cgroup-remove)
    /dev/sda1 on /mnt/hda1 type ext2 (rw,relatime,errors=continue)
    /dev/sda3 on /mnt/hda3 type ext3 (rw,relatime,errors=continue,barrier=0,data=writeb ack)

    second result is the same

    and now the third:

    total 180616
    drwxr-xr-x 2 root root 4096 Mar 1 22:47 bin
    drwxr-xr-x 2 root root 4096 Mar 1 06:06 boot
    drwxr-xr-x 10 root root 36864 Feb 22 15:09 dev
    drwxr-xr-x 32 root root 4096 Mar 1 22:52 etc
    drwxr-xr-x 2 root root 4096 Feb 22 13:01 home
    drwxr-xr-x 9 root root 4096 Mar 1 22:47 lib
    drwx------ 2 root root 16384 Mar 1 06:05 lost+found
    drwxr-xr-x 4 root root 4096 Feb 22 15:08 mnt
    drwxr-xr-x 2 root root 4096 Feb 22 13:01 opt
    -rw-r--r-- 1 root root 39344358 Mar 1 00:17 portage-20110221.tar.bz2
    drwxr-xr-x 2 root root 4096 Feb 22 13:01 proc
    drwx------ 2 root root 4096 Mar 1 21:14 root
    drwxr-xr-x 2 root root 4096 Mar 1 22:47 sbin
    -rw-r--r-- 1 root root 145301043 Mar 1 00:10 stage3-i686-20110222.tar.bz2
    drwxr-xr-x 2 root root 4096 Feb 22 13:01 sys
    drwxrwxrwt 2 root root 4096 Mar 1 22:52 tmp
    drwxr-xr-x 12 root root 4096 Mar 1 00:19 usr
    drwxr-xr-x 12 root root 4096 Mar 1 22:32 var
    Last edited by nessonic; 03-04-2011 at 01:49 AM.

Page 3 of 5 FirstFirst 1 2 3 4 5 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •