• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Mint 12 no grub

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Sony190

Member
Joined
Dec 21, 2006
I have the files loaded on pc. I manually mounted partition
the partition is not sda it is dm-6 and I cannot get grub installed.
Any ideas what is wrong ?
used
sudo apt-get install grub
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
grub-legacy-doc mdadm
The following packages will be REMOVED:
grub-gfxpayload-lists grub-pc grub2-common
The following NEW packages will be installed:
grub
0 upgraded, 1 newly installed, 3 to remove and 233 not upgraded.
Need to get 865 kB of archives.
After this operation, 1,544 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ oneiric/main grub amd64 0.97-29ubuntu64 [865 kB]
Fetched 865 kB in 1s (437 kB/s)
Preconfiguring packages ...
(Reading database ... 166483 files and directories currently installed.)
Removing grub-gfxpayload-lists ...
Removing grub-pc ...
Removing grub2-common ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Selecting previously deselected package grub.
(Reading database ... 166448 files and directories currently installed.)
Unpacking grub (from .../grub_0.97-29ubuntu64_amd64.deb) ...
Processing triggers for man-db ...
Setting up grub (0.97-29ubuntu64) ...

System still did not boot linux.



Tried this command:
sudo grub-install --root-directory=/mnt /dev/sdX
got error message
 
Why are you reverting to the old grub?

Thought I would try it and see if it would work did not realize it was the old grub.




/dev/mapper/pdc_ebbhcdfcae
/dev/mapper/pdc_ebbhcdfcae1 ntfs 524 mb
/dev/mapper/pdc_ebbhcdfcae2 ntfs 246 mb
/dev/mapper/pdc_ebbhcdfcae5 swap 4999mb 0mb
/dev/mapper/pdc_ebbhcdfcae4 ext4 129mb
unusable 94 mb
/dev/mapper/pdc_ijhieefaf
/dev/mapper/pdc_ ijhieefaf1 ntfs 999mb
free space 11mb



/dev/mapper/pdc_ebbhcdfcae Linux device mapper (striped) (1.0 tb)
/dev/mapper/pdc_ebbhcdfcae1
/dev/mapper/pdc_ebbhcdfcae2
/dev/mapper/pdc_ebbhcdfcae
/dev/mapper/pdc_ebbhcdfcae1 ntfs 524 mb
/dev/mapper/pdc_ebbhcdfcae2 ntfs 246 mb
/dev/mapper/pdc_ebbhcdfcae5 swap 4999mb 0mb
/dev/mapper/pdc_ebbhcdfcae4 ext4 129mb
unusable 94 mb
/dev/mapper/pdc_ijhieefaf
/dev/mapper/pdc_ ijhieefaf1 ntfs 999mb
free space 11mb


This is what the installation box looks like before Install
/dev/mapper/pdc_ebbhcdfcae Linux device mapper (striped) (1.0 tb)
/dev/mapper/pdc_ebbhcdfcae1
/dev/mapper/pdc_ebbhcdfcae2
/dev/mapper/pdc_ebbhcdfcae4 linux mint


/dev/mapper/pdc_ijhieefaf Linux device mapper (striped) (1000. tb)
/dev/mapper/pdc_ijhieefaf1 Windows recovery environment (loader)
/dev/sda


I chose /dev/sda
when asked where to put boot files but No grub

Redid system chose /dev/mapper/pdc_ebbhcdfcae4 linux mint for boot
erased everything in this partition reinstalled

went to install grub with /dev/sdaX still no grub

found the mount point /dev/dm-6 mounted
now I cant get any command to install Grub
 
Last edited:
whenever you are posting output please use
Code:
 tags it makes your posts much easier to read

as for your problem. All of that output in your post... where did you get that? from which command.

Can you please clean up your post a bit so we can help you better
 
