Debian :: Moved Whole Root Structure - System Inaccessible?
Aug 14, 2011
I was looking for some way to make 'watch folder' and I found and installed inotify and incron. Explanations were perfect and everything seemed great. So I made test script and it worked as expected.
Now, bash script that was evoked by event by incron consisted this terrible line:
...
mv * /some/folder/
...
which I expected to be run from watched folder, but instead it is run on holy root /
Rest is tragedy: everything was moved to this folder and I can't access any command. Terminal was opened but it did not accept commands. I cd to '/some/folder/bin' then tried to execute command but no luck. I tried also Ctrl+Alt+F1 - same.
What can I do except reboot. Now what? Grub rescue failure prompt. I went in BIOS to make it boot from separate SATA HD with Windows 7, but it somehow isn't listed there. I can't think why. I tried from this Live CD to move folders to correct location, but it's Permission denied
[edit] Re-reading now, in terminal command 'cd' (change directory) was working, but sure not ls, mv and others. Maybe I could have done something, but probably not, network connection was lost, music stopped playing everything was vanishing...
I'm running skype on my Debian squeeze with kde 4.4. If I minimize it, on a task bar it remain for a wile, and then disappear. I know it's still working because some times I see some message (user x it's online, user y it's off line etc etc) and if I type: ps -aux | grep skype, I receive the PID number. But I'm not able to bring it accessible in my desktop.
Although I've been dabbling for a while I'm somewhat of a newbie so bear with me: Rather than rebuild my Hardy Server due to root being full, I followed suggestions to create another logical volume on the volume group and put root there. I must have missed some fundamental step. Although the partition appears to be functional, the defined space isn't visible and I am stumped:
$sudo df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/vg--server1-lv--root 4582064 4533388 0 100% / varrun 1895524 248 1895276 1% /var/run varlock 1895524 0 1895524 0% /var/lock
I cut paste sys folder, tmp folder, and many more folder to a backup storage place , after that folder icon and other icon converted into txt icon , i can make any folder but can't access, can't open storage, thrash disappear, terminal icon disappear, and also the application and places and system icons, after that someone suggested restarting may help but i can't restart it , so i unplugged the power wire and replugged it and restarted the system but it can't open , all things comes fail, and show INIT: "x" respawning too fast: disabled for 5 minutes. after each 5 mins this msg is repeating
I have successfully migrated my linux install to a new /, /home, /boot partition on my ssd. Everything works fine, except that it won't make the root directory on the right disk. When I change the root=uuid=<drive id> to my new drive everything is fine, but I can't automate that... in other words I have manually typed the uuid of my root-partition for about 100 times now and I am fed up with that how I can save the uuid of my new drive in the startup parameters?
I have one of those ultra reliable Ubuntu servers in the corner that I never have to logon to because it never needs anything. I needed to check up on it today and my root password would not work. I am absolutely sure I did not forget my password and because I am the only Linux guy in the office I am sure some nimrod didn't get his fingers in the machine. I attempted to enter GRUB recovery mode but when I hit ESC it says something about no disk and goes into the booting process. I attempted to use a desktop version live CD, but the file structure is unreadable, I assume due to the security of the server system. Before I rebooted it the server worked fine, Apache and PHP were working away. Now the whole thing is a 50Lb boat anchor. How can I reset the password when I cannot enter GRUB menu or use a live CD?
I moved an LVM to a new computer, but everytime I reboot I have to do vgchange -ay and then mount it. I tried putting it in fstab, but it seems it doesn't work because the volume group is disabled when booted
About a year ago, the motherboard/CPU failed, and i was able to just swap the hard drive into an old computer we had and it worked. (I know i got lucky).Well, it's happened again, and I took the Hard drive from the old system and put it into a new one. I can get the system booted up on the old system, but hardware issue prevent me from using that system.
I am new to Linux and not sure how to explain what I want to do, but I will give it a try. I have a system running CentOS 5.x on a system the is dying. Is there an easy way to migrate the system over to a brand new system that I recently purchased? I only have / and swap partitions, so nothing fancy; however, I have read that Linux is nothing like Windows when it comes to applications, and I could simply drag and drop files on the new server; however, I suspect that there is more involved than that. I hope I can just move the files over, and the system will boot; however, I am worried about new hardware on the new system. I am looking for recommendations to this issue. I am not sure if I have described it correctly; however, just point anything out that I need to change.
I've got a couple of commercial NAS boxes and I'm wondering if they (ReadyNas duo, DLink DNS-323) or any other NAS is suitable for having their RAIDed disks moved to a software-based NAS. To be specific, I'm a big fan of the (largely) Debian-based Ubuntu. Can the aforementioned NAS drives be migrated to Ubuntu (e.g. using the mdadm Linux command)?
Secondly, is there any commercial NAS that can be migrated over? Incidentally, here is a link to somebody who succeeded in a migration:URL...My specific scenario I'd like to prepare for, is the eventual (sudden) death of one of the NAS motherboards.
I have to set up my development environment under OEL 5.4. The internal directory structure is more or less fixed, the question is where to put the whole application tree in standard FHS for the development phase.For production, the system will be deployed on a server where data is kept with an Oracle 11g database. Development goes with JDeveloper which has its own internal application/project directory structure; however, I whould like to be independent from this. Unfortunately, by carefully studying the web for FHS, if I will adhere to it I only find ready-made packages to put under /opt, for example. No development aspects are mentioned. make some proposal, possibly with respect to best practices.
I have installed the Ubuntu distro first in Portuguese. Then, I decided I wanted the English language. I would like that the default folders like "Desktop" and "Documents" were renamed to this names, instead of staying in their Portuguese equivalent.
I can not guarantee this, but I am almost certain I did successfully convert the folder names from Portuguese to English on a previous install when I decided to change the language. So, I suppose this is possible.
I've been looking high and low for a utility program or perl script or something that can take a linux directory structure as input and convert it to MS-DOS 8.3 directory structure.
The purpose of this is to conform to the path format that is expected on my rather old Creative Zen Neeon MP3 player for m3u play lists.
I have a system running with few users and servers (apache/mysql/postfix). After extracting one tar archive in '/home' none of my users are being able to access their home directory. Even other system users (like www-data/mysql) are also not being able to access any directory. Only root can access the system. I have checked file permissions, many files/directories are set to 777 rest are 755.
I had a Thinkpad T61 running Debian 6 that died. I got a T400 and had hoped to save my debian 6 installation by putting the original T61 hard drive into the T400. When I do the machine gets to the Grub menu, then it starts booting and the text starts moving up the screen. Then it goes to a small blinking cursor at the top left corner and stays there.The T61 had an Nvidia card, the T400 has the switchable Intel/ATI. I went in the BIOS and told it to boot using the Intel only but no go. I'm thinking that Grub needs configging to see my new hard drive but I don't know how to do that.
I am running Debian on my eeepc, and whenever I move the display while my computer is on, it often restarts. It turns off at a specific place on the hinge.
I have a 500 GB drive that has a bad "place" at the beginning of the drive. It affected both the MBR and the first 40 GB partition. I just installed a 1 TB (why not?) replacement, but I'm wondering if I can get some future use from the bad drive.
I recall there are programs that will identify and lock out bad sectors on a drive, but I can't remember any specific names. Does Linux have such a critter? Is the MBR in a fixed location on a drive, or could such a utility lock out the bad MBR and allow the creation of a new one in good space?
Running Squeeze here. I added a new SSD to my system. Root is /dev/sda3 and I want to clone that system to the new SSD on /dev/sdb1 and make it bootable. I tried:
mount /dev/sdb1 /mnt/ssd_root cp -dpRx / /mnt/ssd_root
but to no avail. I cannot get the new system to be bootable and available through Grub. Part of the problem is that I do not know my way around Grub v2 so well, I could probably manage quite well with legacy grub. So, whats the easiest way to clone a system and make it bootable on another partition? Should I be using debootstrap, and importing/exporting the package list to install the same packages on the new system as the old? or is using cp -dpRx to copy the old ok? How do I make the new system boot?
After a fresh install of Debian I came across an error Im hoping you guys can help me with. Ive searched for the error and it appears there are multiple reasons that could be causing it. To compound the problem, Im at work so I dont have the specific error messages....so I just installed Lenny (standard install, no desktop) using a USB installer and everything went very smooth. On first boot, the system paused while waiting for the root file system. After a minute or two it just errored out complaining it could not find the root file system and put me at a (vmlinuz) prompt?My guess is that I need to go into my bios and change my boot priority.. but again, thats just a guess.
Unfortunately, I deleted my /home/ directory by running "rm -rf *" accidentally. The partition (/dev/sda3/) has an ext3 filesystem. After deleting the /home directory, I shutted down the PC and rebooted from a RIPLinux liveUSB, which has some tools that allowed me to recover some files. However, what I would like to do is to recover the directory tree structure, rather than the files, in order to see which files I deleted.
What I exactly want is the following: I would like to have the output of "ls -lR /home/" before deleting all the files, but the problem is that now the /home directory is empty.
I'm a long time user of Debian, but I'm having trouble with my partitioning process. Here is where I currently stand:
I am installing the latest Wheezy build. I am trying to install debian with an encrypted LVM that spans two hard disks.
My partitioning layout is as:
1. /home 2. /root 3. swap 4. /boot
I then added partitions 1, 2 and 3 to a physical volume group. I then took that physical volume group and added it to a logical volume. Then I encrypted the logical volume, leaving the /boot partition untouched. I was under the assumption that the only partition the system needed free to reach the loading of the LVM is the /boot partition, as it holds the files necessary for booting. But when I attempt to finalize the disk, it gives an error stating, "No root file system detected". That would be an issue as it is currently sitting inside the encrypted LV. Am I wrong in including the root partition in the encrypted LV?
What is the best way of having as little of my file system non-encrypted as possible while still allowing a proper boot?
I have built a kernel with a ramdisk(ramdisk.image.gz) included. Also in the kernel command line I specified root=/dev/ram0. I am trying to use this ramdisk to load a loopback file as the root filesystem off a fat partition. This is /sbin/init from the ramdisk.
#!/bin/sh mount -n -t msdos /dev/mmcblk0p1 /mnt losetup /dev/loop0 /mnt/linux/linuxdsk.img mount -t ext2 /dev/loop0 /mnt2
[Code]....
The problem is both umount and blockdev report "device is busy". I want to free up this RAM any suggestions?
For my project, it's absolutely necessary to have a read-only root partition system. I have a writable /opt/project partition.But, I also need to start x server. startx This tries to write to some temporary files and fails as / is readonly. Is there any how-to on how to move this temporary files to the writable portions of the file system.
I've been having problems with audio not working through the speakers since I upgraded to Jessie. I did a fresh install, the same hardware worked out of the box on Wheezy. Audio does work through the headphones - searching Google results in a LOT of similar issues on various distros, but none of the suggestions I've found have worked. Pulseaudio is not installed.
Alsamixer shows that the speakers are un-muted, and toggling the headphone auto-mute in case that was causing problems doesn't work. lsmod shows that snd_hda_codec_hdmi is loaded and in use - could it be trying to send sound via HDMI? Odd, because this laptop does not have an HDMI port. Blacklisting that module doesn't seem to make a difference however.
I'm pretty new to linux, and I'm facing a problem with an ext3 partition on an external hdd. I'm not sure whether the hdd is about to crash or not, however I've had a few problems accessing it in the past.
I have a second external hdd, the exact same drive, that has the exact same partition configuration, but holds different data. So, my question is; is it possible to backup the partition structure of the second working drive, and using this information to rewrite the partition structure of the failing hdd without damaging the data stored on that drive?
Vista Recovery Windows 7 GRUB Extended -->Fedora 12 (ext4)
so, I shrunk my recovery in Windows 7 successfully, and booted into my Fedora 12 live cd to run Gparted, and move the partitions so that the free space could go towards fedora, I did such, and then I couldn't expand the partition to my dismay. Next, I woke up this morning, tried to boot to fedora to run SSH, grub loaded, but when I tried to boot fedora, I got the "File system check failed" error, and when I tried 7, it just went to a blank screen with a single "_" in the top left-hand corner.
I've installed Ubuntu Server and set it up 3 weeks ago, it was working fine until today. Just recently, someone IM'd me @ jabber saying that none of services running on it work (http, ftp, svn, jabber, ssh). So I've checked stuff on my PC, and everything seemed to work well (at least for me). I've tried to see if http works via proxy, but it seemed like no. I've called my ISP, on their side everything looks fine, server was accessible via their machines too (well it's obvious). I asked them to see if other networks (TP, GTS Energis, Energis) could connect to it as well, the answer was - no. (I don't think it's firewall, since I didn't even had time to set it up...) (hq.lime-entertainment.com). Running Ubu 10.04 LTS Server