The officially official Devuan Forum!

You are not logged in.

#1 Re: Desktop and Multimedia » how to easily copy a windows partition? » 2023-04-23 15:55:15

I was able to mount both shrinked image file and /dev/sdb1 successfully,  resize of the shrinked image is not successfully,  after updating grub menu, I tried to boot windows, but only got a blank screen with blinking cursor at top left corner.  Rebooted with win7 DVD disc, it doesn't detect win7 installation on the HDD. 

Then I remembered the sata controller setting, I entered Bios and changed the setting for sata to 'IDE' from 'AHCI'  and used windows 7 DVD disk to boot again, this time bootable disc sees windows 7 installation on hdd, and reported error and prompted for repair, accepted the repair and rebooted, still couldn't past the blinking cursor screen. 

thanks for the advice and help!  Next I will probably use DVD bootable disc to see if i could repair the restored win and reboot it.

erdos@htpc-devuan:/media/erdos/easystore/Backup$ sudo mount -o loop HP.shrinkme.img /mnt
[sudo] password for erdos: 
erdos@htpc-devuan:/media/erdos/easystore/Backup$ ls -l
total 204812644
drwxrwxrwx 1 erdos erdos            0 Apr  1 23:17 Config.Msi
-rwxrwxrwx 1 erdos erdos 104864062464 Apr  2 00:48 HP.qcow2
-rwxrwxrwx 1 erdos erdos 104864062464 Apr 22 07:53 HP.shrinkme.img
drwxrwxrwx 1 erdos erdos        20480 Apr  1 23:24 Windows
erdos@htpc-devuan:/media/erdos/easystore/Backup$ df -h
df: /run/user/1000/doc: Operation not permitted
Filesystem      Size  Used Avail Use% Mounted on
udev            2.0G     0  2.0G   0% /dev
tmpfs           394M  2.6M  391M   1% /run
/dev/sda1        19G  6.4G   11G  37% /
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.2G     0  1.2G   0% /dev/shm
/dev/sda5        35G   28G  5.8G  83% /home
tmpfs           394M  792K  393M   1% /run/user/1000
/dev/sdg1        13T  207G   13T   2% /media/erdos/easystore
/dev/loop0       91G   67G   24G  74% /mnt
erdos@htpc-devuan:/media/erdos/easystore/Backup$ sudo umount /mnt
erdos@htpc-devuan:/media/erdos/easystore/Backup$ sudo mount -t ntfs /dev/sdb1 /mnt
erdos@htpc-devuan:/media/erdos/easystore/Backup$ sudo umount /mnt
erdos@htpc-devuan:/media/erdos/easystore/Backup$ sudo ntfsresize -x /dev/sdb1
ntfsresize v2017.3.23AR.3 (libntfs-3g)
ERROR: Could not get the old volume parameters from the backup bootsector
erdos@htpc-devuan:/media/erdos/easystore/Backup$ sudo update-grub
Generating grub configuration file ...
Found theme: /usr/share/desktop-base/grub-themes/desktop-grub-theme/theme.txt
Found linux image: /boot/vmlinuz-5.10.0-9-amd64
Found initrd image: /boot/initrd.img-5.10.0-9-amd64
Found linux image: /boot/vmlinuz-4.19.0-9-amd64
Found initrd image: /boot/initrd.img-4.19.0-9-amd64
Found Windows 7 on /dev/sdb1
Found FreeBSD 12.2-RELEASE-p12 on /dev/sdb2
Found Windows Vista on /dev/sdb4
Found FreeBSD 12.2-RELEASE-p12 on /dev/sdb6
done

#2 Re: Desktop and Multimedia » how to easily copy a windows partition? » 2023-04-22 15:40:27

Thanks!

to answer the size of image file doesn't match the size of partition: I attempted to install a fresh copy of win7 onto the same partition using win7 installation DVD, during the process, I deleted and recreated the windows partition at same location, not sure whether this leads to the partition change.

edit:  attached screenshots when I installed fresh win7 onto the HDD,  one showing the result of chkdsk on original partition when backup with 'dd' was done, the other shows the partition info during installation. 
https://flic.kr/p/2ov6AMk
https://flic.kr/p/2ov7Hgg

here's the result of running commands as described,  it doesn't seem the image was resized (i.e. as show wih 'ls -l') even thought it reports success, the restoring of the image file still results error.

erdos@htpc-devuan:/media/erdos/easystore/Backup$ ls -l
total 204812644
drwxrwxrwx 1 erdos erdos            0 Apr  1 23:17 Config.Msi
-rwxrwxrwx 1 erdos erdos 104864062464 Apr  2 00:48 HP.qcow2
-rwxrwxrwx 1 erdos erdos 104864062464 Apr 18 21:07 HP.shrinkme.img
drwxrwxrwx 1 erdos erdos        20480 Apr  1 23:24 Windows
erdos@htpc-devuan:/media/erdos/easystore/Backup$ sudo ntfsresize -s 97G  HP.shrinkme.img
[sudo] password for erdos: 
ntfsresize v2017.3.23AR.3 (libntfs-3g)
Device name        : HP.shrinkme.img
NTFS volume version: 3.1
Cluster size       : 4096 bytes
Current volume size: 104864059904 bytes (104865 MB)
Current device size: 104864062464 bytes (104865 MB)
New volume size    : 96999997952 bytes (97000 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use       : 71757 MB (68.4%)
Collecting resizing constraints ...
Needed relocations : 838839 (3436 MB)
WARNING: Every sanity check passed and only the dangerous operations left.
Make sure that important data has been backed up! Power outage or computer
crash may result major data loss!
Are you sure you want to proceed (y/[n])? y
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Relocating needed data ...
100.00 percent completed
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
Syncing device ...
Successfully resized NTFS on device 'HP.shrinkme.img'.
You can go on to shrink the device for example with Linux fdisk.
IMPORTANT: When recreating the partition, make sure that you
  1)  create it at the same disk sector (use sector as the unit!)
  2)  create it with the same partition type (usually 7, HPFS/NTFS)
  3)  do not make it smaller than the new NTFS filesystem size
  4)  set the bootable flag for the partition if it existed before
Otherwise you won't be able to access NTFS or can't boot from the disk!
If you make a mistake and don't have a partition table backup then you
can recover the partition table by TestDisk or Parted's rescue mode.
erdos@htpc-devuan:/media/erdos/easystore/Backup$ sudo fdisk -l
Disk /dev/sdb: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5000AAKS-6
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1549f232

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1  *         2048 204812287 204810240  97.7G  7 HPFS/NTFS/exFAT
/dev/sdb2       204812685 309670262 104857578    50G a5 FreeBSD
/dev/sdb3       309861721 953151487 643289767 306.7G  f W95 Ext'd (LBA)
/dev/sdb4       953152515 976768064  23615550  11.3G  7 HPFS/NTFS/exFAT
/dev/sdb5       309861784 953151487 643289704 306.7G  7 HPFS/NTFS/exFAT

Partition table entries are not in disk order.

Disk /dev/sda: 55.9 GiB, 60022480896 bytes, 117231408 sectors
Disk model: Corsair Force LS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x287905c2

Device     Boot     Start       End  Sectors  Size Id Type
/dev/sda1  *         2048  39063551 39061504 18.6G 83 Linux
/dev/sda2        39065598 117229567 78163970 37.3G  5 Extended
/dev/sda5        39065600 113283071 74217472 35.4G 83 Linux
/dev/sda6       113285120 117229567  3944448  1.9G 82 Linux swap / Solaris

Disk /dev/sdg: 12.73 TiB, 14000519643136 bytes, 27344764928 sectors
Disk model: easystore 264D  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: B0F4FD99-AACA-4B97-BBF2-A3E7661D0DF4

Device     Start         End     Sectors  Size Type
/dev/sdg1   2048 27344762879 27344760832 12.7T Microsoft basic data
erdos@htpc-devuan:/media/erdos/easystore/Backup$ ls -l
total 204812644
drwxrwxrwx 1 erdos erdos            0 Apr  1 23:17 Config.Msi
-rwxrwxrwx 1 erdos erdos 104864062464 Apr  2 00:48 HP.qcow2
-rwxrwxrwx 1 erdos erdos 104864062464 Apr 22 07:53 HP.shrinkme.img
drwxrwxrwx 1 erdos erdos        20480 Apr  1 23:24 Windows
erdos@htpc-devuan:/media/erdos/easystore/Backup$ sudo dd if=HP.shrinkme.img of=/dev/sdb1 bs=10M
dd: error writing '/dev/sdb1': No space left on device
10000+1 records in
10000+0 records out
104862842880 bytes (105 GB, 98 GiB) copied, 2967.54 s, 35.3 MB/s
You have new mail in /var/mail/erdos
erdos@htpc-devuan:/media/erdos/easystore/Backup$ 

#3 Re: Desktop and Multimedia » [SOLVED] nvidia Error during boot » 2023-04-13 13:25:08

deepforest wrote:

how you install nvidia 340 driver on Chimaera?
https://dev1galaxy.org/viewtopic.php?id=5553

what relations between  "SATA 'AHCI' mode" and "nvidia-legacy-340xx"?

I temporally changed the devuan repo list to point to 'ceres' to pull in the 340 drivers and configured it, afterwards revert back to chimaera repo.

I have a legacy motherboard with dual win7/devuan boot. and I couldn't boot to windows unless I changed bios to 'IDE',  after installing 'AHCI' drivers for windows in IDE mode and reset bios to 'AHCI', i can boot both OS.  It might be resource conflict thing and I'm not savvy enough to understand it.  if you use newer computer, it probably won't matter.

#4 Re: Desktop and Multimedia » how to easily copy a windows partition? » 2023-04-12 01:00:02

thanks for the reply! 

The size of backup image file HP.qcow2:
97.7 GiB (104,864,062,464 bytes)

and to answer the earlier question of hard drive disk /partition info

erdos@htpc-devuan:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0  55.9G  0 disk 
├─sda1   8:1    0  18.6G  0 part /
├─sda2   8:2    0     1K  0 part 
├─sda5   8:5    0  35.4G  0 part /home
└─sda6   8:6    0   1.9G  0 part [SWAP]
sdb      8:16   0 465.8G  0 disk 
├─sdb1   8:17   0  97.7G  0 part 
├─sdb2   8:18   0    50G  0 part 
├─sdb3   8:19   0     1K  0 part 
├─sdb4   8:20   0  11.3G  0 part 
├─sdb5   8:21   0 306.7G  0 part 
├─sdb6   8:22   0    48G  0 part 
└─sdb7   8:23   0     2G  0 part 
sdg      8:96   0  12.7T  0 disk 
└─sdg1   8:97   0  12.7T  0 part /media/erdos/easystore
sr0     11:0    1   3.1G  0 rom  
You have new mail in /var/mail/erdos

#5 Re: Desktop and Multimedia » how to easily copy a windows partition? » 2023-04-08 14:26:44

Hi guys

I need help to restore the windows image I created back to my HDD. 
My backup image is on /media/erdos/easystore/Backup/, and I tried to restore to first partition of HDD #1,  identified by devuan as /dev/sda1,  devuan is on /dev/sdb

error received running dd command:

erdos@htpc-devuan:/etc/samba$ sudo dd if=/media/erdos/easystore/Backup/HP.qcow2 of=/dev/sda1 bs=10M status=progress
[sudo] password for erdos: 
104857600000 bytes (105 GB, 98 GiB) copied, 2935 s, 35.7 MB/s
dd: error writing '/dev/sda1': No space left on device
10000+1 records in
10000+0 records out
104862842880 bytes (105 GB, 98 GiB) copied, 2936.54 s, 35.7 MB/s
You have new mail in /var/mail/erdos
erdos@htpc-devuan:/etc/samba$

afterwards, I reboot my machine, but windows won't boot, throwing error,  returning to devuan and output of 'fdisk',  HDD #1 now shows up as on '/dev/sdb' instead of /dev/sda neutral

erdos@htpc-devuan:/etc/grub.d$ sudo fdisk -l
[sudo] password for erdos: 
Disk /dev/sdb: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5000AAKS-6
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1549f232

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1  *         2048 204812287 204810240  97.7G  7 HPFS/NTFS/exFAT
/dev/sdb2       204812685 309670262 104857578    50G a5 FreeBSD
/dev/sdb3       309861721 953151487 643289767 306.7G  f W95 Ext'd (LBA)
/dev/sdb4       953152515 976768064  23615550  11.3G  7 HPFS/NTFS/exFAT
/dev/sdb5       309861784 953151487 643289704 306.7G  7 HPFS/NTFS/exFAT

Partition table entries are not in disk order.

Disk /dev/sda: 55.9 GiB, 60022480896 bytes, 117231408 sectors
Disk model: Corsair Force LS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x287905c2

Device     Boot     Start       End  Sectors  Size Id Type
/dev/sda1  *         2048  39063551 39061504 18.6G 83 Linux
/dev/sda2        39065598 117229567 78163970 37.3G  5 Extended
/dev/sda5        39065600 113283071 74217472 35.4G 83 Linux
/dev/sda6       113285120 117229567  3944448  1.9G 82 Linux swap / Solaris

Disk /dev/sdh: 12.73 TiB, 14000519643136 bytes, 27344764928 sectors
Disk model: easystore 264D  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: B0F4FD99-AACA-4B97-BBF2-A3E7661D0DF4

Device     Start         End     Sectors  Size Type
/dev/sdh1   2048 27344762879 27344760832 12.7T Microsoft basic data

when I tried to mount windows system partition to /dev/sdb1,

erdos@htpc-devuan:/etc/grub.d$ sudo mount -t ntfs /dev/sdb1 /mnt
Failed to read last sector (204812620): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
   or it was not setup correctly (e.g. by not using mdadm --build ...),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sdb1': Invalid argument
The device '/dev/sdb1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

I can mount the backup image without issue

erdos@htpc-devuan:/etc/grub.d$ sudo mount '/media/erdos/easystore/Backup/HP.qcow2' /mnt
[sudo] password for erdos: 
erdos@htpc-devuan:/etc/grub.d$ ls /mnt
'$Recycle.Bin'   BOOTSECT.BAK  'Documents and Settings'   img2-001.raw       'Linksys Driver'   PerfLogs        'Program Files (x86)'         TightVNC      Windows
 Boot            Brother        hiberfil.sys              inetpub             MSOCache          ProgramData      Recovery                     Users
 bootmgr         Config.Msi     hp                        INSTALLHELPER.LOG   pagefile.sys     'Program Files'  'System Volume Information'   WebMapCache
erdos@htpc-devuan:/etc/grub.d$ ls -l /mnt
total 3351397
drwxrwxrwx 1 root root       4096 Jul 22  2015 '$Recycle.Bin'
drwxrwxrwx 1 root root       4096 May 24  2013  Boot
-rwxrwxrwx 1 root root     383786 Nov 20  2010  bootmgr
-rwxrwxrwx 1 root root       8192 Oct 19  2012  BOOTSECT.BAK
drwxrwxrwx 1 root root          0 Jan 31  2015  Brother
drwxrwxrwx 1 root root          0 May 18  2019  Config.Msi
lrwxrwxrwx 2 root root         10 Jul 14  2009 'Documents and Settings' -> /mnt/Users
-rwxrwxrwx 1 root root 3220664320 May 22  2019  hiberfil.sys
drwxrwxrwx 1 root root       4096 Jan  8  2009  hp
-rwxrwxrwx 1 root root     921624 Mar 28  2016  img2-001.raw
drwxrwxrwx 1 root root          0 Jul 24  2015  inetpub
-rwxrwxrwx 2 root root        112 Jun 23  2012  INSTALLHELPER.LOG
drwxrwxrwx 1 root root          0 Jul 10  2009 'Linksys Driver'
drwxrwxrwx 1 root root          0 Jul 17  2009  MSOCache
-rwxrwxrwx 1 root root  209715200 May 21  2019  pagefile.sys
drwxrwxrwx 1 root root          0 Jul 13  2009  PerfLogs
drwxrwxrwx 1 root root      12288 Nov 23  2018  ProgramData
drwxrwxrwx 1 root root       8192 Oct 10  2016 'Program Files'
drwxrwxrwx 1 root root      20480 Oct 10  2016 'Program Files (x86)'
drwxrwxrwx 1 root root          0 Oct 19  2012  Recovery
drwxrwxrwx 1 root root      28672 Aug 23  2016 'System Volume Information'
drwxrwxrwx 1 root root          0 Sep 18  2012  TightVNC
drwxrwxrwx 1 root root       4096 Jul 30  2015  Users
drwxrwxrwx 1 root root       4096 May 10  2016  WebMapCache
drwxrwxrwx 1 root root      40960 Jan 22  2019  Windows
erdos@htpc-devuan:/etc/grub.d$

please advise

#6 Re: Desktop and Multimedia » [SOLVED] nvidia Error during boot » 2023-04-05 14:57:39

just to followup on this thread:

by chance, I had this fixed, it had to do with bios and Windows settings - I have a dual-boot with both a SSD (with Devuan) and a HDD (with windows 7) connected via SATA connectors on Mbo. 

1  From BIOS, I changed SATA controller mode from AHCI to IDE, then boot into windows7 to edit registry to enable 'AHCI' mode, reboot into win7 to allow controller driver updates. 
2.  Reboot, return to BIOS to re-enable SATA 'AHCI' mode
3.  Boot into Chimera and the 'ACPI' warning at boot is gone, and I can now playback 720P/1080P streaming video in fullscreen mode without hiccups.

#7 Re: Desktop and Multimedia » how to easily copy a windows partition? » 2023-04-04 03:10:02

steve_v wrote:

If you want accurate advice, please be accurate WRT to partitions, disks, filesystems, and most importantly, your end-goal. As Camtaf said, this would have been easier if we had known you wanted to restore your files rather than the entire disk.

thank you for the reply! smile

It turned out that my windows partition failed to boot because incorrect SATA settings in BIOS.  I changed bios setting for Sata controller mode from 'RAID' to 'AHCI' during adding a SSD to use devuan.  that rendered windows partition unbootable.  Now after reinstall windows, I had it fixed by changing windows registry in 'IDE' mode to support 'AHCI' mode for dual boot with Devuan. 

Fortunately I made a disk copy of my previous windows partition with everything on it. I can launch 'qcow2' image in VM to recover those installed apps.

#8 Re: Desktop and Multimedia » how to easily copy a windows partition? » 2023-04-02 21:13:27

zapper wrote:

The best way to copy partitions that I know of, is to load a linux live distro and plug in a huge fast SSD Flash Drive or Portable SSD Drive  to a usb 3.0, if you want this to not take forever,and then use dd to copy it.

dd if=/dev/sdX of=/media/sdY/your.qcow2 bs=10M status=progress

thank you!  I used above command to backup my windows partition C on external drive.  Works perfect!

I reinstalled windows 7 onto the partition #1 in hard disk #1 (/dev/sda1), now how do i restore the qcow2 image on my external drive to this partition?

erdos@htpc-devuan:~/Downloads/m64py-0.2.5$ sudo fdisk -l
[sudo] password for erdos: 
Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5000AAKS-6
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1549f232[/c]

[c]Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048 204812287 204810240  97.7G  7 HPFS/NTFS/exFAT
/dev/sda2       204812685 309670262 104857578    50G a5 FreeBSD
/dev/sda3       309861721 953151487 643289767 306.7G  f W95 Ext'd (LBA)
/dev/sda4       953152515 976768064  23615550  11.3G  7 HPFS/NTFS/exFAT
/dev/sda5       309861784 953151487 643289704 306.7G  7 HPFS/NTFS/exFAT[/c]

[c]Partition table entries are not in disk order.[/c]

[c]Disk /dev/sdb: 55.9 GiB, 60022480896 bytes, 117231408 sectors
Disk model: Corsair Force LS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x287905c2[/c]

[c]Device     Boot     Start       End  Sectors  Size Id Type
/dev/sdb1  *         2048  39063551 39061504 18.6G 83 Linux
/dev/sdb2        39065598 117229567 78163970 37.3G  5 Extended
/dev/sdb5        39065600 113283071 74217472 35.4G 83 Linux
/dev/sdb6       113285120 117229567  3944448  1.9G 82 Linux swap / Solaris 

#9 Desktop and Multimedia » how to easily copy a windows partition? » 2023-04-01 17:50:08

erdos
Replies: 22

I have a Hp desktop equipped with 2 HDD, one for windows7, the other for Chimera.

My windows 7 boot partition has run into problem and can't boot.  I would like to reinstall win7 but want to backup the windows boot partition to an external USB hard drive first.  how do I copy the entirely of windows partition to external USB drive from Chimera?

thanks

#10 Re: Desktop and Multimedia » [SOLVED] nvidia Error during boot » 2023-02-05 06:05:01

yeah, it seems to show Nvidia is being used.  I prefer using nvidia driver since I use this pc for streaming movies online with firefox browser. 
I noticed that the performance has been degrading since i couldn't playback 720p movie in full screen without drag.

erdos@htpc-devuan:~/Downloads/m64py-0.2.5$ lspci -vnn | grep VGA -A 12
06:00.0 VGA compatible controller [0300]: NVIDIA Corporation G98 [GeForce 9300 GE] [10de:06e0] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Pegatron G98 [GeForce 9300 GE] [1b0a:9004]
	Flags: bus master, fast devsel, latency 0, IRQ 27
	Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	Memory at fa000000 (64-bit, non-prefetchable) [size=32M]
	I/O ports at ec00 [size=128]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: nvidia
	Kernel modules: nvidia

erdos@htpc-devuan:~/Downloads/m64py-0.2.5$ lsmod | grep nvi
nvidia              10604544  39
drm                   618496  3 nvidia

#11 Desktop and Multimedia » [SOLVED] nvidia Error during boot » 2023-02-04 16:45:35

erdos
Replies: 5

hi guys,

I've got 4.0 chimera running on an old PC using  legacy nvidia 340 driver.

during boot, screen display nvidia error:

[    1.300473] udevd[118]: Error running install command 'modprobe -i nvidia-legacy-340xx ' for module nvidia: retcode 1
[    1.302943] ACPI Warning: SystemIO range 0x0000000000000828-0x000000000000082F conflicts with OpRegion 0x0000000000000800-0x000000000000084F (\PMRG) (20200925/utaddress-204)
[    1.302957] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[    1.302989] lpc_ich: Resource conflict(s) found affecting gpio_ich

any idea on what this might be and how to fix it?   I installed legacy 340 driver from Ceres repo a while ago since  is not officially supported in chimera.

#12 Re: Desktop and Multimedia » How do i switch between Nvida and Intel display drivers? » 2023-01-13 19:08:27

delgado wrote:

Did you try it?
Should work out of the box.

yes, I tried, however, certain apps such as Kodi failed to launch which I suspect it has to do with the display driver.

I hesitant to remove NVidia driver since it wasn't easy to setup 340.xx driver in Chimera (340.xx not officially supported) and I might switch it back to my main PC.

#13 Desktop and Multimedia » How do i switch between Nvida and Intel display drivers? » 2023-01-06 19:42:24

erdos
Replies: 4

hi guys,

I have a HP desktop with Nvidia card currently running Debian Chimera on a SSD, I also owns a Intel NUC with integrated Iris display, I would like to move the SSD with Chimera to NUC.

Here's my question: Is there a way to setup Intel driver on my NUC while retains the existing Nvidia card setup?  since I would like to switch back the SSD between the two computers if necessary

Desktop
HP Pavilion Elite d5100t ATX series Specs: HP d5100t  Nvida 9300GT card • Intel (R) Core (TM) 2 Quad processor Q9300 (2.5GHz)

NUC:
Intel    i3-8109U    NUC8i3BEH/K    4300*    806    Bean Canyon. CFL. 28W, 2C/4T, ILANx1 (1000), WLAN (ac), Iris 655, HDMI 2.0ax1, 32GB-DDR4-2400-SODIMMx2, USB31Cx1, USB31Ax4, M.2x1, 2.5"x1 (H), microSD, Stereo, Mic, BT 5

thanks!

#14 Hardware & System Configuration » 20-year-old Linux workaround is still slowing down AMD systems » 2022-09-27 19:16:08

erdos
Replies: 1

hi  I'm wondering what you guys' take on this if you're on AMD system using Devuan/Debian.

https://arstechnica.com/gadgets/2022/09/20-year-old-linux-workaround-is-still-slowing-down-amd-systems/

#15 Re: Hardware & System Configuration » Suspend functionality not working » 2022-05-24 15:12:27

I'd like to add my experience.

Since I've upgraded to chimera 4.0 from belwulf 3.0, i have noticed Suspend feature failed as well.  i have devuan installed on HP desktop with NVidia 9300GT card, i used to be able to put machine into suspend overnight and woke it up next time i use, but now the feature isn't working at all.  in the weekend, i tried 'hybrid sleep' option that presented on the power/logoff menu to put it in sleep, and it woke up yesterday ok.
Will continue to see how this goes

#16 Hardware & System Configuration » Network connection not persistant after rebooting » 2022-05-21 19:43:37

erdos
Replies: 0

hi,

My pc is connected through wifi, whenever I rebooted my machine, it's not automatically connected to wifi, I had to run the following to be able to connect.

root@htpc-devuan:~# /etc/init.d/networking restart

my network setting is as follows:
erdos@htpc-devuan:~/Documents$ pico /etc/network/interfaces

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

# my wifi device
allow-hotplug wlan0
iface wlan0 inet dhcp
        wpa-ssid ssidname
        wpa-psk password

any advice?

#17 Re: Hardware & System Configuration » Renew my ip address (dhclient not found) » 2022-05-21 19:36:51

thanks!

i was able to run dhclient after su - ,  is 'dhclient' supposed to run in root only?

#18 Hardware & System Configuration » Renew my ip address (dhclient not found) » 2022-05-21 16:39:09

erdos
Replies: 4

hi,

whenever i tried to run dhclient , i got error saying command not found.  however, 'dhclient' does exist in /sbin directory,  it looks that /sbin is not in my path.
erdos@htpc-devuan:~/Documents$ $PATH
bash: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games: No such file or directory

how do i add /sbin to my PATH?

#19 Re: Desktop and Multimedia » [SOLVED] libreoffice fails to launch in Devuan 4.0 » 2022-05-13 01:54:18

thank you!
I've removed Libreoffice files from my Chimera since it's broken.

Tried Appimage of Libreoffice and it works out great!

#20 Re: Desktop and Multimedia » [SOLVED] libreoffice fails to launch in Devuan 4.0 » 2022-05-07 12:26:03

i tried with command line prompt and received an error:

erdos@htpc-devuan:~/Documents$ /usr/bin/soffice --version
terminate called after throwing an instance of 'com::sun::star::uno::DeploymentException'
You have new mail in /var/mail/erdos
erdos@htpc-devuan:~/Documents$ lsb_release -a
No LSB modules are available.
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 4 (chimaera)
Release:	4
Codename:	chimaera
erdos@htpc-devuan:~/Documents$ uname -a
Linux htpc-devuan 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
erdos@htpc-devuan:~/Documents$ locate .desktop | fgrep office
bash: locate: command not found

i updated to chimera from 3.0, maybe libreoffice didn't get updated propperly during the process?  but checking 'synaptics' indicating libreoffice base/core are up-to-date

#21 Desktop and Multimedia » [SOLVED] libreoffice fails to launch in Devuan 4.0 » 2022-05-07 03:45:43

erdos
Replies: 5

hi,  i'm on devuan 4.0 with XFCE DE and have libreoffice installed.

when i choose 'libreoffice writer' or 'libreoffice calc' in the XFCE menu, nothing happens.

what gives?

#22 Installation » how to clone a partition with os installed? » 2021-12-24 04:23:55

erdos
Replies: 6

hey guys

I've an existing SSD with devuan 4 installed.  and i just purchased another SSD and would like to clone my existing devuan 4 os and /home partition.  is there an easy way to achieve this?

# 1 SSD
/root  partition has 20G, /home partition is 35G

erdos@htpc-devuan:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            2.0G     0  2.0G   0% /dev
tmpfs           394M  2.6M  391M   1% /run
/dev/sda1        19G  8.5G  8.8G  50% /
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.2G  258M  914M  23% /dev/shm
/dev/sda5        35G   19G   15G  57% /home
tmpfs           394M   16K  394M   1% /run/user/1000

new SSD is 256G,  and I plan to use 64G for root partition, and rest for /home partition.

#24 Re: Desktop and Multimedia » [SOLVED] Is Ceres stable for daily use? » 2021-10-18 02:48:35

ralph.ronnquist wrote:

You should be able to install that package from ceres by temporarily adding the ceres sources.list line

  1. Add the line to your /etc/apt/sources.list:

    deb http://deb.devuan.org/merged ceres main contrib non-free
  2. Install the package and its dependencies an your system:

    # apt-get update
    # apt-get install -t ceres ....

    Obviously you should then refrain from installing anything more, but afaict your nvidia-legacy-340xx package should be safe to install in this way.

  3. Restore sources.list by removing or commenting out that line, and then again run:

    # apt-get update

    Or, you may configure "pinning" for ceres so as to follow upgrades to only that package, without getting other things.

thank you!  that's it!  I've installed 'nvidia-legacy-340xx-driver' by following the instructions. 

I received some error regarding 'nvidia-persisenced', but that's probably expected

# apt-get install -t ceres nvidia-legacy-340xx-driver
...
DKMS: install completed.
Setting up nvidia-legacy-340xx-driver (340.108-11) ...
Processing triggers for libc-bin (2.31-13+deb11u2) ...
Processing triggers for initramfs-tools (0.140) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-9-amd64
Processing triggers for update-glx (1.2.1) ...
Processing triggers for glx-alternative-nvidia (1.2.1) ...
update-alternatives: using /usr/lib/nvidia to provide /usr/lib/glx (glx) in auto mode
Processing triggers for libc-bin (2.31-13+deb11u2) ...
Processing triggers for initramfs-tools (0.140) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-9-amd64
Errors were encountered while processing:
 nvidia-persistenced
E: Sub-process /usr/bin/dpkg returned an error code (1)

I restored sources.list and updated the repo accordingly afterwards.  Really appreciate your help!  Now i can sit back enjoy Chimaera, yahh!

#25 Re: Desktop and Multimedia » [SOLVED] Is Ceres stable for daily use? » 2021-10-18 01:37:21

thanks for the reply!

Chimaera backports doesn't include 'nvidia-legacy-340xx-driver' either, it seems that kernel 5.10 update that comes with chimaera doesn't support 340xx driver anymore.  I wish i knew this before the 4.0 upgrade. 

I still had the 340xx driver installed after 4.0 upgrade but couldn't install 5.10 kernel and headers.  in the process of getting 5.10 kernel installed, 340xx driver was deleted and no longer in the repo.

Board footer

Forum Software