First, try re-installing grub-pc (and grub2-common and grub-gfxpayload-lists if they're not automatically grabbed), then sudo update-grub, then sudo grub-install /dev/sda. Then, you can post any error messages if it doesn't work.
 
First, try re-installing grub-pc (and grub2-common and grub-gfxpayload-lists if they're not automatically grabbed), then sudo update-grub, then sudo grub-install /dev/sda. Then, you can post any error messages if it doesn't work.

Will Try thanks

Code:
I used sudo mount /dev/sda  to mount the partition.Then you put the code to install the Grub.   I found the partition  to be name dm-5
and the system keeps telling me that the partion is not valid
This is the error codes

mint@mint ~ $ sudo mount /dev/sda /mnt 
mount: unknown filesystem type 'promise_fasttrack_raid_member'
 
can you type

Code:
sudo fdisk -l

Usually you dont mount /dev/sda (which refers to the entire hard drive) but rather /dev/sda1 (a partition on the hard drive) for example
 
You don't have to mount anything for grub-install. It writes to the boot sector of the drive directly, not any partition.
 
If you're doing anything complicated like a dm setup it always pays to have a small (200MB) ext2/ext3 partition at sda1 or at most a dm RAID1 of two such partitions like sda1 and sdb1 and put /boot there.
That way you have the option of setting up your root partition any way you want it. This also makes it easier to align the partitions for 4k drives or SSDs.
 
received error messages when I used


sudo fdisk-l

Code:
 Partition table entries are not in disk order 

Disk /dev/mapper/pdc_ebbhcdfcae4: 130.0 GB, 129999962112 bytes 
255 heads, 63 sectors/track, 15804 cylinders, total 253906176 sectors 
Units = sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes / 512 bytes 
I/O size (minimum/optimal): 65536 bytes / 131072 bytes 
Disk identifier: 0x00000000 

Disk /dev/mapper/pdc_ebbhcdfcae4 doesn't contain a valid partition table 

Disk /dev/mapper/pdc_ebbhcdfcae5: 4999 MB, 4999872512 bytes 
255 heads, 63 sectors/track, 607 cylinders, total 9765376 sectors 
Units = sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes / 512 bytes 
I/O size (minimum/optimal): 65536 bytes / 131072 bytes 
Disk identifier: 0x00000000 

Disk /dev/mapper/pdc_ebbhcdfcae5 doesn't contain a valid partition table 
mint@mint ~ $ sudo mount /dev/sdXY /mnt 
mount: special device /dev/sdXY does not exist 
mint@mint ~ $ eeror

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0xed7af6d8 

Disk /dev/sda doesn't contain a valid partition table 

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x0001ea77 

   Device Boot      Start         End      Blocks   Id  System 
/dev/sdb1   *          63  1953102374   976551156    7  HPFS/NTFS/exFAT 

Disk /dev/mapper/pdc_ijhieefaf: 1000.0 GB, 999999930368 bytes 
255 heads, 63 sectors/track, 121576 cylinders, total 1953124864 sectors 
Units = sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes / 512 bytes 
I/O size (minimum/optimal): 65536 bytes / 131072 bytes 
Disk identifier: 0x0001ea77 

                    Device Boot      Start         End      Blocks   Id  System 
/dev/mapper/pdc_ijhieefaf1   *          63  1953102374   976551156    7  HPFS/NTFS/exFAT 
Partition 1 does not start on physical sector boundary. 

Disk /dev/mapper/pdc_ebbhcdfcae: 1000.3 GB, 1000275574784 bytes 
255 heads, 63 sectors/track, 121609 cylinders, total 1953663232 sectors 
Units = sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes / 512 bytes 
I/O size (minimum/optimal): 65536 bytes / 131072 bytes 
Disk identifier: 0x22c821e3 

                     Device Boot      Start         End      Blocks   Id  System 
/dev/mapper/pdc_ebbhcdfcae1              63  1023999164   511999551    7  HPFS/NTFS/exFAT 
Partition 1 does not start on physical sector boundary. 
/dev/mapper/pdc_ebbhcdfcae2      1024000000  1505273855   240636928    7  HPFS/NTFS/exFAT 
/dev/mapper/pdc_ebbhcdfcae3      1505274110  1515039487     4882689    5  Extended 
Partition 3 does not start on physical sector boundary. 
/dev/mapper/pdc_ebbhcdfcae4      1515039488  1768945663   126953088   83  Linux 
/dev/mapper/pdc_ebbhcdfcae5      1505274112  1515039487     4882688   82  Linux swap / Solaris 

Disk /dev/mapper/pdc_ijhieefaf1: 1000.0 GB, 999988383744 bytes 
255 heads, 63 sectors/track, 121574 cylinders, total 1953102312 sectors 
Units = sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes / 512 bytes 
I/O size (minimum/optimal): 65536 bytes / 131072 bytes 
Alignment offset: 33280 bytes 
Disk identifier: 0x6e697373 

This doesn't look like a partition table 
Probably you selected the wrong device. 

                      Device Boot      Start         End      Blocks   Id  System 
/dev/mapper/pdc_ijhieefaf1p1   ?  1936269394  3772285809   918008208   4f  QNX4.x 3rd part 
Partition 1 does not start on physical sector boundary. 
/dev/mapper/pdc_ijhieefaf1p2   ?  1917848077  2462285169   272218546+  73  Unknown 
Partition 2 does not start on physical sector boundary. 
/dev/mapper/pdc_ijhieefaf1p3   ?  1818575915  2362751050   272087568   2b  Unknown 
Partition 3 does not start on physical sector boundary. 
/dev/mapper/pdc_ijhieefaf1p4   ?  2844524554  2844579527       27487   61  SpeedStor 
Partition 4 does not start on physical sector boundary. 

Partition table entries are not in disk order 

Disk /dev/mapper/pdc_ebbhcdfcae1: 524.3 GB, 524287540224 bytes 
255 heads, 63 sectors/track, 63740 cylinders, total 1023999102 sectors 
Units = sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes / 512 bytes 
I/O size (minimum/optimal): 65536 bytes / 131072 bytes 
Alignment offset: 33280 bytes 
Disk identifier: 0x69205244 

This doesn't look like a partition table 
Probably you selected the wrong device. 

                       Device Boot      Start         End      Blocks   Id  System 
/dev/mapper/pdc_ebbhcdfcae1p1   ?   218129509  1920119918   850995205   72  Unknown 
Partition 1 does not start on physical sector boundary. 
/dev/mapper/pdc_ebbhcdfcae1p2   ?   729050177  1273024900   271987362   74  Unknown 
/dev/mapper/pdc_ebbhcdfcae1p3   ?   168653938   168653938           0   65  Novell Netware 386 
Partition 3 does not start on physical sector boundary. 
/dev/mapper/pdc_ebbhcdfcae1p4      2692939776  2692991410       25817+   0  Empty 
Partition 4 does not start on physical sector boundary. 

Partition table entries are not in disk order 

Disk /dev/mapper/pdc_ebbhcdfcae2: 246.4 GB, 246412214272 bytes 
255 heads, 63 sectors/track, 29957 cylinders, total 481273856 sectors 
Units = sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes / 512 bytes 
I/O size (minimum/optimal): 65536 bytes / 131072 bytes 
Disk identifier: 0x6e697373 

This doesn't look like a partition table 
Probably you selected the wrong device. 

                       Device Boot      Start         End      Blocks   Id  System 
/dev/mapper/pdc_ebbhcdfcae2p1   ?  1936269394  3772285809   918008208   4f  QNX4.x 3rd part 
Partition 1 does not start on physical sector boundary. 
/dev/mapper/pdc_ebbhcdfcae2p2   ?  1917848077  2462285169   272218546+  73  Unknown 
Partition 2 does not start on physical sector boundary. 
/dev/mapper/pdc_ebbhcdfcae2p3   ?  1818575915  2362751050   272087568   2b  Unknown 
Partition 3 does not start on physical sector boundary. 
/dev/mapper/pdc_ebbhcdfcae2p4   ?  2844524554  2844579527       27487   61  SpeedStor 
Partition 4 does not start on physical sector boundary.
 
This is the Hard drives line up in Disk utility

Sata Host Adapter
1Tb Hard disk dev/sda
1Tb Hard Disk dev/sdb
cd/dvd dDrive /dev/sr1

Pata Host Adapter
cd/DVD rom /dev/sr0

1000GB Hard disk /dev/dm-0
1.0Tb Hard Disk /dev/dm-1
1000Gb Hard Disk /dev/dm-3
524Gb /dev/dm-4
244 Gb/dev/dm-5
225Gb /dev/dm-6
5Gb /dev/dm-7
1Gb file
filesystem.squashfs /dev/loop0

error messages
Code:
mint@mint ~ $ find /boot/grub/stage1 
find: `/boot/grub/stage1': No such file or directory 
mint@mint ~ $ sudo mount /dev/sda /mnt 
mount: unknown filesystem type 'promise_fasttrack_raid_member' 
mint@mint ~ $ sudo mount /dev/sdb /mnt 
mount: unknown filesystem type 'promise_fasttrack_raid_member' 
mint@mint ~ $ sudo mount /dev/dm-0 /mnt 
mount: /dev/mapper/pdc_ijhieefaf already mounted or /mnt busy 
mint@mint ~ $ sudo mount /dev/dm-1 /mnt 
mount: /dev/mapper/pdc_ebbhcdfcae already mounted or /mnt busy 
mint@mint ~ $ sudo mount /dev/dm-3 /mnt 
mint@mint ~ $ sudo mount /dev/dm-4 /mnt 
mint@mint ~ $ sudo mount /dev/dm-5 /mnt 
mint@mint ~ $ sudo mount /dev/dm-6 /mnt 
mint@mint ~ $ sudo mount /dev/dm-7 /mnt 
/dev/mapper/pdc_ebbhcdfcae5 looks like swapspace - not mounted 
mount: you must specify the filesystem type



From what I can see the fast track raid software is blocking everything from being mounted because its not recognized by mint

Also the host adapter says its in raid5 mode when it should be raid 0
Why is that?
 
rrohbeck

Are you talking about mdadm command ?
It doesnt work in Mint 12
 
Grub errors

System does not recognize sda1 nor sdb1




This is what I received for anwser when I tried to install Grub on all devices



Code:
grub-install /dev/sda 
unshare failed: Operation not permitted 
grub-probe: error: cannot find a device for /boot (is /dev mounted?). 
cp: cannot create regular file `/boot/grub/915resolution.mod': Permission denied 

grub-install /dev/sdb 
unshare failed: Operation not permitted 
grub-probe: error: cannot find a device for /boot (is /dev mounted?). 
cp: cannot create regular file `/boot/grub/915resolution.mod': Permission denied
 
try this
Code:
 aptitude search mdadm
p   mdadm                                                                                  - tool to administer Linux MD arrays (software RAID)

If you have a "p" like I do that means the raid software is not installed. If you have an "I" then you have the software and we will look elsewhere
 
Have to take another approach

When I made this Raid Array I made 2 independent arrays of raid 0. Apparrently this does not work with Linux, every other windows OS has no problem with this arrangement.
I really dont want to have to reactive the old 320 SCSI Hdds but I think it is worth it to try.
It would be better than reformatting this raid array.
So I Thanksfor all the help I will get back to you later in the day.
 
Alright redid raid Array Igb Win Xp 800 empty, 186Gb
Intalled Mint 12 Got the files and grub installed or parts of grub and I this because at boot up I get the grub prompt Flags say it is the Boot drive

I put command Fdisk and error wascommand not found



Code:
mint@mint ~ $ sudo mount /dev/sda1 /mnt 

mint@mint ~ $ udo grub-install --root-directory=/mnt /dev/sda 

The program 'udo' is currently not installed.  You can install it by typing:

sudo apt-get install udo

mint@mint ~ $ sudo grub-install --root-directory=/mnt /dev/sda 

grub-probe: error: cannot find a device for /boot (is /dev mounted?).

Installation finished. No error reported.

mint@mint ~ $ sudo grub-install --root-directory=/mnt /dev/sda1 

grub-probe: error: cannot find a device for /boot (is /dev mounted?).

/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition.  This is a BAD idea..

/usr/sbin/grub-setup: warn: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..

/usr/sbin/grub-setup: error: will not proceed with blocklists.

mint@mint ~ $ grub-install /dev/sda

unshare failed: Operation not permitted

grub-probe: error: cannot find a device for /boot (is /dev mounted?).

cp: cannot create regular file `/boot/grub/915resolution.mod': Permission denied

mint@mint ~ $ grub-install /dev/sda1

unshare failed: Operation not permitted

grub-probe: error: cannot find a device for /boot (is /dev mounted?).

cp: cannot create regular file `/boot/grub/915resolution.mod': Permission denied

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 ~ $ sudo grub-install --root-directory=/mnt /dev/sda 

grub-probe: error: cannot find a device for /boot (is /dev mounted?).

Installation finished. No error reported.

mint@mint ~ $ sudo grub-install --root-directory=/mnt /dev/sdb1

grub-probe: error: cannot find a device for /boot (is /dev mounted?).

/usr/sbin/grub-setup: error: unable to identify a filesystem in hd1; safety check can't be performed.




mint@mint ~ $ sudo grub-install

grub-probe: error: cannot find a device for /boot (is /dev mounted?).

install_device not specified.

Usage: grub-install.real [OPTION] install_device

Install GRUB on your drive.
 
Almost got everything working right


Code:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x00024604

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   390625279   195311616   83  Linux
/dev/sda2       390625280   391208959      291840   82  Linux swap / Solaris

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x0001ea77

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63  1953102374   976551156    7  HPFS/NTFS/exFAT
 
If you're trying to use the Promise RAID then it probably won't work under Linux (check the Promise web site.)
SO you'll have to turn all Promise RAID functionality off and use your disks as a JBOD (Just A Bunch of Drives.) Hopefully that'll work. They should show up as independent disks if you enter "blkid".
From there, delete any proprietary crap by dd'ing zeroes over the drives and start with fdisk.
 
One question if I put the Linux Mint on A scsi Device How are the Drivers installed I have an Adaptec 29320 AR ? Is the ADriver Source Code for Linux Kernel the same as a regular driver?
 
One question if I put the Linux Mint on A scsi Device How are the Drivers installed I have an Adaptec 29320 AR ? Is the ADriver Source Code for Linux Kernel the same as a regular driver?

I don't understand the question but the Linux kernel has had support for these SCSI HBAs for ears.
 
Back