Ubuntu :: 9.10 - Chroot Repair Of Ubuntu Partition, /dev/pts And "openpty"?

Jan 9, 2010

I was an accidently removed "linux-image" while trying to remove the older kernal I had just upgraded from. Nothing showed up in grub so tried to use the liveCD.I chrooted to the partition, all well and good, internet connection works fine too but synaptic/apt-get it throwing up messages I don't understand:

Can not write log, openpty() failed (/dev/pts not mounted?)
update-initramfs: Generating /boot/initrd.img-2.6.31-17-generic
/usr/sbin/mkinitramfs: 222: cannot create /dev/null: Permission denied
^^^^^^ that second message is repeated a LOT of times

When I try to use synaptic it says:"Error failed to fork pty" So basically I have no idea what /dev/pts is or why it's needed, I googled it, gave me instructions on how to mount by it still didn't work.

View 3 Replies


ADVERTISEMENT

Ubuntu Servers :: Completely Chroot Enviornoment Where Every Single Service Is In Chroot Mode (bind,mysql, Postfix)?

Jul 12, 2011

recently we decided to make our own panel (like Plesk or cPanel) but for Ubuntu and it will be licenced under GPL (like any other professional sofware).want to make a panel not only that fits our needs but also the needs of other system administrators and domain owners. We researched other panels and found out that non of them has security/look/ease of use in one package. Bad codig is another problem found in other panels.I made a short overwiev of what I think we have to have in the beginning.I Security :1. Completely chroot enviornoment where every single service is in chroot mode (bind,mysql, postfix, .... )2. Easily managed IPtables trough web-based interface. 3. Coding rules has to be strict.

II Software selection :
1. MTA - Postfix
2. POP - dovecot

[code]....

View 7 Replies View Related

Ubuntu :: Can't Unmount Partition For Repair?

Jan 4, 2011

After reboot I saw this communication:Quote:Target filesystem doesn't have requested /sbin/init.No init found. Try passing init= bootarg.and I can't shutdown the system normally because it stops (live cd too).Then I can't repair this partition because it is always busy.

View 2 Replies View Related

Ubuntu :: Can See Partition But Can't Mount - Boot Or Repair It

Jul 29, 2010

I just now re-installed 10.04 on my box, but now I can't get back into Windows. I'm getting the BOOTMGR not found error, that I'm familiar with, but the circumstances surrounding it are completely new to me. In the past I've encountered errors from hard-shutdowns where I couldn't mount the partition, until I checked it with windows first, but I can't boot into windows at all any more. I'm pretty sure my grub is pointing to the right location:

[Code]...

View 6 Replies View Related

Ubuntu :: How To Repair Corrupt Partition Table

May 21, 2011

A few months ago I tried to shrink an NTFS partition using gparted and use the free space to install Haiku. However, gparted crashed in the middle of the resize, leading to a corrupt partition table. I tried to solve the problem myself, using testdisk to detect the partitions. However, the fix is not perfect, and it left me with a partition table that goes "outside" of the disk (i.e. the partition table has allocated more sectors than there actually are on the disk to the last partition).

Recently I need to reinstall Ubuntu Natty, but because the partition table is corrupt, the installer on the Ubuntu Natty Live CD (as well as gparted) see the disk as entirely unpartitioned. What is weird is that the Disk Utility (aka palimpsest), fdisk on my current Natty distro (upgraded from Maverick, which I want to replace with a fresh install), and GRUB 2 see the partitions fine (with some errors, such as listing a few trillion TBs of available space, a result of the corrupt partition table).

I am using an Asus U30Jc laptop with a single 500GB HDD. My current setup is supposed to be like this:
/dev/sda1: A hidden FAT32 recovery partition generated by Windows 7, listed as containing Windows Vista by GRUB 2
/dev/sda2: NTFS partition containing Windows 7 (labeled "OS")
/dev/sda3: Extended partition containing "DATA", Ubuntu, swap, and the erroneous trillions of TBs of space
/dev/sda5: NTFS partition containing user data (labeled "DATA")
/dev/sda6: Ext4 partition containing Ubuntu
/dev/sda7: swap partition
(*Though I'm not supposed to have it, and it isn't listed in /dev while running the Live CD, /dev/sda4 exists as a zero-length partition in the output from sfdisk; not sure why)

