You are not logged in.

#1 2014-10-26 18:52:17

cezarrangel
Member
Registered: 2013-02-11
Posts: 53

(solved) grub does not recognize the hard disks and partitions

Hello everyone . there are four hard disks installed : 1 ) / dev / sda ( divided into / dev / sda1 - Windows7 , / dev / sda2 - Linux ( / ) , / dev / sda3 - Linux ( / home ) ) 2 ) / dev / sdb ( divided into / dev / sdb1 ( / ) - arch linux , / dev / sdb2 - home of arch linux ( / home ) , / dev / sdb3 swap ) , 3 ) / dev / sdc ( divided into / dev /sdc1- linux ( / ) , / dev / sdc2 - linux ( / home ) ) , and 4 ) / dev / sdd ( divided into / dev / sdd1 - linux ( / ) and / dev / sdd2 linux ( / home ) .

The other disks , / dev / sde and / dev / sdf are external usb hd .
the problem is that  the grub of the arch linux (that is installed on /dev/sdb) is confusing everything . the partitions related to the hard disk / dev / sdb sometimes appear as / dev / sda and / dev / sda as / dev / sdb . sometimes the grub recognizes the swap partition ( which in reality is in / dev / sdb3 ) as if it were in / dev / sdc3 . so if I try to start the system and enter the Graphical on arch linux it is warned that there is no / home ( or not found ) .it seems that this happening as a result of the mess grub is doing .

This all started after / dev / sdd was installed (the fourth hard disk) . I went in the bios and set the / dev / sdb as the high-priority on startup. I did so because the arch linux is installed on /dev/sdb . at other times everything seems ok. but recently I made a whole system updating and after I rebooted all was messy again.

below how is the system with the four hard disks:

bash-4.2# fdisk -l

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: 0x7df3d782

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   613730303   306864128    7  HPFS/NTFS/exFAT
/dev/sda2       613730304   762170903    74220300   83  Linux
/dev/sda3       762170904   976773167   107301132   83  Linux

Disk /dev/sdc: 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 / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x331d968e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        2048   419432447   209715200   83  Linux
/dev/sdc2       419432448  1953525167   767046360   83  Linux

Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x90b5e4e6

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *        2048   104859647    52428800   83  Linux
/dev/sdd2       104859648  3907029167  1901084760   83  Linux

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0x94110a5e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63   167975639    83987788+  83  Linux
/dev/sdb2       167975640   484488269   158256315   83  Linux
/dev/sdb3       484488270   488397167     1954449   82  Linux swap

Disk /dev/sde: 1000.2 GB, 1000194400256 bytes
255 heads, 63 sectors/track, 121600 cylinders, total 1953504688 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: 0x454db989

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1   *        2048  1953503231   976750592    7  HPFS/NTFS/exFAT

Disk /dev/sdf: 1000.2 GB, 1000194400256 bytes
255 heads, 63 sectors/track, 121600 cylinders, total 1953504688 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: 0x34809cdb

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1   *          64  1953503999   976751968    7  HPFS/NTFS/exFAT
bash-4.2#

already tried reinstalling grub and run the configuration of the new grub.cfg but it did not solve the issue . Thanks !

Last edited by cezarrangel (2014-11-19 10:22:15)

Offline

#2 2014-10-26 19:12:38

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,063

Re: (solved) grub does not recognize the hard disks and partitions

You may want to read this article on persistent device naming

I recommend the section on by-UUID


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2014-10-26 19:14:43

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,193
Website

Re: (solved) grub does not recognize the hard disks and partitions

Try using UUIDs (or PARTUUIDs) instead of /dev/sd<x> in grub.cfg, perhaps?


godisnowhere

Offline

#4 2014-10-27 00:33:02

cezarrangel
Member
Registered: 2013-02-11
Posts: 53

Re: (solved) grub does not recognize the hard disks and partitions

thanks. the /etc/fstab file is like below. I think I have to fix it:

/etc/fstab: static file system information
#
# <file system>    <dir>    <type>    <options>    <dump>    <pass>
# UUID=9C7AC58F7AC5671C
#/dev/sda1               /mnt/win7       ntfs            defaults                  0 0

# UUID=33e515b1-4f01-4d50-a0c3-91621b80dbcc
#/dev/sda2               /mnt/slack               ext4            auto,rw,relatime,users    0 1

# UUID=72c5abb8-a79e-4cad-829f-5a96f7217d85
#/dev/sda3              /mnt/slack-home          ext4             auto,rw,relatime,users    0 2

# UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530
/dev/sdb1               /             ext4          rw,relatime       0 1

# UUID=6b1c3042-97aa-46b6-a6cb-b2b9837748a9
/dev/sdb2               /home         ext4          rw,relatime        0 2

# UUID=d039ad96-6474-4492-a9b0-abaf45a8f8c3
/dev/sdb3               none          swap          defaults         0 0

# UUID=0E604C85604C758D
#/dev/sdc1              /mnt/samsung1  ntfs           auto,rw,relatime,users     0 1

# UUID=083818523818415C
#/dev/sdd1             /mnt/samsung2  ntfs           auto,rw,relatime,users     0 1

Offline

#5 2014-10-30 00:18:40

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: (solved) grub does not recognize the hard disks and partitions

Head_on_a_Stick wrote:

Try using UUIDs (or PARTUUIDs) instead of /dev/sd<x> in grub.cfg, perhaps?

This is not the root of the problem:

Persistent naming via file system UUIDs are used by default in GRUB.

It's the fstab.
Here is an example of fstab using UUIDS.

Offline

#6 2014-10-30 23:43:18

cezarrangel
Member
Registered: 2013-02-11
Posts: 53

Re: (solved) grub does not recognize the hard disks and partitions

I have fixed /etc/fstab but it is no use! In fact, now I can access  /dev/sdc1, /dev/sdc2, /dev/sdd1, /dev/sdd2, /dev/sde and /dev/sdf. But after I have rebooted I have realized that fixing /etc/fstab revealed to have been useless.
I still cannot access /dev/sda1 (windows) as well /dev/sdb1 and /dev/sdb2 (where arch linux is installed).
If I try to execute #grub-mkconfig -o /boot/grub/grub.cfg agian there is another mess and I cannot access any partition anymore.
Shoud I edit /boot/grub/grub.cfg? Another doubt: why /etc/grub.d/40_custom is empty. I cannot edit it.
To make things worse, the /boot/grub/menu.lst does not exist anymore...
thanks for your attention.

/etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# UUID=9C7AC58F7AC5671C
#/dev/sda1               /mnt/win7       ntfs            defaults                  0 0

UUID=9C7AC58F7AC5671C /mnt/win7       ntfs            defaults               0 0

# UUID=33e515b1-4f01-4d50-a0c3-91621b80dbcc
#/dev/sda2               /mnt/slack               ext4            auto,rw,relatime,users    0 1

UUID=33e515b1-4f01-4d50-a0c3-91621b80dbcc   /mnt/slack               ext4            rw,relatime,discard,data=ordered    0 1

# UUID=72c5abb8-a79e-4cad-829f-5a96f7217d85
#/dev/sda3              /mnt/slack-home          ext4             auto,rw,relatime,users    0 2

UUID=72c5abb8-a79e-4cad-829f-5a96f7217d85   /mnt/slack-home          ext4             rw,relatime,discard,data=ordered    0 2

# UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530
#/dev/sdb1              /               ext4            rw,relatime        0 1

UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530   /               ext4            rw,relatime,discard,data=ordered        0 1

# UUID=6b1c3042-97aa-46b6-a6cb-b2b9837748a9
#/dev/sdb2              /home           ext4            rw,relatime        0 2

UUID=6b1c3042-97aa-46b6-a6cb-b2b9837748a9   /home           ext4            rw,relatime,discard,data=ordered        0 2

# UUID=d039ad96-6474-4492-a9b0-abaf45a8f8c3
#/dev/sdb3              none            swap            defaults           0 0

UUID=d039ad96-6474-4492-a9b0-abaf45a8f8c3   none            swap            defaults           0 0

UUID=9bb6f931-b14c-4a09-be04-77cf908351b1 /mnt/sdc ext4  rw,relatime,discard,data=ordered    0 1
UUID=4c8e2606-a2dd-4112-9fb5-f2124943d7ce /mnt/sdc-home  ext4             rw,relatime,discard,data=ordered    0 2
UUID=251245f5-041c-49ea-b427-fe18674d7735 /mnt/sdd ext4  rw,relatime,discard,data=ordered    0 1
UUID=999a70ad-7cf7-45f3-9f31-bd892db00836 /mnt/sdd-home  ext4             rw,relatime,discard,data=ordered    0 2

# UUID=0E604C85604C758D
#/dev/sdc1              /mnt/samsung1  ntfs           auto,rw,relatime,users     0 1

UUID=0E604C85604C758D   /mnt/samsung1  ntfs           rw,relatime,discard,data=ordered     0 1
UUID=083818523818415C   /mnt/samsung2  ntfs           rw,relatime,discard,data=ordered     0 1

#UUID=083818523818415C
#/dev/sdd1             /mnt/samsung2  ntfs           auto,rw,relatime,users     0 1

Offline

#7 2014-10-31 00:54:03

dlm1065
Member
Registered: 2014-09-21
Posts: 7

Re: (solved) grub does not recognize the hard disks and partitions

If I were you I'd try the simplest method first

The simplest way to fix this would be to boot from the install disk mount all your partitions and turn your swap on
then delete the current fstab contents  and regenerate fstab like we do in

https://wiki.archlinux.org/index.php/Be … e_an_fstab

Wiki wrote:

genfstab -U -p /mnt >> /mnt/etc/fstab

If you have already done that or it doesn't do it I'd personally go straight to  GPT UUID aka PARTUUID
I have had normal UUID that didn't do it for me before. If PARTUUID doesn't do it then for me it hasn't been a fstab issue.

I usually just take and do a

blkid >> /mnt/etc/fstab

to get the info into the fstab then its just cut and paste see the example on the wiki

https://wiki.archlinux.org/index.php/fstab#GPT_UUIDs

If this doesn't do it I'd check to see you have all your mkinitcpio.conf hooks and modules (lvm2,raid,etc) installed made and configured properly

https://wiki.archlinux.org/index.php/Mkinitcpio
https://wiki.archlinux.org/index.php/Lvm
https://wiki.archlinux.org/index.php/RAID

Luck

Offline

#8 2014-11-03 10:10:00

cezarrangel
Member
Registered: 2013-02-11
Posts: 53

Re: (solved) grub does not recognize the hard disks and partitions

Thanks you so much, dlm1065. Sorry but I still have a doubt: how the command "genfstab -U -p /mnt >> /mnt/etc/fstab" will regenerate the fstab file for the archlinux which is on the partition /dev/sdb1 if I have booted using the install disk to mount my partitions on /mnt?

Offline

#9 2014-11-08 22:22:07

dlm1065
Member
Registered: 2014-09-21
Posts: 7

Re: (solved) grub does not recognize the hard disks and partitions

Missed you post sorry its taken me so long to reply.
The whole purpose of genfstab is to create an fstab it takes the list of what is mounted and creates the fstab in the folder it is directed to.

Since you did not say that you had done any raid or LVM nor anything about UEFI I am assuming you are doing a simple set of mounts?  In your first post you said that

 / dev / sda1 - Windows7 ,
 / dev / sda2 - Linux ( / ) ,
 / dev / sda3 - Linux ( / home )
 / dev / sdb1 ( / arch ) 
 / dev / sdb2 - /home of arch linux 
 / dev / sdb3 swap 
 / dev /sdc1- linux ( / ) ,
 / dev / sdc2 - linux ( / home )
 / dev / sdd1 - linux ( / ) 
 / dev / sdd2 linux ( / home ) .

**warning:do fdisk to be sure these are still the correct partition names I can't be responsible if you use the wrong partition** If they are still the same, just try doing

mkswap /dev/sdb3
swapon /dev/sdb3
mount /dev/sda2 /mnt
mkdir /mnt/home
mount /dev/sda3 /mnt/home
mkdir /mnt/windows
mount -t ntfs-3g /dev/sda1 /mnt/windows
genfstab -U -p /mnt >> /mnt/etc/fstab

Last edited by dlm1065 (2014-11-08 22:40:26)

Offline

#10 2014-11-09 12:40:25

cezarrangel
Member
Registered: 2013-02-11
Posts: 53

Re: (solved) grub does not recognize the hard disks and partitions

thank you so much for you attention dlm1065.

1)Unfortunately, it is no use. For some reason that I cannot identify arch linux (installed in /dev/sdb1 (/) and /dev/sdb2 (/home)), after the installation of /dev/sdd (the fourth hard disk), recognizes the partitions that are in /dev/sdc (the third hard disk) as if they were in /dev/sda. And so, after this first change, it also changes  the recognition of the partitiond that are in /dev/sda (the real one) as if they were in /dev/sdb and the recognition of the partitions of /dev/sdb as if they were in /dev/sdc. And even if I start the using the installation disk it is the same situation. So, for example, the real swap partition is /dev/sdb3 but it is recognized as if it were in /dev/sdc3.

