Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: moving knoppix to different partition

Hybrid View

  1. #1
    Junior Member registered user
    Join Date
    Jan 2009
    Posts
    16

    moving knoppix to different partition

    i installed knoppix onto a computer with 7 partitions on the 6th partition. when i made sure everything was all good. i cloned just the knoppix partition it to an image file and then cloned this iamge file onto the 4th partition on my laptop .

    i did not want to reinstall knoppix on my laptop to risk messing up my existing boot loader as i currently have xp , mac osx, vista , knoppix , opensuse , swap partition and a data partition installed all quad bootable via grub4dos.

    i can edit grub (by way of root (hd0,4), kernel xxx , init xxx ) and point it to the cloned partition and knoppix will boot . i can see it boot the hard disk , and a scsi disk although i dont have one and it seems an existing config file is still pointing to the old partition number still hence it stops there on an error and exits to a basic tty shell

    does anyone know whwats this config file i still need to edit ; i can still boot into opensuse v11 mount and edit the knoppix extfraiser file system . so i kind of know basic commands

  2. #2
    Junior Member registered user
    Join Date
    Jan 2009
    Posts
    16
    after further reading i have edited my fstab file it seems to boot further but still get same problem , the howto on here shows to edit ftab nut i cant see where to edit by device id rather then label or something like that

  3. #3
    Senior Member registered user
    Join Date
    Jan 2005
    Location
    UK
    Posts
    282

    Re: moving knoppix to different partition

    Quote Originally Posted by cv65user
    i installed knoppix onto a computer with 7 partitions on the 6th partition. when i made sure everything was all good. i cloned just the knoppix partition it to an image file and then cloned this iamge file onto the 4th partition on my laptop .

    i did not want to reinstall knoppix on my laptop to risk messing up my existing boot loader as i currently have xp , mac osx, vista , knoppix , opensuse , swap partition and a data partition installed all quad bootable via grub4dos.

    i can edit grub (by way of root (hd0,4), kernel xxx , init xxx ) and point it to the cloned partition and knoppix will boot . i can see it boot the hard disk , and a scsi disk although i dont have one and it seems an existing config file is still pointing to the old partition number still hence it stops there on an error and exits to a basic tty shell

    does anyone know whwats this config file i still need to edit ; i can still boot into opensuse v11 mount and edit the knoppix extfraiser file system . so i kind of know basic commands

    If you think about what you have done :-
    You have cloned hda6 to hda4 (a primary partition, are you sure?)
    XP, Vista Mac OSX all must have primary partition and as you have 7 partitions, then one of your primary partitions will be an extended partition for your logical drives.

    You need to post the output of
    fdisk -l

    from one of your linux partitions.

    In any case when you cloned say hda6 to hda4 (which also must be a single /partition containing /home)
    hda6 contained an fstab. The filesystem table entries would have pointed to mount / as hda6 (or whatever partition it was)

    Now when you move it to hda4 you alter grub to boot the new system, but when it boots the fstab still has / set to the old partition.
    You must manually mount the moved knoppix filesystem from another linux system and edit its fstab so it points to the correct partition

  4. #4
    Junior Member registered user
    Join Date
    Jan 2009
    Posts
    16
    thx for the replies to my other post. yes after searching google , i realised its something to do with my fstab files. even though i logged into bootable opensuse and mounted the knoppix partition (as i recognised the menu.lst matches the boot loader menu) , the command i used was "mount /dev/sda5 /mnt/sda5 " . as when i press tab it shows there is only one reiserFS file system so obviously this must be my knoppix partition = sda5.

    however when i pretend to partition my drive with YAST in opensuse to show my partition table it shows it as sda6 as it counts the logical drive table as one partition - this is where i got confused. so by filtering out , i edited menu.lst changing each partition number in my grub loader until it started booting knoppix half way which was

    root (hd0,5)
    kernel xxx
    init xxx
    boot



    sorry the the very long reply by the way

    pls see disk 1 of the screen shot of my partition table layout in win xp . ignore disk 0 as that was a test d isk .



    so correct me if i am wrong

    sda0 the actual hdd
    sda1 xp
    sda2 osx
    sda3 the green extended table
    sda4 the data partition
    sda5 now starts couting the logical drives , so would be vista
    sda6 knoppix
    sda7 opensuse
    sda8 linxu swap

    problem is also its an aspire one a150l with 160gb sata hdd. but how comes in grub i refer to it as hdax? not sdax? so thats why i am probaly confused what to edit my fstab to - i read on other thread its better to edit my device id rather then label or something ?

  5. #5
    Junior Member registered user
    Join Date
    Jan 2009
    Posts
    16
    ran fdisk -l from opensuse

    Disk /dev/sda: 160.0 GB,
    160041885696 bytes
    255 heads,
    63 sectors/track,
    19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xd91ac89e


    Device Boot Start End Blocks Id System

    /dev/sda1 1 2550 20482843+ 7 HPFS/NTFS - primary ,xp
    /dev/sda2 2551 3825 10241437+ af Unknown - primary, leapord
    /dev/sda3 3826 5610 14338012+ f W95 Ext'd (LBA) - extended drive
    /dev/sda4 * 5611 19457 111226027+ 7 HPFS/NTFS - primary , data/doc drive
    /dev/sda5 3826 4462 5116671 7 HPFS/NTFS - logical ,vista
    /dev/sda6 4463 4972 4096543+ 7 HPFS/NTFS - logical, knoppix
    /dev/sda7 4973 5482 4096543+ 83 Linux - logical , open suse v11
    /dev/sda8 5483 5610 1028128+ 82 Linux swap / Solaris - logical , linux swap

    whast the * mean by the way , means current active partiion , IIRC it was on sda1 before ? :S

  6. #6
    Junior Member registered user
    Join Date
    Jan 2009
    Posts
    16
    knoppix fstab file

    # /etc/fstab: filesystem table.
    #
    # filesystem mountpoint type options dump pass
    /dev/hda5 / reiserfs defaults 0 1

    proc /proc proc defaults 0 0
    /dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
    usbfs /proc/bus/usb usbfs devmode=0666 0 0
    sysfs /sys sysfs defaults 0 0
    tmpfs /dev/shm tmpfs defaults 0 0
    /dev/cdrom /media/cdrom iso9660 defaults,ro,users,noexec,noauto 0 0
    /dev/cdrom1 /media/cdrom1 iso9660 defaults,ro,users,noexec,noauto 0 0
    /dev/dvd /media/dvd iso9660 defaults,ro,users,noexec,noauto 0 0
    # Added by KNOPPIX
    /dev/hda1 /media/hda1 ntfs noauto,users,exec,umask=000 0 0
    # Added by KNOPPIX
    /dev/hda2 /media/hda2 auto noauto,users,exec 0 0
    # Added by KNOPPIX
    /dev/hda4 /media/hda4 ntfs noauto,users,exec,umask=000 0 0
    # Added by KNOPPIX
    /dev/hda5 /media/hda5 ntfs noauto,users,exec,umask=000 0 0
    # Added by KNOPPIX
    /dev/hda6 /media/hda6 ntfs noauto,users,exec,umask=000 0 0
    # Added by KNOPPIX
    /dev/hda8 none swap defaults 0 0
    # Added by KNOPPIX
    /dev/hdc /media/hdc auto ro,noauto,users,exec 0 0


    fstab opensuse

    /dev/disk/by-id/scsi-SATA_WDC_WD1600BEVT-_WD-WXE808EK4160-part8 swap swap defaults 0 0
    /dev/disk/by-id/scsi-SATA_WDC_WD1600BEVT-_WD-WXE808EK4160-part7 / ext3 defaults 1 1
    /dev/disk/by-id/scsi-SATA_WDC_WD1600BEVT-_WD-WXE808EK4160-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.U TF-8 0 0
    /dev/disk/by-id/scsi-SATA_WDC_WD1600BEVT-_WD-WXE808EK4160-part4 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.U TF-8 0 0
    /dev/disk/by-id/scsi-SATA_WDC_WD1600BEVT-_WD-WXE808EK4160-part5 /windows/E ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.U TF-8 0 0
    /dev/disk/by-id/scsi-SATA_WDC_WD1600BEVT-_WD-WXE808EK4160-part6 /windows/F ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.U TF-8 0 0
    proc /proc proc defaults 0 0
    sysfs /sys sysfs noauto 0 0
    debugfs /sys/kernel/debug debugfs noauto 0 0
    devpts /dev/pts devpts mode=0620,gid=5 0 0

  7. #7
    Junior Member registered user
    Join Date
    Jan 2009
    Posts
    16
    i have updated my fstab to all sda6 but it gets to

    loading usb hid core driver,
    done ,
    check root bootarg cat/ proc/cmdline or missing modfules , devices cat /pproc/modeules ls / dev
    ALERT! /dev/hda6 does not exist . dropping to a shell !

    busybox v113 (Debian 1:1.1.3-3) built in shell (ash)
    enter 'help' for a list of built in commands.

    /bin/sh: cant access tty: job control turned off
    (initramfs)_

    it seems another file is not linked to the correct partition as its refering to hda6 when i have referred fstab config file to sda's. ?

  8. #8
    Senior Member registered user
    Join Date
    Jan 2005
    Location
    UK
    Posts
    282
    Quote Originally Posted by cv65user
    knoppix fstab file

    # /etc/fstab: filesystem table.
    #
    # filesystem mountpoint type options dump pass
    /dev/hda5 / reiserfs defaults 0 1

    proc /proc proc defaults 0 0
    /dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
    usbfs /proc/bus/usb usbfs devmode=0666 0 0
    sysfs /sys sysfs defaults 0 0
    tmpfs /dev/shm tmpfs defaults 0 0
    /dev/cdrom /media/cdrom iso9660 defaults,ro,users,noexec,noauto 0 0
    /dev/cdrom1 /media/cdrom1 iso9660 defaults,ro,users,noexec,noauto 0 0
    /dev/dvd /media/dvd iso9660 defaults,ro,users,noexec,noauto 0 0
    # Added by KNOPPIX
    /dev/hda1 /media/hda1 ntfs noauto,users,exec,umask=000 0 0
    # Added by KNOPPIX
    /dev/hda2 /media/hda2 auto noauto,users,exec 0 0
    # Added by KNOPPIX
    /dev/hda4 /media/hda4 ntfs noauto,users,exec,umask=000 0 0
    # Added by KNOPPIX
    /dev/hda5 /media/hda5 ntfs noauto,users,exec,umask=000 0 0
    # Added by KNOPPIX
    /dev/hda6 /media/hda6 ntfs noauto,users,exec,umask=000 0 0
    # Added by KNOPPIX
    /dev/hda8 none swap defaults 0 0
    # Added by KNOPPIX
    /dev/hdc /media/hdc auto ro,noauto,users,exec 0 0


    fstab opensuse

    /dev/disk/by-id/scsi-SATA_WDC_WD1600BEVT-_WD-WXE808EK4160-part8 swap swap defaults 0 0
    /dev/disk/by-id/scsi-SATA_WDC_WD1600BEVT-_WD-WXE808EK4160-part7 / ext3 defaults 1 1
    /dev/disk/by-id/scsi-SATA_WDC_WD1600BEVT-_WD-WXE808EK4160-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.U TF-8 0 0
    /dev/disk/by-id/scsi-SATA_WDC_WD1600BEVT-_WD-WXE808EK4160-part4 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.U TF-8 0 0
    /dev/disk/by-id/scsi-SATA_WDC_WD1600BEVT-_WD-WXE808EK4160-part5 /windows/E ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.U TF-8 0 0
    /dev/disk/by-id/scsi-SATA_WDC_WD1600BEVT-_WD-WXE808EK4160-part6 /windows/F ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.U TF-8 0 0
    proc /proc proc defaults 0 0
    sysfs /sys sysfs noauto 0 0
    debugfs /sys/kernel/debug debugfs noauto 0 0
    devpts /dev/pts devpts mode=0620,gid=5 0 0

    Ok, you moved the knoppix partition, according to
    fdisk -l it is now on /dev/hda6 but as an NTFS filesystem?

    To verify this boot into suse, open a terminal and type
    as root

    mount /dev/sda6 /media/sda6

    You may have to create mount point sda6 so
    mkdir -p /media/sda6

    we have deliberately omitted the -t option as mount is smart enough to determine file type.
    Then I want you to post

    df -hT

    This will show whats mounted and in addition which filesystem.
    it would appear knoppix is now /dev/hda6 but now the / partition is ntfs not reiser so
    knoppix fstab will need to be altered.

    Never post anything from windows, its next to useless and computer management means nothing
    The fact that you can resassign any letter from a to z to a drive in windows is also meaningless as they
    can be on any partition.
    With Solaris, FreeBSD and linux there is no ambiguity about any partition called sda6, we all know its
    a hard drive type SATA or SCSI and the 6th partition, or 2nd logical drive in the extended partition.

    Oh, the reason why Suse sees your hard drive partitions as sda and knoppix sees them as hda is
    the use of libATA emulation in the kernel.
    With libATA any IDE drive is seen as SD and not HD and you are limited to 16 partitions.
    Hope that helps

  9. #9
    Junior Member registered user
    Join Date
    Jan 2009
    Posts
    16
    a bit strange to day , running the commands again shows it different but as a reiserfs file system which is what it should have been in the first place

    FDISK =

    linux-ogo1:~ # fdisk -l

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xd91ac89e

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS
    /dev/sda2 2551 3825 10241437+ af Unknown
    /dev/sda3 3826 5610 14338012+ f W95 Ext'd (LBA)
    /dev/sda4 5611 19457 111226027+ 7 HPFS/NTFS
    /dev/sda5 3826 4462 5116671 7 HPFS/NTFS
    /dev/sda6 4463 4972 4096543+ 83 Linux
    /dev/sda7 4973 5482 4096543+ 83 Linux
    /dev/sda8 5483 5610 1028128+ 82 Linux swap / Solaris


    df -ht=

    linux-ogo1:/mnt # mkdir -p /mnt/a
    linux-ogo1:/mnt # ls
    a
    linux-ogo1:/mnt # mount /dev/sda6 /mnt/a
    linux-ogo1:/mnt # df -hT
    Filesystem Type Size Used Avail Use% Mounted on
    /dev/sda7 ext3 3.9G 2.0G 1.8G 53% /
    udev tmpfs 246M 96K 246M 1% /dev
    /dev/sdb1 vfat 967M 705M 263M 73% /media/NEW VOLUME
    /dev/sda6 reiserfs 4.0G 2.0G 2.0G 50% /mnt/a

    sdb1 is my 1gb usb stick
    sda7 seems suse root
    sda6 is my knoppix as when i mounted it , i brwosed to /mnt/a/ and opened this folder to which it has knoppix files in it as i recognised the menu.lst file which knoppix auto created .

  10. #10
    Senior Member registered user
    Join Date
    Jan 2005
    Location
    UK
    Posts
    282
    OK, I presume you are using Grub as the Boot loader installed from Suse.

    Can you now boot into Suse and post the output of:

    cat /boot/grub/menu.lst