Currently I've tried the following:
- testdisk, using "deeper search" and writing the partition table back to disk; produced a (usable) partition table that was bad.
- [URL], fsck didn't do much at all, except raise various errors on all partitions except the one containing Natty.
- [URL], tried to substitute the numbers caljohnsmith gave to thegreat with the corresponding values from my run of fdisk -lu, but because caljohnsmith didn't explain where the values came from and what they meant (no offense to him), I was lost; after the last step (setting the end sector on the extended partition to the last cylinder boundary (which I didn't really understand; tell me if you need details on what I did)), gparted went from showing the trillions of TBs of free space as outside all partitions to showing them as inside the extended partition; this also somehow caused the partitions to overlap.(The error parted raises changed from "Error: Can't have a partition outside the disk!" to "Error: Can't have overlapping partitions.

Running fdisk from the Natty Live CD gives
Code:
ubuntu@ubuntu:~$ sudo fdisk -lu
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x74ef0aca

Device Boot Start End Blocks Id System
/dev/sda1 2048 34812854 17405403+ 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 34812855 279000854 122094000 7 HPFS/NTFS
/dev/sda3 279000855 976768064 348883605 f W95 Ext'd (LBA)
/dev/sda5 279000918 875204030 298101556+ 7 HPFS/NTFS
/dev/sda6 875204608 972859391 48827392 83 Linux
/dev/sda7 972861440 976771055 1954808 82 Linux swap / Solaris
Running sfdisk -l from the Natty Live CD gives

Code:
ubuntu@ubuntu:~$ sudo sfdisk -l /dev/sda
Disk /dev/sda: 60801 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 0+ 2166 2167- 17405403+ 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 2167 17366 15200 122094000 7 HPFS/NTFS
/dev/sda3 17367 60800 43434 348883605 f W95 Ext'd (LBA)
/dev/sda4 0 - 0 0 0 Empty
/dev/sda5 17367+ 54478- 37112- 298101556+ 7 HPFS/NTFS
/dev/sda6 54478+ 60557- 6079- 48827392 83 Linux
/dev/sda7 60557+ 60801- 244- 1954808 82 Linux swap / Solaris

Running parted from the Natty Live CD gives
Code:
ubuntu@ubuntu:~$ sudo parted /dev/sda print
Error: Can't have overlapping partitions.

View 4 Replies View Related

Ubuntu / Apple :: MBR Partition - REFIt And Gptsync Are Unable To Repair The MBR Error

Sep 23, 2010

I've used rEFIt and to create a dual boot system on a new MacBook Pro 7. 1 following the directions in the community forum. I can book ubuntu and mac os x fine. However, the MBR boot table shows an error in the partition map.

[Code]...

How can I fix this, rEFIt and gptsync are unable to repair the MBR error... Will this cause problems (since MBR shows the ubuntu boot partition overlapping the OSX partition)?

View 2 Replies View Related

Ubuntu Servers :: Raid5 Repair Partition Table - Recognized Too Late

Feb 27, 2011

I opened GParted to create a new partition on a new drive. He wanted me to create a partition table first which I did, and it was created directly without any prompt like im used to see when creating partition. So I recognized too late, that i actually created a MBR on one of my 6 1TB raid5 drives. Not beeing sure if the ne MBR was really written, I have opened ubuntu disk utility and clicked on the check raid button. It directly made a resync. After the resync, mdadm --detail /dev/md0 told me everything is ok and synced. Then I wanted to mount it with:

mount /dev/md0 /mnt Then I get the following error: "mount: wrong fs type, bad option, bad superblock on /dev/md0, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so" I think I just killed my raid5 ;(

I shouldnt work on my server when im tired and when I actually have no time ;( My last hope is the fact, that "Disk Utility" shows that there is a .0 TB ext4 volume on my raid (see screen below) [URL]

View 5 Replies View Related

General :: Repair Corrupt Partition On LVM?

May 7, 2010

A drive in a RAID array failed and as a result one of the partitions held on the LVM has corrupted. The result of LVS is below.

Code:
[root@brassxen3 ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
MGT VG_XenStorage-511bee02-d169-b418-6a9e-a88b7e3ce939 -wi--- 4.00M


[Code]....

This partition belongs to a virtual machine, the partition is not visible when booting this VM using a live CD or attaching it to another VM. When booting anything with this partition attached it takes hours to boot.

View 3 Replies View Related

Hardware :: Can't Unmount Partition For Repair

Jan 4, 2011

After reboot I saw this communication:

Quote:

Target filesystem doesn't have requested /sbin/init. No init found. Try passing init= bootarg. and I can't shutdown the system normally because it stops (live cd too). Then I can't repair this partition because it is always busy. I have on this partition important files.

View 14 Replies View Related

Fedora :: Repair Read-only Partition - 8GB USB With SanDisk U3

Jan 7, 2010

the U3 system mounts on dev/sr1 while the rest oi the 8 GB USB drive is usually /dev/sdb or sometimes /dev/sdc.

fdisk will not write to this /dev/sr1 partition

Code:

[root@localhost ~]# fdisk /dev/sr1
You will not be able to write the partition table.
Note: sector size is 2048 (not 512)

[code].....

View 11 Replies View Related

Fedora :: Repair / Restore Partition Table?

Aug 6, 2010

I ve got a dual boot, XP and FC 12 on a single harddrive. After defragmentation of NTFS partition (With XP installation) cant'boot linux So, rub statrts with boot menu after selecting linux it tries to load linux but prints out some messages again and again (I do not remember contetn of messages) And these messages are circulating

View 14 Replies View Related

Server :: LVM Repair Of Working Disk With Corrupted But Known Partition Structure?

Sep 8, 2010

I have a hard drive where one partition is used as part of a logical volume (LV) using LVM. The partition table is corrupted and prevents the partitions from showing as devices in /dev/. The corruption prevents the logical volume from coming on-line b/c LVM cannot find the part on the corrupted disk. I (am pretty sure) I know the block offsets and lengths for each partition on the disk but do not want to write to the disk in case I am wrong.

How do I go about recovering the logical volume in this scenario?

View 1 Replies View Related

Software :: Repair Missing Partition Table And Recover Data From Xfs?

Jun 15, 2009

I used to have a 1TB external drive with lots of stuff on it. But after a reported drive failure during a F11 install the partition table seems to have been lost. (I think F11 toasted it)

Disk /dev/sdc: 1000.2 GB, 1000215724032 bytes
255 heads, 63 sectors/track, 121602 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[code]....

The drive used to have xfs and a partition. Is there any way to rebuild the partition? Or is my 1TB of data gone forever? The drives seem to be fine now... I just want to get it up enough to either pull any data or just to get a file list. Most of the stuff on the drive was from somewhere else.(ie 300GB of NRN data for all of North America.

View 3 Replies View Related

Fedora :: Changed Partition Size - Repair Filesystem Error On Booting

Sep 19, 2009

I am using Fedora core 10. I have changed my partition size of Linux from windows. After I finished resizing the partition, I rebooted my system to the Linux platform. While booting it gave me an
error: repair filesytem #1:
I don't know what to do?

View 5 Replies View Related

General :: USB NTFS Disk Suddenly Won't Mount - Partition Gone / Repair It And MBR Without Losing Data?

Sep 12, 2009

Just ran into an uncomfortable problem. I usually never save any documents on my machine, and keep all my stuff on an external USB hard disk. (an 80GB TrekStor DS microdisk q.u)
Well yesterday this disk just would not mount.
Read through related posts but nothing seemed to work. Even tried it on a Windows machine.

Tried TestDisk utility. Found nothing wrong with the drive, but still could not repair the MBR.log code...

Palimpsest Utility recognized the drive, but just will not let me do anything with it except format it.

How can i repair the partitions and MBR without losing all my data?

View 2 Replies View Related

Fedora :: Find Documents Or Repair - Add In A Repair Line?

Nov 10, 2010

i know i asked earlier but i got my usb to be mounted on a different fedora distro. how do i now find my documents or repair it? also how do i add in a repair line if possible?

View 2 Replies View Related

General :: How To Repair Filesystem - Appearing As Free Space - Recover The NTFS Data Partition ?

Feb 16, 2010

Original disk:
XP NTFS primary
Linux / ext4 logical
Linux /home ext4 logical
Win 7 NTFS logical
NTFS data logical
swap space
NTFS recovery partition

I tried to install linux, as there was a problem with XP overwriting grub, I chose write grub to /dev/sda8 (which is where the linux install was appearing earlier).

I guess this borked the filesystem somehow. Now the NTFS data partition and the swap space are appearing as one free space.
Well actually before that some linux live CDs (including gparted were seeing the entire drive as unpartitioned). I had to go into XP and delete the /ext4 partitions.

Is there any way for me to recover the NTFS data partition ?

View 4 Replies View Related

Ubuntu :: How To Chroot Through Ssh

Feb 3, 2010

Getting full access to /home is a piece of cake. I want to be able to look in on all the files. I would also like to know how to chroot through ssh.

View 9 Replies View Related

Ubuntu :: How To Reboot A Chroot Environment

Nov 30, 2010

i created a chroot environment for maverick. while installing packages and ubuntu-desktop it says that i need to restart. when i pass the command " sudo shutdown -r 0" my whole system gets restarted. how can i restart that particular environment.

View 3 Replies View Related

Ubuntu :: No Names In Chroot Environment

Dec 4, 2010

I created a chroot environment for lucid. when i log in by executing this command "sudo chroot /var/chroot/lucid" it logged me in as a root user. i created a new account there, when i log in by that account i cant see anything written before $ sign. even if i change directory or anything else i cant see anything.

View 1 Replies View Related

Ubuntu :: Change Keyboard Layout 9.10 Chroot

Mar 12, 2010

I'm rly poundering on the following problem. For our school assignment we need to make a liveCD (just a part of the assignment). I've stripped down a default ubuntu 9.10 . But I need to default keyboard layout to be azerty (belgium). When I run the liveCD in virtualbox and do dpkg -reconfigure console-setup it's all good.

But when I do it in chroot to change the liveCD, it gives an OK etc but when I pack it into an ISO again and run it ... Again US keyboard layout. Even on startup when I change the keymap it doesn't change to azerty... I rly don't know what to try now..

View 1 Replies View Related

Ubuntu Servers :: SSH Chroot On A Per-User-Basis?

Mar 23, 2010

I'm attempting to give a few buddies encrypted storage space through sftp using truecrypt.I have it worked out to the point where the truecrypt volume is automatically mounted when the user logs on, and dismounted when they log off.I would like to restrict each person to their individual home folders. This way, I can control exactly how much space each user is able to use (through the size of the truecrypt volume), while maintaining security through the network due to using SFTP.

I've been looking around, and the only thing I can see is restricting a large group of users to a single directory, this won't work, I need each person to be locked down to their personal home directory.My end goal is to have these volumes "mountable" in Windows through the use of Windows network drives (on a wide network, not through samba on local), or by using expandrive or a similar program. how I can lock these users to their respective home folders?

View 9 Replies View Related

Ubuntu :: Info On Chroot Jail And If Break Out Of It?

Jul 16, 2010

im looking for info on chroot jail and if you can break out of it. does anyone know where to find info?

View 1 Replies View Related

Ubuntu Servers :: How To Setup SFTP In A Chroot

Aug 13, 2010

I'm wanting to setup SFTP in a chroot, which is simply enough to do and I already have it working; however I also want it so that when they connect via SFTP it goes directly to their home directory. Currently I have the following in "/etc/ssh/sshd_config":

Code:

Subsystem sftp internal-sftp
Match Group sftp-users
ChrootDirectory /home
AllowTCPForwarding no
ForceCommand internal-sftp

Which works perfectly fine, however when they connect there are shown the contents of the "/home" directory which they then have to "cd username" to get to their home directory. This I do not like, and it confuses our clients who connect saying they can see "random folders that aren't mine", or some that think they've "hacked" the server. I really need it so upon connection they go to "username" directory. I can do this by using:

Code:

usermod -d /username username

Which changes the users home directory to "/username", and then upon connection it works just fine, they are taken directory to their home directory. However, I really really do not like the fact that "/etc/passwd" shows a different home directory to their real home directory, i.e it states "/username" when actually it is "/home/username".I've spent the entire day looking a different ways of doing it, and I can't come up with anything.

View 3 Replies View Related

Ubuntu Security :: Chroot Without Internet Connection?

Oct 26, 2010

I was hoping to set up a Kubuntu 10.04 Chroot on a PC with no internet access (I only have dialup anyway, not Broadband). All the information I have been able to find refers to downloading debootstrap in order to do this.I purchased a set of DVDs with all of the Ubuntu packages on them and created a single repository of them on my harddrive.Is there some way that I can create the Chroot using the packages on my hard drive without having to access the internet to download stuff as I do it?

View 6 Replies View Related

Ubuntu :: Seperate Display To Run X Applications In Chroot?

Apr 11, 2011

Since copying the .Xauthority or using xephyr/xnest open the applications in the same display, i was wondering. how can one run a separate display on tty8 for only the chroot? is it possible?

View 5 Replies View Related

Ubuntu :: [Chroot] How To Reinstall Kernel Files

Sep 10, 2010

While learning about Ubuntu, I made an error in a chroot code...

This doesn't work either code...

Does someone know how to solve this?

View 1 Replies View Related

Ubuntu :: Have To Install All Libs Required For PCSX2 Within Chroot Itself?

Nov 6, 2010

I'm running Ubuntu 10.10 64bit and I have succesfully installed 10.10 32bit as a chroot using URL...I'm able to go into the chroot shell and it works perfectlyI want to run PCSX2. I have it downloaded in my personal Downloads folder but how to I access it from a chroot? also will I have to install all the libs required for PCSX2 within the chroot itself?

View 9 Replies View Related

Ubuntu Installation :: 10.04 Upgrade On Bind In Chroot Crash?

Dec 8, 2010

I just tried to upgrade my server to the latest version of Bind9 and the process fails gets frozen.First note that I have Bind in a chroot jail.When I try the upgrade, or the recommended "dpkg --configure -a", it displays this then hangs:Quote:

Setting up bind9 (1:9.7.0.dfsg.P1-1ubuntu0.1) ...
* Stopping domain name service... bind9 rndc: connection to remote host closed

[code]....

View 2 Replies View Related

Ubuntu :: Chroot: Failed To Run Command `apt-get': No Such File Or Directory

Aug 8, 2011

Recently did a clean install (instead of upgrade) of 11.04 from 10.10 and this error bugged me for the first time.

ubuntu@ubuntu:~$ sudo apt-get install grub-pc
Reading package lists... Done
Building dependency tree

[code]....

followed this one too to the letter: ubuntu@ubuntu:~$ sudo chroot /mnt/clean/sda1 apt-get install -y grub-pc chroot: failed to run command `apt-get': No such file or directory tried this one too:

ubuntu@ubuntu:~$ sudo grub-install /dev/sda1/usr/sbin/grub-probe: error: cannot stat `aufs'.and this too which got me a bash something:

ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt
ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys

[code]...

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved