Results 1 to 10 of 21
This is my third thread in a few days, I feel like i'm struggling a bit. So I moved a script on my desktop to a different location and tried ...
- 01-07-2012 #1Just Joined!
- Join Date
- Jan 2012
- Posts
- 28
Wont boot up.
This is my third thread in a few days, I feel like i'm struggling a bit. So I moved a script on my desktop to a different location and tried to run it, the system locked up and now it wont even boot up. I wrote this for the script:
Then I moved it. It was on the desktop.Code:#!/bin/bash sudo -i cd /home/user mount -t vboxsf music /home/kyle/Music_Mount exit
Then I haven't been able to use it again.Code:#the script I made was called 'mount', I didn't think anything of it, but it is the same as a command. sudo -i mv mount /usr/local/bin cd /usr/local/bin dir #it displayed mount, the file i put there. mount cd #then i tried to run the script by typing mount [ENTER] mount
KopkinsLast edited by Kopkins; 01-07-2012 at 01:59 AM.
- 01-07-2012 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,855
Yeah, looks like you moved the mount command inadvertently. It usually resides in /bin. You'll need to boot via a rescue Linux CD (any Live Linux CD will do - the Ubuntu one would be fine). You just need to be sure to go into "rescue" mode - sometimes it is a menu option when you boot the Linux CD, and sometimes you have to manually append it to the kernel parameters line.
The rescue system runs in memory. You'll need to mount your original system temporarily (the rescue Linux installer may try to do that for you), then move the mount program back into place (if you can find it), or reinstall it from sources (not sure how easy/hard that is with Ubuntu).
If you need to mount your system manually, you'll need to do something like:
Edit: Check this guide for booting into rescue mode:Code:mkdir -p /mnt/sysimage mount -t ext3 /dev/sda1 /mnt/sysimage
https://help.ubuntu.com/10.04/instal...86/rescue.htmlLast edited by atreyu; 01-07-2012 at 03:58 AM. Reason: guide
- 01-07-2012 #3Just Joined!
- Join Date
- Jan 2012
- Posts
- 28
I can't figure out how to boot into rescue mode. With the CD in, it boots to a menu where I can test it or install it. I can't find anywhere to input rescue, or anywhere to select it from a menu.
- 01-07-2012 #4Linux Guru
- Join Date
- May 2011
- Posts
- 1,855
So there is no "Rescue a broken system" option? What CD are you using? Can you press Escape to get a "boot:" prompt? If so, then try typing "rescue" and enter.
- 01-07-2012 #5Just Joined!
- Join Date
- Jan 2012
- Posts
- 28
I just went back to ubuntu.com and downloaded the disk image again. It's Ubuntu 11.10. Should I use 10.04? I got to the boot prompt, but it says there is no 'rescue kernel.'
Last edited by Kopkins; 01-07-2012 at 02:41 PM. Reason: version
- 01-07-2012 #6Linux Guru
- Join Date
- May 2011
- Posts
- 1,855
Is there a "Try Ubuntu" option? That would be like rescue mode.
You can use the 11.10 version of the Ubuntu CD and then re-install the package containing it (probably the util-linux package, but not sure) from the internet. Or you can use the Ubuntu CD of the same version as your installed OS (10.04?), boot with it and re-install the package from that CD.
You will need to mount your original filesystem first, remember.
- 01-07-2012 #7Just Joined!
- Join Date
- Jan 2012
- Posts
- 28
There is a try option. my version is 11.10. How would I go about mounting my original filesystem? I'm very new to this, sorry.
Thanks,
Kopkins
- 01-07-2012 #8Linux Guru
- Join Date
- May 2011
- Posts
- 1,855
It is likely your Ubuntu installation is on the first SATA disk, e.g. /dev/sda. But to be sure, first get a list of your hard disks. In the terminal window, do:
You should see partition tables of all attached hard disks. Assuming /dev/sda, do something like:Code:sudo fdisk -l
Where sda1 is the partition on which your root filesystem resides. it could be sda2, etc.Code:sudo mkdir /mnt/sysimage sudo mount -t ext3 /dev/sda1 /mnt/sysimage
- 01-07-2012 #9Just Joined!
- Join Date
- Jan 2012
- Posts
- 28
Is there something besides 'ext3' I could use. It causes an error?
- 01-07-2012 #10Linux Guru
- Join Date
- May 2011
- Posts
- 1,855
yeah, it could be ext4, that is likely it. i thought it was backwards-compatible, though...
Edit: according to the Release Notes, ext4 is the default.Last edited by atreyu; 01-07-2012 at 06:18 PM. Reason: confirmed default


Reply With Quote