Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
1 answers
2147 views
Editing grub menu with secure boot enabled Ubuntu/PartedMagic
I have laptop DELL latitude 5491 with preinstalled Windows 10 with secure boot enabled and EFI mode. After I purchased, I installed Ubuntu 20.04 next to Windows as a dualboot with still secure boot enabled/EFI. Partitions 2,3 and 5 are for Windows system, Partition 1 and 4 are for Ubuntu. On Partiti...
I have laptop DELL latitude 5491 with preinstalled Windows 10 with secure boot enabled and EFI mode. After I purchased, I installed Ubuntu 20.04 next to Windows as a dualboot with still secure boot enabled/EFI. Partitions 2,3 and 5 are for Windows system, Partition 1 and 4 are for Ubuntu. On Partition 6 is stored ISO of Clonezilla live CD for backuping. So far everything is working well. In the next step I stored unpacked ISO of Parted Magic live CD on Partition 7, edited the grub menu, but booting the Parted Magic from grub menu ends in error with invalid signature for BzImage... However, when I boot the Parted Magic directly from EFI (temporary boot menu or EFI setup), system normally started. Where there may be a problem? Its look like Partitions layout: Device Start End Sectors Size Type /dev/sda1 2048 1394687 1392640 680M EFI System /dev/sda2 1394688 1656831 262144 128M Microsoft reserved /dev/sda3 1656832 507570175 505913344 241,2G Microsoft basic data /dev/sda4 507570176 983883775 476313600 227,1G Linux filesystem /dev/sda5 983883776 985911295 2027520 990M Windows recovery environment /dev/sda6 985911296 987500543 1589248 776M Linux filesystem /dev/sda7 987500544 1000214527 12713984 6,1G Microsoft basic data Edited 40_custom file: #!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry "clonezilla" { set isofile="/clonezilla-live-20210127-groovy-amd64.iso" loopback loop (hd0,gpt6)$isofile linuxefi (loop)/live/vmlinuz boot=live components config findiso=$isofile ip=frommedia toram=filesystem.squashfs union=overlay username=user initrdefi (loop)/live/initrd.img } menuentry "partedmagic" { insmod chain set root=(hd0,gpt7) configfile /boot/grub/grub.cfg } grub.cfg file: set default="0" set timeout="20" set hidden_timeout_quiet=false set gfxmode=auto insmod efi_gop insmod efi_uga insmod gfxterm terminal_output gfxterm set color_normal=white/black set color_highlight=black/white loadfont /boot/grub/unicode.pf2 background_image /boot/grub/pmagic.png set default_settings="edd=on vga=normal mem=32G" set live_settings="boot=live eject=no" set linux="/pmagic/bzImage" set initrd_img="/pmagic/initrd.img /pmagic/fu.img /pmagic/m.img" set default=2 set message="Loading kernel and initramfs. Please wait..." menuentry "Parted Magic UEFI Boot Menu"{ set } menuentry ' '{ set } menuentry "1. Default settings (Runs from RAM 4GB+)"{ echo $message search --set -f $linux linux $linux $default_settings initrd $initrd_img } menuentry "1a. Default settings with 4K Monitor"{ echo $message search --set -f $linux linux $linux $default_settings m4k=yes initrd $initrd_img } menuentry "1b. Default settings + language menu"{ echo $message search --set -f $linux linux $linux $default_settings lang=yes initrd $initrd_img } menuentry ' '{ true } menuentry "2. Live with default settings (2GB+ RAM)"{ echo $message search --set -f $linux linux $linux $default_settings $live_settings initrd $initrd_img } menuentry "2a. Live with default settings + language menu"{ echo $message search --set -f $linux linux $linux $default_settings $live_settings lang=yes initrd $initrd_img } menuentry ' '{ true } menuentry "3. Black/Blank Screen workaround"{ echo $message search --set -f $linux linux $linux $default_settings nomodeset initrd $initrd_img } menuentry "4. No official NVIDIA driver - Use Nouveau NVIDIA driver instead."{ echo $message search --set -f $linux linux $linux $default_settings modprobe="nouveau" initrd $initrd_img } menuentry "5. *** Hyper-V ***"{ echo $message search --set -f $linux linux $linux $default_settings fbdev=yes initrd $initrd_img } menuentry "6. Memtest86+" { chainloader /boot/memtest/BOOTX64.EFI } menuentry "7. EFI Shell" { insmod fat insmod chain terminal_output console chainloader /boot/edk2/Shell.efi } menuentry ' '{ true } submenu "Extras Menu"{ set default_settings="edd=on vga=normal mem=32G" set live_settings="boot=live eject=no" set linux="/pmagic/bzImage" set initrd_img="/pmagic/initrd.img /pmagic/fu.img /pmagic/m.img" set message="Loading kernel and initramfs. Please wait..." menuentry "1. Super Grub2 Disk EFI" { chainloader /boot/supergrub2disk/super_grub2_disk_standalone_x86_64_efi_2.04s1.EFI } menuentry "2. Clonezilla"{ echo $message search --set -f $linux linux $linux $default_settings clonezilla=yes initrd $initrd_img } menuentry "3. Nwipe"{ echo $message search --set -f $linux linux $linux $default_settings nwipe=yes initrd $initrd_img } menuentry "4. Load iSCSI Kernel Modules"{ echo $message search --set -f $linux linux $linux $default_settings iscsi=yes initrd $initrd_img } menuentry "5. Load config for xf86-video-qxl module"{ echo $message search --set -f $linux linux $linux $default_settings qxl=yes initrd $initrd_img } } } submenu "Failsafe Menu"{ set default_settings="edd=on vga=normal mem=32G" set live_settings="boot=live eject=no" set linux="/pmagic/bzImage" set initrd_img="/pmagic/initrd.img /pmagic/fu.img /pmagic/m.img" set message="Loading kernel and initramfs. Please wait..." menuentry "1. No ACPI (Advanced Configuration and Power Interface)"{ echo $message search --set -f $linux linux $linux $default_settings acpi=off initrd $initrd_img } menuentry "2. Do not eject CD"{ echo $message search --set -f $linux linux $linux $default_settings eject=no initrd $initrd_img } menuentry "3. Emulator compatibility"{ echo $message search --set -f $linux linux $linux $default_settings $live_settings noreplace-paravirt initrd $initrd_img } menuentry "4. Console (boots to the shell)"{ echo $message search --set -f $linux linux $linux $default_settings consoleboot=yes initrd $initrd_img } menuentry "5. Initrd.img (boot to initrd.img shell)"{ echo $message search --set -f $linux linux $linux $default_settings initrd_shell=yes initrd $initrd_img } menuentry "6. Radeon no modeset"{ echo $message search --set -f $linux linux $linux $default_settings blacklist=radeon initrd $initrd_img } menuentry "7. No / force CPU Frequency Scaling"{ echo $message search --set -f $linux linux $linux $default_settings cpufreq=no initrd $initrd_img } menuentry "8. Force vesa workaround"{ echo $message search --set -f $linux linux $linux $default_settings xconfig=forcevesa initrd $initrd_img } menuentry "9. Force refresh rate"{ echo $message search --set -f $linux linux $linux $default_settings xconfig=forcerefresh nomodeset initrd $initrd_img } menuentry "10. Disable accelerated 3D graphics (DRI)"{ echo $message search --set -f $linux linux $linux $default_settings nodri=yes initrd $initrd_img } menuentry "11. Missing Mouse Pointer"{ echo $message search --set -f $linux linux $linux $default_settings xmouse=yes initrd $initrd_img } menuentry "12. Macbook Pro 8,x Dual Graphics Workaround"{ echo $message search --set -f $linux linux $linux $default_settings outb 0x728 1 # Switch select outb 0x710 2 # Switch display outb 0x740 2 # Switch DDC outb 0x750 0 # Power down discrete graphics initrd $initrd_img } menuentry "13. Libata noncq - Drive will not unlock"{ echo $message search --set -f $linux linux $linux $default_settings libata.force=1.0:noncq initrd $initrd_img } menuentry "14. No IPV6 - Stop Network Manager from disconnecting."{ echo $message search --set -f $linux linux $linux $default_settings blacklist=ipv6 initrd $initrd_img } } menuentry ' '{ true } submenu "List of Cheat Codes"{ menuentry "directory= Directory containing the pmagic folder"{set} menuentry "iso_filename= [path to/]iso filename"{set} menuentry "root= SQFS boot device by partition id"{set} menuentry "label= SQFS boot device by label"{set} menuentry "uuid= SQFS boot device by [partial] uuid"{set} menuentry "blacklist= Do not load kernel modules, e.g. blacklist=kmod1:kmod2:kmod3"{set} menuentry "ahci=no Do not load the ahci kernel module"{set} menuentry "modprobe= Load kernel modules, e.g. modprobe=kmod4:kmod5:kmod6"{set} menuentry "consoleboot=yes Do not start X-windows"{set} menuentry "eject=no Do not eject CD"{set} menuentry "gpm=no Disable the console mouse server"{set} menuentry "pmodules=no Do not install pmagic/pmodules"{set} menuentry "slapt=no Do not install /home/partedmagic/slapt-get/ packages"{set} menuentry "scripts=no Do not execute pmagic/pmodules/scripts"{set} menuentry "sound=no Do not let ALSA set volume levels (mute)"{set} menuentry "numlock=on Set numlock to on at boot"{set} menuentry "conky=no Do not auto-start conky"{set} menuentry "zfs=no Do not start zfs services"{set} menuentry "hostname= Set hostname to XXXXXX[.YYYYYY.ZZZ]"{set} menuentry "timeconfig=|no Set timezone | do not start timeconfig at boot"{set} menuentry "clockfmt= clockfmt=%R (24-hours), clockfmt=%l:%M%P (am/pm)"{set} menuentry "mdadm=no Do not assemble raid filesystems"{set} menuentry "lvm=no Do not start the device mapper"{set} menuentry "sshd=no Do not start SSH daemon"{set} menuentry "bluetooth=no Do not start the bluetooth daemon"{set} menuentry "consolekit=no Do not start the consolekit daemon"{set} menuentry "dmeventd=no Do not start the device mapper event daemon"{set} menuentry "dbus=no Do not start the Dbus daemon"{set} menuentry "smart=no Do not start the smartmontools daemon"{set} menuentry "fstabdaemon=no Do not start the Parted Magic /etc/fstab daemon"{set} menuentry "nfs=no Do not start the NFS daemon"{set} menuentry "acpid=no Do not start the acpi daemon"{set} menuentry "cups=no Do not start the CUPS server"{set} menuentry "netw=no Do not start the network at boot"{set} menuentry "samba=yes Start the samba daemons"{set} menuentry "rdate=yes Sync time with rdate at boot"{set} menuentry "monday=1 Monday as first day of the week"{set} menuentry "ntpd=yes Start the ntpd daemon"{set} menuentry "cpufreq=no/yes/ No (laptop), force (desktop) CPU freq scaling governor"{set} menuentry "powermanager=no/yes No (laptop), force (desktop) power manager"{set} menuentry "iscsi=yes Start iscsi initiator"{set} menuentry "xconfig=XXXXXX|no Use /etc/X11/xorg.conf.XXXXXX | Undo"{set} menuentry "nodri=yes No DRI"{set} menuentry "qxl=yes X to start with QXL device"{set} menuentry "xmouse=yes Try this if your X does not show a mouse cursor"{set} menuentry "clonezilla=yes Boot into clonezilla"{set} menuentry "nwipe=yes Boot into nwipe"{set} menuentry "cmd= Boot into , e.g. cmd="nwipe --method dod""{set} menuentry "device_list=yes Show devices/partitions being scanned for the SQFS"{set} menuentry "removableonly=yes Only scan devices/partitions with "removable" attribute"{set} menuentry "testing=yes Wait at boot completion, use to scroll"{set} menuentry " Press to continue"{set} menuentry ""{set} menuentry "Keyboard maps:"{set} menuentry "azerty be-latin1 fr-latin1 fr-latin9 fr-pc fr wangbe wangbe2 ANSI-dvorak"{set} menuentry "dvorak-l dvorak-r dvorak tr_f-latin5 trf bg-cp1251 bg-cp855 bg_bds-cp1251"{set} menuentry "bg_bds-utf8 bg_pho-cp1251 bg_pho-utf8 br-abnt br-abnt2 br-latin1-abnt2"{set} menuentry "br-latin1-us by cf cz-cp1250 cz-lat2-prog cz-lat2 cz defkeymap"{set} menuentry "defkeymap_V1.0 dk-latin1 dk emacs emacs2 es-cp850 es et-nodeadkeys et"{set} menuentry "fi-latin1 fi-latin9 fi gr-pc gr hu101 hypermap.m4 il-heb il-phonetic il"{set} menuentry "is-latin1-us is-latin1 it-ibm it it2 jp106 la-latin1 lt.baltic lt.l4 lt"{set} menuentry "mk-cp1251 mk-utf mk mk0 nl nl2 no-latin1.doc no-latin1 no pc110 pl pl2"{set} menuentry "pt-latin1 pt-latin9 ro_win ru-cp1251 ru-ms ru-yawerty ru ru1 ru2 ru3 ru4"{set} menuentry "ru_win se-fi-ir209 se-fi-lat6 se-ir209 se-lat6 sk-prog-qwerty sk-qwerty"{set} menuentry "speakup-jfw speakup-jfw.readme speakupmap sr-cy sv-latin1 tr_q-latin5 tralt"{set} menuentry "trq ua-utf-ws ua-utf ua-ws ua uk us-acentos us croat cz-us-qwertz"{set} menuentry "de-latin1-nodeadkeys de-latin1 de de_CH-latin1 fr_CH-latin1 fr_CH hu"{set} menuentry "sg-latin1-lk450 sg-latin1 sg sk-prog-qwertz sk-qwertz slovene"{set} menuentry "Example:"{set} menuentry "At the boot menu press and then change 'keymap=us' to 'keymap=fr-latin1'"{set} menuentry ""{set} menuentry "VGA modes:"{set} menuentry "Normal VGA console: vga=normal"{set} menuentry "VESA framebuffer console @ 1024x768x64k: vga=791"{set} menuentry "VESA framebuffer console @ 1024x768x32k: vga=790"{set} menuentry "VESA framebuffer console @ 1024x768x256: vga=773"{set} menuentry "VESA framebuffer console @ 800x600x64k: vga=788"{set} menuentry "VESA framebuffer console @ 800x600x32k: vga=787"{set} menuentry "VESA framebuffer console @ 800x600x256: vga=771"{set} menuentry "VESA framebuffer console @ 640x480x64k: vga=785"{set} menuentry "VESA framebuffer console @ 640x480x32k: vga=784"{set} menuentry "VESA framebuffer console @ 640x480x256: vga=769"{set} } However path for "bootloader" of Partition 7 in EFI setup is: \EFI\boot\bootx64.efi When I used this path for editing 40_custom file instead of use grub.cfg file, it ends with error. Thank you for your answers. P. **EDIT:** **Option 1:** I used follow edit of custom_40 file menuentry "partedmagic" { insmod chain set root=(hd0,gpt7) configfile /boot/EFI/bootx64.efi } When I tried to edit this file follow as: menuentry "partedmagic" { insmod chain set root=(hd0,gpt7) chainloader /boot/EFI/bootx64.efi } I received a error message: *Bootloader has not verified loaded image... System is compromised. halting.* **Option 2:** Process of resign Parted Magic's bzImage was completed success, but when i try boot this, its still with error. *...has invalid signature, you need to load kernel first.*
Pablo (11 rep)
Jun 23, 2022, 11:43 AM • Last activity: Jun 5, 2025, 08:02 AM
2 votes
3 answers
2083 views
Use Parted Magic with YUMI
I've tried putting parted magic versions on an flash drive using YUMI but every time I get an missing file error stating: This application has raised an unexpected error and must abort. [45] File or directory does not exist. os.debian.52 The flash drive is working and formatted with FAT32 as verifie...
I've tried putting parted magic versions on an flash drive using YUMI but every time I get an missing file error stating: This application has raised an unexpected error and must abort. File or directory does not exist. os.debian.52 The flash drive is working and formatted with FAT32 as verified through gparted. YUMI also works successfully when I put Kali linux on it. As an alternative I tried multibootusb, which successfully puts parted magic on the USB drive but then it apparently doesn't do it correctly because after booting parted magic cannot find the SQFS file and is unable to load the GUI. According to this thread it may be a common problem with creating USB utilities. If there's a more appropriate forum for this just let me know. My OS is Ubuntu 15.04.
mTesseracted (121 rep)
Jan 28, 2016, 04:29 PM • Last activity: May 17, 2025, 08:02 AM
6 votes
3 answers
1414 views
Changing HFSPlus UUID from PartedMagic
I needed to make a clone of my hard drive recently (bad blocks FTW). I was using Clonezilla at the time. However, Clonezilla refused to copy the HFS+ partition, so I did it manually. The problem is that the UUIDs are out of sync. What is the command to set a specific UUID for HFS+?
I needed to make a clone of my hard drive recently (bad blocks FTW). I was using Clonezilla at the time. However, Clonezilla refused to copy the HFS+ partition, so I did it manually. The problem is that the UUIDs are out of sync. What is the command to set a specific UUID for HFS+?
Kaz Wolfe (495 rep)
Sep 7, 2014, 05:45 AM • Last activity: Mar 16, 2025, 06:40 AM
2 votes
0 answers
1611 views
ddrescue recovering 0B but drive appears in device manager. Is it failing to connect?
I have a failing 2TB Seagate Barracuda drive which came from a GoFlex Home NAS. First sign of trouble came when the drive showed all its root folders and sub-directories as empty, although windows (via a mounted share) still displayed the expected disk usage, about 1.2TB of the full available 1.8TB)...
I have a failing 2TB Seagate Barracuda drive which came from a GoFlex Home NAS. First sign of trouble came when the drive showed all its root folders and sub-directories as empty, although windows (via a mounted share) still displayed the expected disk usage, about 1.2TB of the full available 1.8TB) After researching on the net I came across a guide that recommended first making a copy of the disk and trying to recover data from that. This article recommended ddrescue so I purchased PartedMagic and a second 2TB Seagate Barracuda drive to clone to. Both the new drive and the failing drive are connected directly by SATA cables to a PC running PartedMagic from a USB stick. I've turned SMART off in the BIOS and have a fan directly over the failing drive as I expect the problem is due to overheating (the old drive is now out of its GoFlex NAS enclosure). When the failing drive is on, booting is a bit slow (even though I've set USB as first boot device in the BIOS) but eventually PartedMagic loads ok. In the file manager (Places) I can see both the new drive and the failing GoFlex drive. To confirm the name of the block devices attached to the system I run this command: lsblk -o name,label,size,fstype,model which shows the devices as expected (the failing drive also appears in the BIOS) PartedMagic screenshot, both 2TB drives appear So then I tried ddrescue... initially using: ddrescue -d -f /dev/sda /dev/sdb /media/sdd1/rescue.logfile (where sdd1 is another usb stick attached to the system to save the logfile to) But from the very start i've got *0 B copied, current rate remains at 0B/s and run time and successful read (time) remain identical. In other words, **as far as I can tell ddrescue never actually reads a single byte from the failing disk***: I let this run for about two days until the Finished prompt appeared in the terminal. 0 B copied. So I then tried partitioning the new drive (with a single ntfs partition, to match the failing drive) and repeated the process but this time only cloning the partition: ddrescue -d -n -f /dev/sda1 /dev/sdb1 /media/sdd1/rescue2.logfile Same result: ddrescue screenshot, 0B copied This time I used Ctrl-C to stop the process after an hour rather than unnecessarily further damage the drive. I also tried copying to a disk image ddrescue -d -n /dev/sda1 /dev/sdb1/drive.img /media/sdd1/rescue3.logfile Again, after ending at the Finished prompt the drive.img file was 0B. Reading through the "helpful last comment on the question I mentioned previously" I then tried different ddrescue options, reading backwards, with and without direct access, using --force, powering the drive on and off a number of times (cringe!) each time hoping that it would suddenly start being read by ddrescue... no luck. It still appears in 'Places' with its partition name 'GoFlex Home' so although I know you're not meant to, someone suggested mounting the drive . They'd had a similar 0 B problem and found that mounting the drive in read only mode solved the issue for them. I tried but just got an error telling me there was an i/o error and that the drive probably has a hardware fault and can't be mounted. (sorry didn't get a copy of the exact message) So... **maybe I'm being overly optimistic but I can't see how a drive that is so badly damaged can appear in File Manager with its partition name intact. Why can't ddrescue rescue a single byte scanning either forwards or backwards? I can't quite believe it, I must be doing something wrong but I don't know what else to try and I don't want to further damage the disk unnecessarily.** Does anyone have any advice? Other (non-commercial) software I should try? Any other techniques I could use to diagnose the problem? Or should I bite the bullet and consider swapping the logic board from my new Seagate Barracuda to the old one as a last ditch attempt? -------------------------------------------------------------------- UPDATES: @Stephen Kitt I ran dmesg (using grep to show just the problem hard-drive) and got the following output: enter image description here Does it mean anything? I'm surprised to see "Attached SCSI disk" when I'm connecting to a SATA port on the motherboard. Thanks for your help
baroquedub (121 rep)
Jul 30, 2015, 10:13 PM • Last activity: Mar 18, 2019, 01:55 AM
1 votes
1 answers
3870 views
Load entire live system into RAM?
If I boot Linux without installation (i.e. from live DVD), how can I load the entire disc into RAM in order to be able to re-use the drive? It is possible with PartedMagic already. **How can I do it with Linux Mint?**
If I boot Linux without installation (i.e. from live DVD), how can I load the entire disc into RAM in order to be able to re-use the drive? It is possible with PartedMagic already. **How can I do it with Linux Mint?**
neverMind9 (1720 rep)
Oct 19, 2018, 06:56 PM • Last activity: Nov 6, 2018, 12:25 PM
2 votes
1 answers
755 views
A window disappeared after I pressed a key in Openbox, how do I bring it back?
I had Firefox running, then (possibly) as a result of a key combination I don't recall, it quickly vanished from screen and Task Bar/Window List. From my [other question](https://unix.stackexchange.com/questions/96797/what-does-the-interruptible-sleep-state-indicate) it was established the issue is...
I had Firefox running, then (possibly) as a result of a key combination I don't recall, it quickly vanished from screen and Task Bar/Window List. From my [other question](https://unix.stackexchange.com/questions/96797/what-does-the-interruptible-sleep-state-indicate) it was established the issue is likely that I made the window disappear, though it isn't on either of the two user-displayable desktops. I am running the Openbox Window Manager on Parted Magic. I don't have tools such as wmctrl or xdotool installed/available, which I understand have the ability to bring the window back to the current desktop, unhide, unshade, or maximize it. Does anyone know if Openbox exposes this fuctionality natively, or any other way to perform the same with Openbox built-in tools / ones that can be added/used with this distro?
user66001 (2475 rep)
Oct 20, 2013, 08:27 PM • Last activity: Nov 19, 2016, 08:22 PM
0 votes
1 answers
1101 views
Custom Linux Timezone
I believe rdesktop 1.7.1 is sending Linux timezones (For example "EST") to the Windows client I regularly connect to _(I am yet to find a way of seeing what Windows receives in the way of RDP settings in general, or just the timezone setting; Nor do I know how to monitor what rdesktop is sending to...
I believe rdesktop 1.7.1 is sending Linux timezones (For example "EST") to the Windows client I regularly connect to _(I am yet to find a way of seeing what Windows receives in the way of RDP settings in general, or just the timezone setting; Nor do I know how to monitor what rdesktop is sending to the Windows client. If anyone can increase my knowledge in either of these areas, please provide info/point me at something to read)_. This seems to be causing an issue with Windows, as it doesn't match any of the timezones in the registry @ HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones (See below error _"Your current time zone is not recognized. Please select a valid time zone using the link below"_). ![](https://i.sstatic.net/0ORhd.jpg) I don't have zic on my live distro (Parted Magic) and so was wondering if there is any other way of changing the time zone to display "Eastern Daylight Time" either system wide, or just what rdesktop sends?
user66001 (2475 rep)
Jun 7, 2013, 07:39 PM • Last activity: Feb 15, 2016, 01:49 PM
1 votes
1 answers
1599 views
How to shutdown Linux parted magic from terminal?
Once in a while I have to use parted magic to restore superblocks. I tried to execute in the terminal: shutdown -h now telinit 0 Both did not work, what else might be possible to shutdown Linux via command line?
Once in a while I have to use parted magic to restore superblocks. I tried to execute in the terminal: shutdown -h now telinit 0 Both did not work, what else might be possible to shutdown Linux via command line?
Abdul Al Hazred (27610 rep)
Apr 4, 2015, 07:13 PM • Last activity: Apr 4, 2015, 07:28 PM
0 votes
1 answers
233 views
Regain access to seemingly frozen Live CD session
A few weeks back I started a machine up with a copy of Parted Magic, and loaded up some webpages in Firefox on it. Just last week, upon getting back to looking at the machine, I noticed that `lxpanel` had grown to a larger than normal memory size, and UI response was sluggish. At that time I set &#1...
A few weeks back I started a machine up with a copy of Parted Magic, and loaded up some webpages in Firefox on it. Just last week, upon getting back to looking at the machine, I noticed that lxpanel had grown to a larger than normal memory size, and UI response was sluggish. At that time I set ¿stupidly? xset s on & xset s 1. Today I go to use the machine and find I cannot use the keyboard or mouse to make the display turn on for 1 second (enough time for me to launch terminal and xset s off (My basic attempt to create secure screen saver like functionality)). I am aware I can kill X, or launch oom_kill, but both of these options will/could loose my unsaved form data that I would prefer not to recreate, even if more time is involved with regaining access to the current session. Does anyone have any other solutions?
user66001 (2475 rep)
Apr 21, 2014, 12:38 AM • Last activity: Apr 21, 2014, 01:05 AM
2 votes
0 answers
1071 views
SciTE Auto Save Temporary File
I was running an application that seemingly froze the GUI of my Linux distro. After a Ctrl Alt Backspace I got back to a terminal and reloaded the GUI. However, even with the below User Options settings, when I reloaded SciTe, I didn't get my session restored, but more importantly the unsaved data s...
I was running an application that seemingly froze the GUI of my Linux distro. After a CtrlAlt Backspace I got back to a terminal and reloaded the GUI. However, even with the below User Options settings, when I reloaded SciTe, I didn't get my session restored, but more importantly the unsaved data since last save (On account of file being stored on removable storage that was temporarily unplugged) seems to be gone. Is there no temporary file that SciTE maintains in my home directory of unsaved changes?? save.on.timer=30 save.on.deactivate=1 load.on.activate=1 are.you.sure.on.reload=1 reload.preserves.undo=1 top.filters=$(all.files)All Source|$(source.files) max.file.size=5000000 temp.files.sync.load=1 save.check.modified.time=1 save.session=1 save.recent=1 save.position=1 save.find=1 session.folds=1 session.bookmarks=1 highlight.current.word=1 view.eol=1 toolbar.usestockicons=1 find.close.on.find=0 find.in.files.close.on.find=0
user66001 (2475 rep)
Sep 2, 2013, 04:23 AM • Last activity: Oct 20, 2013, 10:19 PM
1 votes
1 answers
124 views
Portable software for the Posix world
Is there any "portable" software for Linux (i.e., Ones that can just be un-tar'd and used, instead of in `rpm`, or similar format. to be used in conjunction with a package manager)? Also, are there any caveats to this that don't exist for Windows portable programs? P.S Not sure what the community th...
Is there any "portable" software for Linux (i.e., Ones that can just be un-tar'd and used, instead of in rpm, or similar format. to be used in conjunction with a package manager)? Also, are there any caveats to this that don't exist for Windows portable programs?


P.S Not sure what the community thinks about adding the tags like [tag:portable] or [tag:no-install] to this site is. I realise that Portable is likely to be considered more of a Windows feature, but would think that software that doesn't come in a rpm format, or via a repository, may be loosely considered as such in the Posix world.
user66001 (2475 rep)
Oct 4, 2013, 06:56 AM • Last activity: Oct 20, 2013, 10:18 PM
1 votes
2 answers
7167 views
No space left on device / No Inodes free OR used / Double mounting
For about a day now I can only create/`cp`/`mv` (through terminal or various GUI programs) files on my FAT16 formatted USB stick, of about a few bytes. Doing so with larger files reports `cannot create regular file 'XXX': No space left on device` I have a NTFS drive, and a USB stick with 2 FAT16 for...
For about a day now I can only create/cp/mv (through terminal or various GUI programs) files on my FAT16 formatted USB stick, of about a few bytes. Doing so with larger files reports cannot create regular file 'XXX': No space left on device I have a NTFS drive, and a USB stick with 2 FAT16 formatted partitions on it, attached to the computer. - /dev/sda1 is the NTFS - /dev/sdb1 is one of the FAT 16 formatted partitions - /dev/sdc1 is the other the FAT 16 formatted partitions (Prior and after unplugging the USB stick while PC was pm-suspend'd, to clear space on the full drive - Seems this may have caused part/all of this issue in hindsight) - /dev/sdb1 is the other the FAT 16 formatted partitions (After unplugging the USB stick while PC was pm-suspend'd df reported: Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdc1 1999360 1999360 0 100% /media/sdc1 /dev/sdd1 1999360 822400 1176960 42% /media/sdd1 df -i reported: Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sdc1 0 0 0 - /media/sdc1 /dev/sdd1 0 0 0 - /media/sdd1 _Sub question: Any idea why there are no inodes reported??_ df -i /dev/sda1 reported: Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sda1 5539908 171718 5368190 4% /media/sda1 umount'ng /dev/sdc1 didn't change the counts. I have verified through Windows that space available more-or-less marries with the 42% listed for the latest mounted device (/dev/sdd1). Any ideas on what is going on? **Edit 1:** The output of du -k --max-depth=1 /media/sdc1 is: 1856 /media/sdc1/dir1 32 /media/sdc1/dir2 1440 /media/sdc1/dir3 18144 /media/sdc1/dir4 8512 /media/sdc1/dir5 54304 /media/sdc1/dir6 3200 /media/sdc1/dir7 27200 /media/sdc1/dir8 41088 /media/sdc1/dir9 11520 /media/sdc1/dir10 128 /media/sdc1/dir11 128 /media/sdc1/dir12 1216 /media/sdc1/dir13 2464 /media/sdc1/dir14 12032 /media/sdc1/dir15 5824 /media/sdc1/dir16 29600 /media/sdc1/dir17 20928 /media/sdc1/dir18 5856 /media/sdc1/dir19 4352 /media/sdc1/dir20 659200 /media/sdc1/dir21 121600 /media/sdc1/dir22 22688 /media/sdc1/dir23 128 /media/sdc1/dir24 2144 /media/sdc1/dir25 6912 /media/sdc1/dir26 19968 /media/sdc1/dir27 9632 /media/sdc1/dir28 960 /media/sdc1/dir29 1088 /media/sdc1/dir30 2624 /media/sdc1/dir31 480 /media/sdc1/dir32 1142944 /media/sdc1
user66001 (2475 rep)
Jun 8, 2013, 04:05 PM • Last activity: Oct 20, 2013, 10:17 PM
4 votes
0 answers
2134 views
USB mouse not working
Every time I plug in any wired mouse recently, I get similar to the below on `VCS1`: >[1443270.286164] usb 6-1: new low-speed USB device number 15 using uhci_hcd [1443270.454270] usb 6-1: New USB device found, idVendor=045e, idProduct=0083 [1443270.461874] usb 6-1: New USB device strings: Mfr=1, Pro...
Every time I plug in any wired mouse recently, I get similar to the below on VCS1: >[1443270.286164] usb 6-1: new low-speed USB device number 15 using uhci_hcd [1443270.454270] usb 6-1: New USB device found, idVendor=045e, idProduct=0083 [1443270.461874] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [1443270.469328] usb 6-1: Product: Basic Optical Mouse [1443270.476877] usb 6-1: Manufacturer: Microsoft [1443270.501140] input: Microsoft Basic Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input26 [1443270.509327] hid-generic 0003:045E:0083.000F: input,hidraw0: USB HID v1.10 Mouse [Microsoft Basic Optical Mouse] on usb-0000:00:1d.0-1/input0 .. but no mouse functionality. The last time [I spent some trying to solve this](https://unix.stackexchange.com/questions/89138/take-copy-of-tty0-text) , the final line that is now missing from the above, was No input driver specified, ignoring this device I haven't tried a computer reboot, because I am interested in using this opportunity to become more acquainted with the mouse subsystem(s) of Linux. Found https://unix.stackexchange.com/questions/49272/restart-usb-mouse-driver while writing up this question, but not sure how to try steps 2 & 3 of what this OP tried (Have restarted X, however - No change). What should I look at next?
user66001 (2475 rep)
Oct 3, 2013, 09:25 PM • Last activity: Oct 20, 2013, 10:17 PM
1 votes
1 answers
275 views
Disable hardware ad-hoc
I am running Parted Magic doing some data recovery, that I am finding myself concurrently using for some other minor tasks also. Problem being, typing is a nightmare, as the trackpad is enabled (No hardware way of disabling it), and seemingly very sensitive. Just wondering: 1. Generally is there is...
I am running Parted Magic doing some data recovery, that I am finding myself concurrently using for some other minor tasks also. Problem being, typing is a nightmare, as the trackpad is enabled (No hardware way of disabling it), and seemingly very sensitive. Just wondering: 1. Generally is there is any way to disable hardware in Linux, without restarting X, or the machine (i.e., Ad hoc)? 2. Are their any options to address this specific problem, if not by disabling the device, perhaps redirecting it's output
user66001 (2475 rep)
Oct 20, 2013, 07:24 PM • Last activity: Oct 20, 2013, 10:03 PM
Showing page 1 of 14 total questions