Page 1 of 2 12 LastLast

Similar Threads

  1. Accessing and moving files using Knoppix.
    By shared3 in forum MS Windows & New to Linux
    Replies: 0
    Last Post: 08-21-2007, 06:59 AM
  2. Moving Files from Knoppix Live to WinXP Pro
    By Girtych in forum MS Windows & New to Linux
    Replies: 2
    Last Post: 12-26-2004, 02:56 PM
  3. moving Knoppix installation
    By Catscratch in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 08-27-2004, 01:05 PM
  4. Moving my home directory to another partition?
    By stukennedyuk in forum Hdd Install / Debian / Apt
    Replies: 5
    Last Post: 02-13-2004, 02:55 PM
  5. Moving files around in knoppix
    By kleptophobiac in forum General Support
    Replies: 1
    Last Post: 08-06-2003, 03:36 AM

Posting Permissions

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


Intel Core i5/i7/i9 AMC CPU Processors, LOT of 90 pcs picture

Intel Core i5/i7/i9 AMC CPU Processors, LOT of 90 pcs

$18000.00



INTEL CORE I7-870 SLBJG 2.93GHZ LGA1156 4 CORE CPU PROCESSOR picture

INTEL CORE I7-870 SLBJG 2.93GHZ LGA1156 4 CORE CPU PROCESSOR

$23.00



INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH picture

INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH

$179.99



Intel Core i7-14700KF 20-Core 3.4GHz LGA1700 33MB Cache CPU SRN3Y picture

Intel Core i7-14700KF 20-Core 3.4GHz LGA1700 33MB Cache CPU SRN3Y

$310.00



Intel Core i7-3770K 3.5 GHz Processor picture

Intel Core i7-3770K 3.5 GHz Processor

$39.00



AMD Ryzen 5 5500 Processor ( read Description) picture

AMD Ryzen 5 5500 Processor ( read Description)

$59.00



Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor picture

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor

$114.99



Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151 picture

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151

$79.99



Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor picture

Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor

$175.00



AMD Ryzen 5 PRO 4650GE 100-000000153 6-Core 3.30GHz 8MB AM4 CPU Processor picture

AMD Ryzen 5 PRO 4650GE 100-000000153 6-Core 3.30GHz 8MB AM4 CPU Processor

$59.99