[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installing a new HDD and mounting others



On 10/07/12 11:27 PM, Mark Panen wrote:
On 10/07/2012 23:36, Gary Dale wrote:
On 09/07/12 05:12 PM, Mark Panen wrote:
On 09/07/2012 20:02, Gary Dale wrote:
On 09/07/12 01:47 PM, Mark Panen wrote:
Hi,

I have followed this except to replace ext3 with ext4:

http://linux.justinhartman.com/Installing_a_second_hard_drive

I installed a new HDD and installed Squeeze on it.

When i open My Computer in Gnome i can see and mount the other two
HDD's.

But i cannot get the /etc/fstab entry right, on boot i get fsck
errors on the other two HDD's.

Mount them with:

mount -t ext4 /dev/hdc1 /new-disk as an example works once the system
is up.

but the /etc/fstab example does not when i reboot.

Is it perhaps that i have the boot flag entry on the other two HDD's?

Can you post the lines from your /etc/fstab referring to the two disks?



#/dev/sda /mnt/store9 ext4 defaults,errors=remount-ro 0 0 #/dev/sdb /mnt/store3 ext4 noatime,defaults 0 0

1) if these your lines, they are commented out so they will be ignored.
2) if the actual lines don't include the "#", you need the partition number and not just the drive device (i.e. /dev/sda should probably be something like /dev/sda1) 3) the /dev/sda line includes "errors=remount-ro", which tells the system to remount it read-only if errors are detected, but the last "0" tells the system to not check the partition. The final "0" should be "2" for any non-root partition (you want it checked after the "/" partition, otherwise it can't be mounted).
4) do the directories /mnt/store3 and /mnt/store9 exist?
5) are the device letters correct? In your original e-mail you referred to /dev/hdc1, not /dev/sda and /dev/sdb. The device designation doesn't change between the command line and /etc/fstab. They should be the same in both cases.



gparted sees my two HDD as /dev/sda & /dev/sdb, not in partitions. I will try find out the partitions numbers of the /devs
gparted also shows the partitions. You mount partitions, not disk drives.


I have commented out the lines as squeeze fails to boot with these lines in fstab.
I'm not surprised


directories /mnt/store3 and /mnt/store9 exist.
Good.


I still don't understand when i go to places and click on the computer icon it sees all the HDD's and i can mount them?

It doesn't show the drives. It shows the partitions. The difference between /dev/sda and /dev/sda1 is important.


Reply to: