You are not logged in.

#1 2011-05-17 10:15:11

jocom
Member
Registered: 2009-04-29
Posts: 74

[Solved] Mounting second hard drive (with data that should not be e...

Hi,

At the moment I'm reinstalling Arch. But this time I've got a second hard drive with all my audio on it. Where in the installation process should I deal with it?
Actually it is a drive with two partitions on it, which I mounted on /srv and /opt on my previous system. So should I deal with this after the installation, or during the installation.

During the installation you come to the place where you can format hard drives etc... Should I there give these partitions a new filesytem and mount them? Or just I leave the drive untouched, till the install is finished...

Thank you,
jocom

Last edited by jocom (2011-05-19 21:34:54)

Offline

#2 2011-05-17 11:01:30

siriusb
Member
From: Hungary
Registered: 2010-01-01
Posts: 422

Re: [Solved] Mounting second hard drive (with data that should not be e...

You shouldn't touch them during installation. I don't know why your partitions which contains only data (audio files) were mounted into /opt and /srv, but I'm sure you had your reasons.  I'd mount them into /media.

Do not create new filesystems on partitions (or format them) if you have data on them and don't want to lose them. Why don't you just install Arch and when you are finished, mount those partitions.

If you are unsure what you are doing I strongly advise unplug the data cable of this (data) hdd before installing Arch just to be on the safe side.

Offline

#3 2011-05-17 11:58:18

jocom
Member
Registered: 2009-04-29
Posts: 74

Re: [Solved] Mounting second hard drive (with data that should not be e...

Ok, thank you. I figured it out. I indeed just installed Arch the way I always did, and during the System Configuration part, I added them to /etc/fstab.

But now I had a really weird problem. As soon as I rebooted, I got a Grub error (15). I really don't know why that is. It was a clean Arch install, with Grub installed to the MBR /dev/sda. Does anyone know why this might be?

Thanks,
jocom

Offline

#4 2011-05-17 12:37:48

siriusb
Member
From: Hungary
Registered: 2010-01-01
Posts: 422

Re: [Solved] Mounting second hard drive (with data that should not be e...

Did you encrypt your partition or something? You may want to check device names in fstab and menu.lst
http://stringofthoughts.wordpress.com/2 … ianubuntu/

Offline

#5 2011-05-17 13:56:30

jocom
Member
Registered: 2009-04-29
Posts: 74

Re: [Solved] Mounting second hard drive (with data that should not be e...

Ok, I'm in the midst of yet another reinstall
I tried installing grub (the last part of the install) and before exiting the install, I switched to another tty, and chrooted into /mnt
The I ran grub and executed

> find /boot/grub/stage1
Error 15
> find /grub/stage1
Error 15
> find grub/stage1
Error 15
> find stage1
Error 15

This actually makes me quite desparate...

My menu.lst and fstab look like:

timeout 5
default 0
color light-blue/black light-cyan/blue

# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-label/root ro
initrd /kernel26.img

and

devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
LABEL=boot /boot ext4 defaults 0 1
LABEL=root / ext4 defaults 0 1
LABEL=xyz /xyz ext4 defaults 0 1
LABEL=swap swap swap defaults 0 0

Where you should read "var,tmp,srv,opt,home" for xyz.

Does anyone know what I'm doing wrong? This is fairly the default configuration the install gave me...

jocom

Offline

#6 2011-05-17 14:27:52

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: [Solved] Mounting second hard drive (with data that should not be e...

Is /boot on sda1?

What is the output of

blkid

for / and /boot?

I use UUID's myself but I see no reason why labels wouldn't work


Rauchen verboten

Offline

#7 2011-05-17 14:38:54

jocom
Member
Registered: 2009-04-29
Posts: 74

Re: [Solved] Mounting second hard drive (with data that should not be e...

Hi,
/boot is indeed on /dev/sda1
When I run blkid (outside the chroot) on /dev/disk/by-label/root
it gives me LABEL=root a UUID and TYPE=ext4,
when running on label/boot I get
LABEL=root another UUID and again TYPE=ext4.

I'm really flabbergasted that this doesn't work, since it always did. The point is, that fsck says all filesystems are fine. And the point that my computer boots up to GRUB, means that there can't be anything wrong with the BIOS of Motherboard, ain't that true?

jocom

Offline

#8 2011-05-17 15:06:33

jocom
Member
Registered: 2009-04-29
Posts: 74

Re: [Solved] Mounting second hard drive (with data that should not be e...

Ok now I ran grub (outside the chroot) and executed

> find /grub/stage1
(hd0,0)
> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
... etc ...
Install .... succeeded
> quit

And then rebooted my system... which then jumped immediately (after the BIOS stag) into

Verifying DMI Pool Data .................
GRUB Loading stage1.5.


GRUB loading, please wait...
Error 15

I don't understand what's going on sad

Offline

#9 2011-05-17 15:27:57

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: [Solved] Mounting second hard drive (with data that should not be e...

That is strange, that error basically says it's not finding grub on the MBR. Are you sure that you're booting to the correct drive from POST? (ie SATA1 instead of SATA2 for example)


Rauchen verboten

Offline

#10 2011-05-17 16:37:38

jocom
Member
Registered: 2009-04-29
Posts: 74

Re: [Solved] Mounting second hard drive (with data that should not be e...

Hi,

Wow, I just tested it because you asked so... and it worked!!
I really don't understand this. Somehow the hard-disk order changed in the BIOS, but I'm very sure I did not enter the BIOS last month, but I did boot several times the last month.

Most wonderful is that I was booted this morning. Then at some moment I wanted to check some file in /srv, but /srv was not available. So I thought, hmm, probably some loose cable. Switched off, checked the cables, and booted again. And then I got this Grub error.
So somehow my computer managed to loose track of my disk, while I was booted. And after a power off and another boot, the hard-disk order in Bios is changed. Very weird.

Well, the problem is solved now smile Except for that I need to install lots of programs again smile But I back-upped 'pacman -Qe', so that isn't a very big problem

jocom

Offline

#11 2011-05-17 23:42:38

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: [Solved] Mounting second hard drive (with data that should not be e...

Do mark this as solved then by editing your first post.

Offline

Board footer

Powered by FluxBB