Results 1 to 6 of 6

Thread: Problems with hard drive access permissions

  1. #1
    Junior Member
    Join Date
    Sep 2004
    Posts
    3

    Problems with hard drive access permissions

    I am trying to install GRUB to my MBR using a shell in Knoppix in order to get my SUSE install to work. I ran the command:

    grub-install /dev/hda

    but the following error message came up:

    mkdir: cannot create directory '/boot/grub' : read only filesystem.

    Please help, someone on another forum told my I had to change the access permitions for the drive and I do not know how to do this. BTW: I am a quite a noob, I have only got linux working once before on a single partition, I have never got it to dual boot with window$ xp before.

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    First check the grub-install man page at http://www.fifi.org/doc/grub-doc/html/grub_16.html. Maybe it will help you.
    Try the following in a root shell to help get around the read-only error:
    Code:
    mount /mnt/hda3
    Code:
    chroot /mnt/hda3 /bin/bash
    where hda2 represents your linux / partition. In my pc hda1 is windowsXP, hda2 is swap and hda3 is linux / so I would use hda3.
    Then try your grub-install /dev/hda command. To get out of the chroot, type exit or use the key combo CTRL-D.

    I hope this helps.
    James

  3. #3
    Junior Member
    Join Date
    Sep 2004
    Posts
    3
    Thanks james, I will try that. My hard drive is partitioned that way as well, with windows xp as hda1 and linux hda3 with the swap partition hda2. I will look at the link as well. In linux do you have to have the swap file in a seperate partition because in windows it is just a file in the root drive (C:\)
    ??

  4. #4
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900

    Re: Problems with hard drive access permissions

    Quote Originally Posted by willkill69
    I am trying to install GRUB to my MBR using a shell in Knoppix in order to get my SUSE install to work. I ran the command:

    grub-install /dev/hda

    but the following error message came up:

    mkdir: cannot create directory '/boot/grub' : read only filesystem.

    Please help, someone on another forum told my I had to change the access permitions for the drive and I do not know how to do this. BTW: I am a quite a noob, I have only got linux working once before on a single partition, I have never got it to dual boot with window$ xp before.
    You need to use the --root-directory option like so:

    mount /dev/hda1 /mnt/hda1
    grub-install --root-directory=/mnt/hda1

    voila!

  5. #5
    Junior Member
    Join Date
    Sep 2004
    Posts
    3
    Thanks very much for replying but none of the suggestions work. I have realised what I think the problem is. The windows partition is NTFS so I am probably unable to write anything onto it. I assume I was supposed to be using hda1 and not the Suse partition which is hda3???

    I think that I will just have to install SUSE again unless anyone has any other ideas. What about installing lilo onto the mbr? How would I do that and would that be a reasonable solution to my problem?

  6. #6
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900
    Quote Originally Posted by willkill69
    Thanks very much for replying but none of the suggestions work. I have realised what I think the problem is. The windows partition is NTFS so I am probably unable to write anything onto it. I assume I was supposed to be using hda1 and not the Suse partition which is hda3???

    I think that I will just have to install SUSE again unless anyone has any other ideas. What about installing lilo onto the mbr? How would I do that and would that be a reasonable solution to my problem?
    To install lilo you'd need to use the chroot method posted by UnderScore. chroot and install lilo from there.

    The win part format has nothing to do with your MBR as the MBR lives on the hidden track on the outside of the disc. Of course you need to install a boot loader into the MBR (or edit ntldr). The easiest way would be to boot into SuSE and install a boot loader from there. I prefer GRUB to lilo any day of the week. I realize that you cannot boot into SuSE. Does the SuSE install disc have some way of creating a boot floppy or perhaps even using GRUB from the bootable cd that you installed from? You could also make your own GRUB boot floppy and simply tell GRUB which kernel you have and where it lives and boot SuSE that way.

Similar Threads

  1. Hard drive read access error
    By freddagg in forum Hardware & Booting
    Replies: 3
    Last Post: 09-27-2005, 06:40 PM
  2. gpart utility: Can't access USB Hard Drive
    By ktas in forum Hardware & Booting
    Replies: 12
    Last Post: 09-08-2005, 12:01 AM
  3. Slow access to USB hard drive
    By rafaelorta in forum Hardware & Booting
    Replies: 3
    Last Post: 09-06-2005, 06:33 PM
  4. Hard Drive Permissions
    By sonicspeedway in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 08-11-2004, 01:55 AM
  5. hard-drive access troubles
    By Colonel Sanders in forum Hardware & Booting
    Replies: 2
    Last Post: 08-21-2003, 04:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


9300-8i LSI SAS3008 8-Port 12Gb PCIe IT mode ZFS FreeNAS unRAID 2*SFF-8643 US picture

9300-8i LSI SAS3008 8-Port 12Gb PCIe IT mode ZFS FreeNAS unRAID 2*SFF-8643 US

$49.50



QNAP TR-004 4 Bay USB-C Hardware RAID Enclosure DAS 3.5 2.5 SATA Tested Working picture

QNAP TR-004 4 Bay USB-C Hardware RAID Enclosure DAS 3.5 2.5 SATA Tested Working

$149.99



Vintage Promise EIDEMAX Enhanced IDE Disk Controller ISA Non-RAID Card Boxed picture

Vintage Promise EIDEMAX Enhanced IDE Disk Controller ISA Non-RAID Card Boxed

$34.99



Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003 picture

Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003

$639.69



WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5''3.5'' SSD HDD USB C 4Bay picture

WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5''3.5'' SSD HDD USB C 4Bay

$68.39



Areca ARC-1883IX-24 24-Port 12Gb/s SAS 6Gb/s SATA RAID Controller Card 2GB Cache picture

Areca ARC-1883IX-24 24-Port 12Gb/s SAS 6Gb/s SATA RAID Controller Card 2GB Cache

$499.96



Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller picture

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller

$64.99



2-Bay/4-Bay Hard Drive Enclosure for 3.5

2-Bay/4-Bay Hard Drive Enclosure for 3.5"/2.5'' SATA HDD/SSD 10Gbps USB-C 3.2

$75.99



Dell EMC 15-Bay 3.5

Dell EMC 15-Bay 3.5" SAS Disk Array Enclosure 12Gbps Dual LCC - 2x Power Supply

$249.00



Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD picture

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD

$265.00