2)Another thing: the genfstab command returns an error message which says the genfstab command does not exist (or is found).

3)Another thing I think it is important to remark: I have other distros installed in /dev/sda2; /dev/sdc1 and /dev/sdd2 (slack linux) and in these partitions the recognition of the partitions and of the disks are perfect, no problema at all. I mean, /dev/sda is recognized as /dev/sda with its correctely partitions and so on.

4) I can even manage to fix grub by using chroot + grub.mkconfig + grub-install. But it does not solve the question because when I enter the grub menu and choose arch linux the mess comes again and I cannot login. I can see that during the initialization of arch linux  the first hard diks that appears is /dev/sdc and after that there is the described hard disk mess and I cannot login. So I cannot run arch linux any more

5)If I enter the console mode in arch linux and try #grub-mkconfig the partitions are recognized in the wrong hard disks like I have described (except /dev/sdd. this is the only hard disk and partitions arch linux recognizes correctly)

Last edited by cezarrangel (2014-11-09 12:48:26)

Offline

#11 2014-11-09 15:37:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,063

Re: (solved) grub does not recognize the hard disks and partitions

As a sanity check, could you post the output of ls -l /dev/disk/by-uuid  ?

Last edited by ewaller (2014-11-09 15:37:29)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#12 2014-11-09 21:29:20

