LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2014, 04:10 PM   #76
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174

Are you loading a grub reinstall from the USB and is it version 1.99?

I'm going to suggest that you try a GRUB reinstall - normally a dangerous procedure, but you have nothing to lose.

I'm suggesting you do the following (from a USB boot):-
Code:
sudo mount /dev/sda1 /mnt
It could be useful to send to the forum a list of your / directory, which you can do by sending the output of
Code:
ls -lh /mnt
For comparison purposes only, it will look very roughly something like
Code:
drwxr-xr-x   4 root root 4.0K Aug 26 20:47 bin
drwxr-xr-x   3 root root 4.0K Aug 26 15:45 boot
drwxr-xr-x  14 root root 3.3K Sep 18 05:35 dev
drwxrwxr-x 149 root root  12K Sep 17 00:46 etc
drwxr-xr-x   9 root root 4.0K Sep 15 21:48 home
lrwxrwxrwx   1 root root   29 Aug 26 15:33 initrd.img -> /boot/initrd.img-3.11-2-amd64
drwxrwxr-x  24 root root 4.0K Aug 26 15:44 lib
drwxr-xr-x   2 root root 4.0K Feb 27  2014 lib64
drwx------   2 root root  16K Aug 26 15:33 lost+found
drwxr-xr-x   5 root root 4.0K Aug 27 19:47 media
drwxr-xr-x   6 root root 4.0K Sep  4 00:44 mnt
drwxr-xr-x   7 root root 4.0K Sep 16 11:27 opt
dr-xr-xr-x 182 root root    0 Sep 18 05:35 proc
drwx------  15 root root 4.0K Sep 12 23:19 root
drwxr-xr-x  26 root root 1.1K Sep 18 05:35 run
drwxr-xr-x   2 root root  12K Aug 27 23:03 sbin
drwxr-xr-x   2 root root 4.0K Feb 27  2014 srv
-rw-------   1 root root 2.0G Aug 27 20:28 swapfile
dr-xr-xr-x  13 root root    0 Sep 18 05:35 sys
drwxrwxrwt  17 root root  20K Sep 18 20:44 tmp
drwxr-xr-x  11 root root 4.0K Aug 26 20:46 usr
drwxr-xr-x  11 root root 4.0K Feb 27  2014 var
lrwxrwxrwx   1 root root   25 Aug 26 15:33 vmlinuz -> boot/vmlinuz-3.11-2-amd64
If the directory /mnt/etc/grub.d/ contains less than 5 or 6 files, STOP.

If the file /mnt/etc/default/grub is missing or empty, you probably ought to STOP.
otherwise
Code:
sudo grub-install --root-directory=/mnt /dev/sda
sudo umount /mnt
[ I'm assuming your / is on sda1 ]

Make sure you spell everything exactly as written.

Then try booting from disk.......
 
Old 09-18-2014, 04:40 PM   #77
beenlord
Member
 
Registered: Jul 2014
Distribution: mint
Posts: 81

Original Poster
Rep: Reputation: Disabled
heres the result

mint@mint ~ $ ls -lh /mnt
total 112K
drwxr-xr-x 2 root root 4.0K Sep 12 21:55 bin
drwxr-xr-x 3 root root 4.0K Sep 12 21:53 boot
drwxr-xr-x 2 root root 4.0K Sep 12 21:53 cdrom
drwxr-xr-x 4 root root 4.0K Jun 24 10:20 dev
drwxr-xr-x 144 root root 12K Sep 12 21:55 etc
drwxr-xr-x 3 root root 4.0K Sep 12 21:52 home
lrwxrwxrwx 1 root root 33 Sep 12 21:53 initrd.img -> boot/initrd.img-3.13.0-24-generic
drwxr-xr-x 25 root root 4.0K Sep 12 21:55 lib
drwxr-xr-x 2 root root 4.0K Jun 24 09:57 lib64
drwx------ 2 root root 16K Sep 12 21:49 lost+found
drwxr-xr-x 2 root root 4.0K Jun 24 09:57 media
drwxr-xr-x 2 root root 4.0K Apr 10 22:12 mnt
drwxr-xr-x 3 root root 4.0K Jun 24 10:12 opt
drwxr-xr-x 2 root root 4.0K Apr 10 22:12 proc
drwx------ 3 root root 4.0K Sep 12 21:53 root
drwxr-xr-x 12 root root 4.0K Jun 24 10:25 run
drwxr-xr-x 2 root root 12K Sep 12 21:55 sbin
drwxr-xr-x 2 root root 4.0K Jun 24 09:57 srv
drwxr-xr-x 2 root root 4.0K Mar 13 2014 sys
drwxrwxrwt 2 root root 4.0K Sep 12 21:54 tmp
drwxr-xr-x 10 root root 4.0K Jun 24 09:57 usr
drwxr-xr-x 11 root root 4.0K Jun 24 10:26 var
lrwxrwxrwx 1 root root 30 Sep 12 21:53 vmlinuz -> boot/vmlinuz-3.13.0-24-generic

i count more than five things there so i assume its safe

heres the grub install results

sudo grub-install --root-directory=/mnt /dev/sda
grub-probe: error: failed to get canonical path of `/cow'.
Installing for i386-pc platform.
Installation finished. No error reported.
mint@mint ~ $ sudo umount /mnt

and no luck still invalid extent

Last edited by beenlord; 09-18-2014 at 04:46 PM.
 
Old 09-18-2014, 05:22 PM   #78
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
It wasn't able to work - it's that
Quote:
grub-probe: error: failed to get canonical path of `/cow'.
The good news is that you appear to have a proper Linux setup.
The previous procedure can be done with a few extra commands to avoid the /cow problem. I've never had to do it though.

You might like to read http://community.linuxmint.com/tutorial/view/245, and follow the second comment which claims to evade the /cow problem.

Good luck!
 
Old 09-18-2014, 05:55 PM   #79
beenlord
Member
 
Registered: Jul 2014
Distribution: mint
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JeremyBoden View Post
It wasn't able to work - it's that

The good news is that you appear to have a proper Linux setup.
The previous procedure can be done with a few extra commands to avoid the /cow problem. I've never had to do it though.

You might like to read http://community.linuxmint.com/tutorial/view/245, and follow the second comment which claims to evade the /cow problem.

Good luck!
mint@mint ~ $ sudo mount /dev/sda1 /mnt
mount: /dev/sda1 already mounted or /mnt busy
mount: according to mtab, /dev/sda1 is already mounted on /mnt
mint@mint ~ $ mount --bind /proc /mnt/proc
mount: only root can do that
mint@mint ~ $ mount --bind /dev /mnt/dev
mount: only root can do that
mint@mint ~ $ mount --bind /sys /mnt/sys
mount: only root can do that
mint@mint ~ $ sudo -s
mint ~ # mount --bind /proc /mnt/proc
mint ~ # mount --bind /dev /mnt/dev
mint ~ # mount --bind /sys /mnt/sys
mint ~ # chroot /mnt
mint / # grub-install /sda1
Installing for i386-pc platform.
grub-install.real: error: cannot find a GRUB drive for /sda1. Check your device.map.
mint / # -ls
No command '-ls' found, did you mean:
Command 'ils' from package 'sleuthkit' (universe)
Command 'tls' from package 'python-tlslite' (universe)
Command 'als' from package 'atool' (universe)
Command 'hls' from package 'hfsutils' (main)
Command 'jls' from package 'sleuthkit' (universe)
Command 'bls' from package 'bacula-sd' (main)
Command 'i-ls' from package 'integrit' (universe)
Command 'fls' from package 'sleuthkit' (universe)
Command 'ols' from package 'speech-tools' (universe)
Command 'ls' from package 'coreutils' (main)
-ls: command not found
mint / # ls
bin dev initrd.img lost+found opt run sys var
boot etc lib media proc sbin tmp vmlinuz
cdrom home lib64 mnt root srv usr
mint / #

that happened for some reason

Last edited by beenlord; 09-18-2014 at 06:27 PM.
 
Old 09-19-2014, 02:04 PM   #80
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
Reboot from your USB.
All those GRUB reinstall commands should be prefixed with sudo.
 
Old 09-19-2014, 02:17 PM   #81
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
The grub-install command was wrong, should've been
Quote:
grub-install /dev/sda
Also OP was already operating as root.

Last edited by EDDY1; 09-19-2014 at 02:19 PM.
 
Old 09-19-2014, 02:45 PM   #82
beenlord
Member
 
Registered: Jul 2014
Distribution: mint
Posts: 81

Original Poster
Rep: Reputation: Disabled
mint@mint ~ $ sudo -s
mint ~ # mount /dev/sda1 /mnt
mint ~ # mount --bind /proc /mnt/proc
mint ~ # mount --bind /dev /mnt/dev
mint ~ # mount --bind /sys /mnt/sys
mint ~ # chroot /mnt
mint / # grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
mint / # update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
No volume groups found
done
mint / #

i think it may have worked, i'll try rebooting
 
Old 09-19-2014, 02:52 PM   #83
beenlord
Member
 
Registered: Jul 2014
Distribution: mint
Posts: 81

Original Poster
Rep: Reputation: Disabled
nope, still getting invalied extent
 
Old 09-19-2014, 03:16 PM   #84
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Are you sure, that grub didn't install to your usb instead of the hdd? Try booting hdd from usb. If that works unmount & remove usb, then try grub-install.

Last edited by EDDY1; 09-19-2014 at 03:23 PM.
 
Old 09-19-2014, 03:28 PM   #85
beenlord
Member
 
Registered: Jul 2014
Distribution: mint
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
Are you sure, that grub didn't install to your usb instead of the hdd? Try booting hdd from usb. If that works unmount & remove usb, then try grub-install.
well according to gparted, sdb is the name of the memory stick, and sda is the name of the hard drive which is what i mounted to as seen by my first line of text, so i'm not sure how it could have installed to the usb if its supposed to be mounted to the hard drive
 
Old 09-20-2014, 07:00 AM   #86
beenlord
Member
 
Registered: Jul 2014
Distribution: mint
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
Are you sure, that grub didn't install to your usb instead of the hdd? Try booting hdd from usb. If that works unmount & remove usb, then try grub-install.
but regardless i'll try it anyway, so how exactly do i boot my hdd from a usb?

Last edited by beenlord; 09-20-2014 at 07:11 AM.
 
Old 09-20-2014, 08:10 AM   #87
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
If grub is on it you will know it have you booted the usb since the las time you ran those commands?
 
Old 09-20-2014, 08:52 AM   #88
beenlord
Member
 
Registered: Jul 2014
Distribution: mint
Posts: 81

Original Poster
Rep: Reputation: Disabled
yes, i'm running in live boot right now
 
Old 09-20-2014, 01:11 PM   #89
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
If this is an external drive, is the internal drive still connected?
 
Old 09-20-2014, 05:00 PM   #90
beenlord
Member
 
Registered: Jul 2014
Distribution: mint
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
If this is an external drive, is the internal drive still connected?
well i have everything important on my internal drives so i unplugged the data cable so i didn't accidentally overwrite the drive when i installed, i'm not really sure why it matters though, shouldn't linux be able to install fine on its own?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble Formatting Hard Drive in Linux Mint (Trying to Install Another OS) JayReed Linux - Newbie 13 01-21-2014 03:12 PM
Maxtor One Touch 4 USB 500GB External HDD Not showing up in Linux Mint Elyssa nonexist Linux - Hardware 6 12-24-2008 08:58 AM
Freecom 500GB External Hard Drive not visible gilbertt Linux - Hardware 3 11-13-2008 09:02 PM
Installing linux to an external hard drive. xxterrorxx Linux - Newbie 1 08-04-2008 01:51 AM
Linux won't recognize new 500GB Seagate second hard drive Grexsnip Linux - Hardware 6 07-05-2007 11:23 PM


All times are GMT -5. The time now is 08:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration