I recently crashed my LMDE system, and trying to retrieve something from the disaster, booted up the failsafe OS and copied a number of files onto a USB stick using the 'cp'command.
'ls -alrt /media/dougb' showed that the files were present and correct on the stick.
However when I attached the stick to a working LMDE PC there appeared to be nothing on it, whether I looked at the stick in the desktop file manager or by listing in a terminal.
I've tried changing the permissions and/or ownership of the files (via the broken OS) without success.
Why aren't the files visible? What can I do about it?
hello dear Linux-experts,
today i create a rescue-system for the emergency-situation:
i am creating a little resque-usb for SUSE-DVD on USB-Stick
aimed: to create a litle Rescue-USB while using Suse-ISO DVD on a USB medium 1:1 copied
step 1. Suse-ISO download:
he http://ftp5.gwdg.de/pub/linux/suse/o...-CD-x86_64.iso
step 2 copy the file onto a USB stick with the following command
Code:
dd if=openSUSE-13.2-Rescue-CD-x86_64.iso of=/dev/sdX bs=32k
where sdX=sdb or sdc is the USB stick
ready - now i can test the rescue-usb
I have tried to instal Debian 8 from USB stick on my SONY Vayo (VGN-NR430DT) but it wouldn't work even though I set up bios to boot first from usb stick. Instead it would go to the hard drive directly into old debian 7. The bootable usb stick is fine as it worked to install on my other computer with an ASUS Z87-A motherboard. Any ideas how to fix this?
Help!! In 12.04.5 Ubuntu, the /boot directory was full and had a lot of duplicate files from different dates, some I thought were unnecessary headers of updates. However, one series of files was called vmlinuz-3.2.0-29-generic. I moved all the files to /obsolete_files. I rebooted after having trouble upgrading packages (I think this is a second problem with this machine). I now get the following prompt.
grub rescue>
Is there a way to access the directory system so that I can move those files back? I really only need to retrieve one or two files off the system.
Code:
grub rescue>ls
(hd0) (hd0,msdos5) (hd0,msdos1) (fd0)
It doesn't under boot, or insmod. I can set prefixes. Am I doomed?
Hi,
I'm wondering if anyone can help me make a script that searches through a specific folder (in this case /tmp ) for files with a given permissions (755) and then delete all the other files with different permissions?
The correct permission should be, as mentioned 755, and those are the files that should be kept (not deleted).
All other files in this folder with different permissions should be deleted.
Thanks!
Hi I'm very new here and looking for some very basic help (I think).
I've been trying to install NTFS-3G onto a old media player so I can label 4 HDD's so there always appear in the same place after booting up and viewing the samba output over my network.
I have downloaded NTFS-3g and unpacked it onto a USB stick (there are other file on it that can be removed if required).
The version of Linux is Linux version 2.6.12.6-VENUS (root@138_korsen) (gcc version 3.4.4 mipssde-6.03.01-20051114).
The version of BusyBox is BusyBox v1.1.3 (2010.07.12-08:31+0000) multi-call binary.
(I know both are old).
If I type/run fdisk -l I get the response
Disk /dev/sdb: 8024 MB, 8024752128 bytes
255 heads, 63 sectors/track, 975 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 976 7836640 7 HPFS/NTFS
Partition 1 has different physical/logical endings:
phys=(974, 254, 63) logical=(975, 158, 14)
dev/sdb1 is my usb stick and at present the only usb/hdd connected.
My problem is how on earth do I get into the usb directory and the install the program(command by command please Linux newbie very).
Any help or advice now matter how basic would be very greatly appreciated.
Thanks in advance
Andy
I'm trying to figure out if find could do this. I have a folder with 1000 files. I want to delete 150 files on that folder regardless of timestamp and filename. Is there a tool, command or option on find that could do this, please let me know.
Combining mtime or ctime to find is not advisable since it will not count the files or even if there are matches, I would still need to sum up the files until I reach 150 files.
Any suggestions?
Directory /media/data/torrents/ has permissions 775, user yzt, group transmission
yzt and debian-transmission are members of the group transmission.
transmission-daemon is run by debian-transmission, and the new files it downloads have permissions 644, owner debian-transmission, group transmission. This is a problem, because I can't later move the files as my user, yzt, and need to be switching to root to change the permissions/ownership to be able to do so.
Using sticky bit I could copy it to anywhere else, but I'm interested on actually moving the file, not just copying it. I could run transmission-daemon as yzt and problem solved, but I rather have that internet facing service running by a limited user, just in case some vulnerability is found on Transmission.
So my question is, how can I set that every new file created under /media/data/torrents/ has permissions 775 like its parent directory?
Ubuntu 14.10
Some files have owner as number
Why is it that some files or directories have the owner as a number rather than a name?
My ls -la listing for /var/www/html/ | grep moodle gives
drwxr-xr-x 45 1005 1005 4096 Jan 12 13.53 moodle
Who or what is 1005?
There is no such owner in /etc/passwd
How can linux store meaningful permissions information for a user or group that does not seem to exist?
Thank you
Hi Everyone, I have multiple csv files(>100). They are rain-gauge stations files for precipitation measurement. In these files, the numbers of stations are not equal(i.e. there are missing stations). I want only the stations that are present in all the files. The files have unique station id in column #3. I want to ask if this is possible in Linux?
It may be something along: for h in *.cvs; do sed '?????' $h > rippe_$h && mv rippe_$h $h.xls ; done
Booted my computer with 2 USB flash drives inserted. One of the drives turned out to be an MS-DOS boot drive. The PC booted in DOS and wiped out the partition table of the other flash drive with my data on it. This second (64Gb) drive had a single 64Gb type 83 (Linux) primary partition (ext4 file system).
Is there a way to recover the data that's on the second stick?
I've been told that all I have to do is repartition it exactly as it was and my data will be there. But I'd like to have advice from the pros here before I start messing with it.
For the time being, I dd-ed the entire stick, as is, onto a blank partition of my hard disk (dd if=/dev/sdb of=/dev/sda14). The process completed without errors but /dev/sda14 is unmountable for the moment.
Thanks for any help.