cezarrangel
Member
Registered: 2013-02-11
Posts: 53

Re: (solved) grub does not recognize the hard disks and partitions

thanks ewaller

1)this is the output I got from a partition in which there is slack linux installed. these are the correct partitions and the correct hard disks

bash-4.3# ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Nov  9 19:01 083818523818415C -> ../../sdf1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 0E604C85604C758D -> ../../sde1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 251245f5-041c-49ea-b427-fe18674d7735 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 4c8e2606-a2dd-4112-9fb5-f2124943d7ce -> ../../sdc2
lrwxrwxrwx 1 root root 10 Nov  9 19:01 6271c1d8-f255-45d6-bd64-92dd70ce8193 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Nov  9 19:01 6b1c3042-97aa-46b6-a6cb-b2b9837748a9 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Nov  9 19:01 6ea90d2a-f445-4dc2-88ae-cdedcd2be530 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 999a70ad-7cf7-45f3-9f31-bd892db00836 -> ../../sdd2
lrwxrwxrwx 1 root root 10 Nov  9 19:01 9C7AC58F7AC5671C -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 9bb6f931-b14c-4a09-be04-77cf908351b1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov  9 19:01 fb5a1a10-7a2f-4fa9-b4c9-0d38e87f1c60 -> ../../sda3
bash-4.3#

2)this the output I got from the partition in which arch linux is installed. Comparing with the output above, you can check the partitions recognized by arch linux on the wrong hard disks

#ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Nov  9 19:01 083818523818415C -> ../../sdf1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 0E604C85604C758D -> ../../sde1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 251245f5-041c-49ea-b427-fe18674d7735 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 4c8e2606-a2dd-4112-9fb5-f2124943d7ce -> ../../sdd2
lrwxrwxrwx 1 root root 10 Nov  9 19:01 6271c1d8-f255-45d6-bd64-92dd70ce8193 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Nov  9 19:01 6b1c3042-97aa-46b6-a6cb-b2b9837748a9 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Nov  9 19:01 6ea90d2a-f445-4dc2-88ae-cdedcd2be530 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 999a70ad-7cf7-45f3-9f31-bd892db00836 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov  9 19:01 9C7AC58F7AC5671C -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 9bb6f931-b14c-4a09-be04-77cf908351b1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Nov  9 19:01 fb5a1a10-7a2f-4fa9-b4c9-0d38e87f1c60 -> ../../sdb3
bash-4.3#

I shall warn that only

lrwxrwxrwx 1 root root 10 Nov  9 19:01 083818523818415C -> ../../sdf1
lrwxrwxrwx 1 root root 10 Nov  9 19:01 0E604C85604C758D -> ../../sde1

are correct in both outputs but these are external usb hard disks

Offline

#13 2014-11-09 22:58:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,063

Re: (solved) grub does not recognize the hard disks and partitions

Okay, what I was checking for was whether you had somehow managed to replicate UUID's.  It is possible if you start cloning volumes.   You do not have this problem.

So, the good news is that you UUIDs are correct.   One can assume that the /dev/sdXY  assignments are arbitrary, non-deterministic and capricious.  The UUIDs are "Right".  The random assignments of /dev/sdX are what are "Wrong".  Do not count on the later.  Use nothing but UUIDs in both the boot loader and fstab.   

I realize you have been trying various combinations, but please, share your present grub  configuration and fstab.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#14 2014-11-10 01:16:25

cezarrangel
Member
Registered: 2013-02-11
Posts: 53

Re: (solved) grub does not recognize the hard disks and partitions

1) here is the /etc/fstab:

# /etc/fstab: static file system information
    #
    # <file system> <dir>   <type>  <options>       <dump>  <pass>

    UUID=9C7AC58F7AC5671C /mnt/win7       ntfs            defaults               0 0

    UUID=33e515b1-4f01-4d50-a0c3-91621b80dbcc   /mnt/slack               ext4            rw,relatime,discard,data=ordered    0 1

    UUID=72c5abb8-a79e-4cad-829f-5a96f7217d85   /mnt/slack-home          ext4             rw,relatime,discard,data=ordered    0 2

    UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530   /               ext4            rw,relatime,discard,data=ordered        0 1

    UUID=6b1c3042-97aa-46b6-a6cb-b2b9837748a9   /home           ext4            rw,relatime,discard,data=ordered        0 2

    UUID=d039ad96-6474-4492-a9b0-abaf45a8f8c3   none            swap            defaults           0 0

    UUID=9bb6f931-b14c-4a09-be04-77cf908351b1 /mnt/sdc ext4  rw,relatime,discard,data=ordered    0 1

    UUID=4c8e2606-a2dd-4112-9fb5-f2124943d7ce /mnt/sdc-home  ext4             rw,relatime,discard,data=ordered    0 2

    UUID=251245f5-041c-49ea-b427-fe18674d7735 /mnt/sdd ext4  rw,relatime,discard,data=ordered    0 1

    UUID=999a70ad-7cf7-45f3-9f31-bd892db00836 /mnt/sdd-home  ext4             rw,relatime,discard,data=ordered    0 2

    UUID=0E604C85604C758D   /mnt/samsung1  ntfs           rw,relatime,discard,data=ordered     0 1

    UUID=083818523818415C   /mnt/samsung2  ntfs           rw,relatime,discard,data=ordered     0 1

2) and the /boot/grub/grub.cfg is like below - I shall warn you that I have edited it manually and tried to associate the partitions to the right hard disks but it did not work either (when I try to initialize still the partitions associated to the wrong hard disk and arch linux does not initialize):

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  6ea90d2a-f445-4dc2-88ae-cdedcd2be530
else
  search --no-floppy --fs-uuid --set=root 6ea90d2a-f445-4dc2-88ae-cdedcd2be530
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=pt_BR
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6ea90d2a-f445-4dc2-88ae-cdedcd2be530' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  6ea90d2a-f445-4dc2-88ae-cdedcd2be530
    else
      search --no-floppy --fs-uuid --set=root 6ea90d2a-f445-4dc2-88ae-cdedcd2be530
    fi
    echo    'Carregando o Linux linux...'
    linux    /boot/vmlinuz-linux root=UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530 rw  quiet
    echo    'Carregando o ramdisk inicial...'
    initrd    /boot/initramfs-linux.img
}
submenu 'Opções avançadas para Arch Linux' $menuentry_id_option 'gnulinux-advanced-6ea90d2a-f445-4dc2-88ae-cdedcd2be530' {
    menuentry 'Arch Linux, com o Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-6ea90d2a-f445-4dc2-88ae-cdedcd2be530' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  6ea90d2a-f445-4dc2-88ae-cdedcd2be530
        else
          search --no-floppy --fs-uuid --set=root 6ea90d2a-f445-4dc2-88ae-cdedcd2be530
        fi
        echo    'Carregando o Linux linux...'
        linux    /boot/vmlinuz-linux root=UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530 rw  quiet
        echo    'Carregando o ramdisk inicial...'
        initrd    /boot/initramfs-linux.img
    }
    menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-6ea90d2a-f445-4dc2-88ae-cdedcd2be530' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  6ea90d2a-f445-4dc2-88ae-cdedcd2be530
        else
          search --no-floppy --fs-uuid --set=root 6ea90d2a-f445-4dc2-88ae-cdedcd2be530
        fi
        echo    'Carregando o Linux linux...'
        linux    /boot/vmlinuz-linux root=UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530 rw  quiet
        echo    'Carregando o ramdisk inicial...'
        initrd    /boot/initramfs-linux-fallback.img
    }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdc1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-251245f5-041c-49ea-b427-fe18674d7735' {
    insmod part_msdos
    insmod ext2
    set root='hd2,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  251245f5-041c-49ea-b427-fe18674d7735
    else
      search --no-floppy --fs-uuid --set=root 251245f5-041c-49ea-b427-fe18674d7735
    fi
    linux /boot/vmlinuz-generic-3.10.17 root=/dev/sdc1
}
submenu 'Opções avançadas para Slackware Linux (Slackware 14.1) (em /dev/sdc1)' $menuentry_id_option 'osprober-gnulinux-advanced-251245f5-041c-49ea-b427-fe18674d7735' {
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-generic-3.10.17--251245f5-041c-49ea-b427-fe18674d7735' {
        insmod part_msdos
        insmod ext2
        set root='hd2,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  251245f5-041c-49ea-b427-fe18674d7735
        else
          search --no-floppy --fs-uuid --set=root 251245f5-041c-49ea-b427-fe18674d7735
        fi
        linux /boot/vmlinuz-generic-3.10.17 root=/dev/sdc1
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdc1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.17--251245f5-041c-49ea-b427-fe18674d7735' {
        insmod part_msdos
        insmod ext2
        set root='hd2,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  251245f5-041c-49ea-b427-fe18674d7735
        else
          search --no-floppy --fs-uuid --set=root 251245f5-041c-49ea-b427-fe18674d7735
        fi
        linux /boot/vmlinuz-huge-3.10.17 root=/dev/sdc1
    }
}

menuentry 'Windows 7 (loader) (em /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-9C7AC58F7AC5671C' {
    insmod part_msdos
    insmod ntfs
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  9C7AC58F7AC5671C
    else
      search --no-floppy --fs-uuid --set=root 9C7AC58F7AC5671C
    fi
    chainloader +1
}
menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
    else
      search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
    fi
    linux /boot/vmlinuz root=/dev/sda2
}
submenu 'Opções avançadas para Slackware Linux (Slackware 14.1) (em /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        else
          search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        fi
        linux /boot/vmlinuz root=/dev/sda2
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        else
          search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        fi
        linux /boot/vmlinuz root=/dev/sda2
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-generic--f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        else
          search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        fi
        linux /boot/vmlinuz-generic root=/dev/sdb2
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-generic-3.14.18--f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        else
          search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        fi
        linux /boot/vmlinuz-generic-3.14.18 root=/dev/sdb2
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge--f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        else
          search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        fi
        linux /boot/vmlinuz-huge root=/dev/sda2
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.14.18--f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        else
          search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        fi
        linux /boot/vmlinuz-huge-3.14.18 root=/dev/sda2
    }
}

menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdd1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-9bb6f931-b14c-4a09-be04-77cf908351b1' {
    insmod part_msdos
    insmod ext2
    set root='hd3,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos1 --hint-efi=hd3,msdos1 --hint-baremetal=ahci3,msdos1  9bb6f931-b14c-4a09-be04-77cf908351b1
    else
      search --no-floppy --fs-uuid --set=root 9bb6f931-b14c-4a09-be04-77cf908351b1
    fi
    linux /boot/vmlinuz-generic-3.10.17 root=/dev/sdd1
}
submenu 'Opções avançadas para Slackware Linux (Slackware 14.1) (em /dev/sdd1)' $menuentry_id_option 'osprober-gnulinux-advanced-9bb6f931-b14c-4a09-be04-77cf908351b1' {
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdd1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-generic-3.10.17--9bb6f931-b14c-4a09-be04-77cf908351b1' {
        insmod part_msdos
        insmod ext2
        set root='hd3,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos1 --hint-efi=hd3,msdos1 --hint-baremetal=ahci3,msdos1  9bb6f931-b14c-4a09-be04-77cf908351b1
        else
          search --no-floppy --fs-uuid --set=root 9bb6f931-b14c-4a09-be04-77cf908351b1
        fi
        linux /boot/vmlinuz-generic-3.10.17 root=/dev/sdd1
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdd1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.17--9bb6f931-b14c-4a09-be04-77cf908351b1' {
        insmod part_msdos
        insmod ext2
        set root='hd3,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos1 --hint-efi=hd3,msdos1 --hint-baremetal=ahci3,msdos1  9bb6f931-b14c-4a09-be04-77cf908351b1
        else
          search --no-floppy --fs-uuid --set=root 9bb6f931-b14c-4a09-be04-77cf908351b1
        fi
        linux /boot/vmlinuz-huge-3.10.17 root=/dev/sdd1
    }
}

### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###

3)also, trying to find a solution, I edited /etc/grub.d/40_custom file and entered some information, but it did not work either. the file, after I have edited it was like below:

GNU nano 2.3.6                                                 File: /mnt/arch/etc/grub.d/40_custom                                                                                                         

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

"Entrada para Windows7 em /dev/sda1

menuentry "Windows7" {
insmod ntfs
set root='(hd0,0)'
chainloader +1
}

"Entrada para Slack-14.1-sda2 em /dev/sda2

menuentry "Slack14.1-sda2" {
set root=(hd0,1)
linux /vmlinux root=/dev/sda2 ro quiet splash
initrd /initrd.img
}

"Entrada para Arch em /dev/sdb1

menuentry "Arch" {
set root=(hd1,0)
linux /vmlinuz root=/dev/sdb1 ro quiet splash
}

"Entrada para Slack-14.1 em /dev/sdc1

menuentry "Slack-14.1-sdc1" {
set root=(hd2,0)
linux /vmlinuz root=/dev/sdc1 ro quiet splash
}

"Entrada para Slack-14.1 em /dev/sdd1

menuentry "Slack-14.1-sdd1" {
set root=(hd3,0)
linuz /vmlinuz root=/dev/sdd1 ro quiet splash
}

3)I have noticed that besides the /boot/grub/grub.cfg file there is also a /boot/grub/grub.cfg.new file and it is like this (you can notice that I have not edited this file and the partitions are in the wrong hard disk):

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  6ea90d2a-f445-4dc2-88ae-cdedcd2be530
else
  search --no-floppy --fs-uuid --set=root 6ea90d2a-f445-4dc2-88ae-cdedcd2be530
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=pt_BR
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6ea90d2a-f445-4dc2-88ae-cdedcd2be530' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd2,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  6ea90d2a-f445-4dc2-88ae-cdedcd2be530
    else
      search --no-floppy --fs-uuid --set=root 6ea90d2a-f445-4dc2-88ae-cdedcd2be530
    fi
    echo    'Carregando o Linux linux...'
    linux    /boot/vmlinuz-linux root=UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530 rw  quiet
    echo    'Carregando o ramdisk inicial...'
    initrd    /boot/initramfs-linux.img
}
submenu 'Opções avançadas para Arch Linux' $menuentry_id_option 'gnulinux-advanced-6ea90d2a-f445-4dc2-88ae-cdedcd2be530' {
    menuentry 'Arch Linux, com o Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-6ea90d2a-f445-4dc2-88ae-cdedcd2be530' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd2,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  6ea90d2a-f445-4dc2-88ae-cdedcd2be530
        else
          search --no-floppy --fs-uuid --set=root 6ea90d2a-f445-4dc2-88ae-cdedcd2be530
        fi
        echo    'Carregando o Linux linux...'
        linux    /boot/vmlinuz-linux root=UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530 rw  quiet
        echo    'Carregando o ramdisk inicial...'
        initrd    /boot/initramfs-linux.img
    }
    menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-6ea90d2a-f445-4dc2-88ae-cdedcd2be530' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd2,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1  6ea90d2a-f445-4dc2-88ae-cdedcd2be530
        else
          search --no-floppy --fs-uuid --set=root 6ea90d2a-f445-4dc2-88ae-cdedcd2be530
        fi
        echo    'Carregando o Linux linux...'
        linux    /boot/vmlinuz-linux root=UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530 rw  quiet
        echo    'Carregando o ramdisk inicial...'
        initrd    /boot/initramfs-linux-fallback.img
    }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-251245f5-041c-49ea-b427-fe18674d7735' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  251245f5-041c-49ea-b427-fe18674d7735
    else
      search --no-floppy --fs-uuid --set=root 251245f5-041c-49ea-b427-fe18674d7735
    fi
    linux /boot/vmlinuz-generic-3.10.17 root=/dev/sda1
}
submenu 'Opções avançadas para Slackware Linux (Slackware 14.1) (em /dev/sda1)' $menuentry_id_option 'osprober-gnulinux-advanced-251245f5-041c-49ea-b427-fe18674d7735' {
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-generic-3.10.17--251245f5-041c-49ea-b427-fe18674d7735' {
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  251245f5-041c-49ea-b427-fe18674d7735
        else
          search --no-floppy --fs-uuid --set=root 251245f5-041c-49ea-b427-fe18674d7735
        fi
        linux /boot/vmlinuz-generic-3.10.17 root=/dev/sda1
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.17--251245f5-041c-49ea-b427-fe18674d7735' {
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  251245f5-041c-49ea-b427-fe18674d7735
        else
          search --no-floppy --fs-uuid --set=root 251245f5-041c-49ea-b427-fe18674d7735
        fi
        linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda1
    }
}

menuentry 'Windows 7 (loader) (em /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-9C7AC58F7AC5671C' {
    insmod part_msdos
    insmod ntfs
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  9C7AC58F7AC5671C
    else
      search --no-floppy --fs-uuid --set=root 9C7AC58F7AC5671C
    fi
    chainloader +1
}
menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
    else
      search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
    fi
    linux /boot/vmlinuz root=/dev/sdb2
}
submenu 'Opções avançadas para Slackware Linux (Slackware 14.1) (em /dev/sdb2)' $menuentry_id_option 'osprober-gnulinux-advanced-f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        else
          search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        fi
        linux /boot/vmlinuz root=/dev/sdb2
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        else
          search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        fi
        linux /boot/vmlinuz root=/dev/sdb2
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-generic--f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        else
          search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        fi
        linux /boot/vmlinuz-generic root=/dev/sdb2
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-generic-3.14.18--f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        else
          search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        fi
        linux /boot/vmlinuz-generic-3.14.18 root=/dev/sdb2
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge--f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        else
          search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        fi
        linux /boot/vmlinuz-huge root=/dev/sdb2
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.14.18--f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6' {
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        else
          search --no-floppy --fs-uuid --set=root f42bce9b-4e25-4fd1-9b6b-8cd5c22134c6
        fi
        linux /boot/vmlinuz-huge-3.14.18 root=/dev/sdb2
    }
}

menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdd1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-9bb6f931-b14c-4a09-be04-77cf908351b1' {
    insmod part_msdos
    insmod ext2
    set root='hd3,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos1 --hint-efi=hd3,msdos1 --hint-baremetal=ahci3,msdos1  9bb6f931-b14c-4a09-be04-77cf908351b1
    else
      search --no-floppy --fs-uuid --set=root 9bb6f931-b14c-4a09-be04-77cf908351b1
    fi
    linux /boot/vmlinuz-generic-3.10.17 root=/dev/sdd1
}
submenu 'Opções avançadas para Slackware Linux (Slackware 14.1) (em /dev/sdd1)' $menuentry_id_option 'osprober-gnulinux-advanced-9bb6f931-b14c-4a09-be04-77cf908351b1' {
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdd1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-generic-3.10.17--9bb6f931-b14c-4a09-be04-77cf908351b1' {
        insmod part_msdos
        insmod ext2
        set root='hd3,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos1 --hint-efi=hd3,msdos1 --hint-baremetal=ahci3,msdos1  9bb6f931-b14c-4a09-be04-77cf908351b1
        else
          search --no-floppy --fs-uuid --set=root 9bb6f931-b14c-4a09-be04-77cf908351b1
        fi
        linux /boot/vmlinuz-generic-3.10.17 root=/dev/sdd1
    }
    menuentry 'Slackware Linux (Slackware 14.1) (em /dev/sdd1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.17--9bb6f931-b14c-4a09-be04-77cf908351b1' {
        insmod part_msdos
        insmod ext2
        set root='hd3,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos1 --hint-efi=hd3,msdos1 --hint-baremetal=ahci3,msdos1  9bb6f931-b14c-4a09-be04-77cf908351b1
        else
          search --no-floppy --fs-uuid --set=root 9bb6f931-b14c-4a09-be04-77cf908351b1
        fi
        linux /boot/vmlinuz-huge-3.10.17 root=/dev/sdd1
    }
}

### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

"Entrada para Windows7 em /dev/sda1

menuentry "Windows7" {
insmod ntfs
set root='(hd0,0)'
chainloader +1
}

"Entrada para Slack-14.1-sda2 em /dev/sda2

menuentry "Slack14.1-sda2" {
set root=(hd0,1)
linux /vmlinux root=/dev/sda2 ro quiet splash
initrd /initrd.img
}

"Entrada para Arch em /dev/sdb1

menuentry "Arch" {
set root=(hd1,0)
linux /vmlinuz root=/dev/sdb1 ro quiet splash
}

"Entrada para Slack-14.1 em /dev/sdc1

menuentry "Slack-14.1-sdc1" {
set root=(hd2,0)
linux /vmlinuz root=/dev/sdc1 ro quiet splash
}

"Entrada para Slack-14.1 em /dev/sdd1

menuentry "Slack-14.1-sdd1" {
set root=(hd3,0)
linuz /vmlinuz root=/dev/sdd1 ro quiet splash
}
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###

4)finally there is the /boot/grub/grub.cfg.example that shows the arch partition in the correct hard disk (/dev/sdb1 or (hd1,0):

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  6ea90d2a-f445-4dc2-88ae-cdedcd2be530
else
  search --no-floppy --fs-uuid --set=root 6ea90d2a-f445-4dc2-88ae-cdedcd2be530
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=pt_BR
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6ea90d2a-f445-4dc2-88ae-cdedcd2be530' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  6ea90d2a-f445-4dc2-88ae-cdedcd2be530
    else
      search --no-floppy --fs-uuid --set=root 6ea90d2a-f445-4dc2-88ae-cdedcd2be530
    fi
    echo    'Carregando o Linux linux...'
    linux    /boot/vmlinuz-linux root=UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530 rw  quiet
    echo    'Carregando o ramdisk inicial...'
    initrd    /boot/initramfs-linux.img
}
submenu 'Opções avançadas para Arch Linux' $menuentry_id_option 'gnulinux-advanced-6ea90d2a-f445-4dc2-88ae-cdedcd2be530' {
    menuentry 'Arch Linux, com o Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-6ea90d2a-f445-4dc2-88ae-cdedcd2be530' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  6ea90d2a-f445-4dc2-88ae-cdedcd2be530
        else
          search --no-floppy --fs-uuid --set=root 6ea90d2a-f445-4dc2-88ae-cdedcd2be530
        fi
        echo    'Carregando o Linux linux...'
        linux    /boot/vmlinuz-linux root=UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530 rw  quiet
        echo    'Carregando o ramdisk inicial...'
        initrd    /boot/initramfs-linux.img
    }
    menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-6ea90d2a-f445-4dc2-88ae-cdedcd2be530' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  6ea90d2a-f445-4dc2-88ae-cdedcd2be530
        else
          search --no-floppy --fs-uuid --set=root 6ea90d2a-f445-4dc2-88ae-cdedcd2be530
        fi
        echo    'Carregando o Linux linux...'
        linux    /boot/vmlinuz-linux root=UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530 rw  quiet
        echo    'Carregando o ramdisk inicial...'
        initrd    /boot/initramfs-linux-fallback.img
    }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###

Last edited by cezarrangel (2014-11-10 09:12:54)

Offline

#15 2014-11-19 10:26:42

cezarrangel
Member
Registered: 2013-02-11
Posts: 53

Re: (solved) grub does not recognize the hard disks and partitions

I thank you guys for your attention and help. The issue has been finally solved. Before the final solution I changed the position of the hard disks connections to the mother board. but the arch system still recognized  the hd and the partitions /dev/sdb as /dev/sdc. The only it recognizes correctly is in case there are only 2 hd: /dev/sda and /dev/sdb. If I install the 4 hd the arch system recognize the partitions and hd wrongly.

However, in the end I tried to change the options of the fstab file to defaults and also to comment the entries that refer to the usb external hd. and voilá. the solutions was easier than I had expected. now I can initialize arch system. I must remark that arch system still recognizes /dev/sdb as /dev/sdc but it does not prevent the arch system to initialize.

maybe because I am not using arch grub anymore. now I am using another distro grub (the distro that is in /dev/sda2).

1) this the /etc/fstab by which I could not initialize the arch system

# /etc/fstab: static file system information
    #
    # <file system> <dir>   <type>  <options>       <dump>  <pass>

    UUID=9C7AC58F7AC5671C  /mnt/win7       ntfs            defaults               0 0

    UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530   /mnt/sdb1      ext4            rw,relatime,discard,data=ordered    0 1

    UUID=6b1c3042-97aa-46b6-a6cb-b2b9837748a9   /mnt/sdb2  ext4            rw,relatime,discard,data=ordered    0 2

    UUID=a4818efe-2e15-4599-8797-c4f269329eaf   /               ext4            rw,relatime,discard,data=ordered        0 1

    UUID=61d3b5c3-ed2b-4b79-bf39-2cca39fb31df   /home           ext4            rw,relatime,discard,data=ordered        0 2

    UUID=288da68b-4e45-4da1-918d-41396b6f10a5   swap            swap            defaults           0 0

    UUID=9bb6f931-b14c-4a09-be04-77cf908351b1 /mnt/sdc1 ext4  rw,relatime,discard,data=ordered    0 1

    UUID=4c8e2606-a2dd-4112-9fb5-f2124943d7ce /mnt/sdc2  ext4             rw,relatime,discard,data=ordered    0 2

    UUID=251245f5-041c-49ea-b427-fe18674d7735 /mnt/sdd1 ext4  rw,relatime,discard,data=ordered    0 1

    UUID=999a70ad-7cf7-45f3-9f31-bd892db00836 /mnt/sdd2  ext4             rw,relatime,discard,data=ordered    0 2

    UUID=0E604C85604C758D   /mnt/sde1  ntfs           rw,relatime,discard,data=ordered     0 1

    UUID=083818523818415C   /mnt/sdf1  ntfs           rw,relatime,discard,data=ordered     0 1

2) this the /etc/fstab by wichi I can initialize the arch system (even though it sitll recognizes /dev/sdb as /dev/sdc). I changed the options to defaults and commented the usb external hd entries...

# /etc/fstab: static file system information
    #
    # <file system> <dir>   <type>  <options>       <dump>  <pass>

    UUID=9C7AC58F7AC5671C                      /mnt/win7       ntfs            defaults        0 0

    UUID=a4818efe-2e15-4599-8797-c4f269329eaf  /               ext4            defaults        0 1

    UUID=61d3b5c3-ed2b-4b79-bf39-2cca39fb31df  /home           ext4            defaults        0 2

    UUID=6ea90d2a-f445-4dc2-88ae-cdedcd2be530  /mnt/sdb1       ext4            defaults        0 1

    UUID=6b1c3042-97aa-46b6-a6cb-b2b9837748a9  /mnt/sdb2       ext4            defaults        0 2

    UUID=288da68b-4e45-4da1-918d-41396b6f10a5  swap            swap            defaults        0 0

    UUID=9bb6f931-b14c-4a09-be04-77cf908351b1  /mnt/sdc1       ext4            defaults        0 1

    UUID=4c8e2606-a2dd-4112-9fb5-f2124943d7ce  /mnt/sdc2       ext4            defaults        0 2

    UUID=251245f5-041c-49ea-b427-fe18674d7735  /mnt/sdd1       ext4            defaults        0 1

    UUID=999a70ad-7cf7-45f3-9f31-bd892db00836  /mnt/sdd2       ext4            defaults        0 2

##    UUID=0E604C85604C758D                      /mnt/sde1       ntfs            rw,data=ordered        0 1

##    UUID=083818523818415C                      /mnt/sdf1       ntfs            rw,data=ordered        0 1

    /dev/cdrom                                 /mnt/cdrom      auto            noauto,owner,ro,comment=x-gvfs-show 0   0
    /dev/fd0                                   /mnt/flopp      auto            noauto,owner                   0   0
    devpts                                     /dev/pts        devpts          gid=5,mode=620                 0   0
    proc                                       /proc           proc            defaults                       0   0
    tmpfs                                      /dev/shm        tmpfs           defaults                       0   0

I do not know if I use again the arch grub again, applying the changes to the arch grub, the system will initialize too...I have to try it...

Last edited by cezarrangel (2014-11-23 15:57:15)

Offline

Board footer

Powered by FluxBB