Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20
you will get write permissions by using 'sudo'. post the output of 'df -h' command and try sudo fdisk -l again. Casper...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729

    you will get write permissions by using 'sudo'.
    post the output of 'df -h' command and try sudo fdisk -l again.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  2. #12
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    476
    Well I rebooted from the LiveCD and mounted as follows:

    unionfs / unionfs rw 0 0
    tmpfs /tmp tmpfs nosuid,nodev 0 0
    /dev/sda3 /mnt/ ext3 defaults,umask=0 0 0
    /dev/sda1 /mnt/ntfs_1 ntfs defaults,umask=0 0 0
    /dev/sda5 /mnt/ntfs_2 ntfs defaults,umask=0 0 0
    /dev/sdb1 /mnt/ntfs_3 ntfs defaults,umask=0 0 0
    /dev/sda4 swap swap defaults 0 0
    /dev/sdb3 swap swap defaults 0 0

    Then of course I did: sudo mkdir /mnt/ntfs_1 /mnt/ntfs_2 /mnt/ntfs_3
    then I did mount -a and mount -t ext3 /dev/sda3 /mnt/

    That works like a charm and now...I did df -h as you asked, this is the output:
    Code:
    ubuntu@ubuntu:~$ df -h
    Filesystem            Size  Used Avail Use% Mounted on
    unionfs               1.4G  673M  710M  49% /
    varrun                760M   80K  760M   1% /var/run
    varlock               760M  4.0K  760M   1% /var/lock
    udev                  760M  148K  760M   1% /dev
    devshm                760M     0  760M   0% /dev/shm
    lrm                   760M  8.8M  752M   2% /lib/modules/2.6.15-23-386/volatile
    tmpfs                 760M   16K  760M   1% /tmp
    /dev/sdc1             490M  275M  215M  57% /media/STICK
    /dev/sda3              20G  4.3G   15G  23% /mnt
    /dev/sda1              20G   18G  2.4G  88% /mnt/ntfs_1
    /dev/sda5              72G   31G   41G  44% /mnt/ntfs_2
    /dev/sdb1              91G   73G   19G  80% /mnt/ntfs_3
    and sudo fdisk -l gives the following:

    Code:
    ubuntu@ubuntu:~$ sudo fdisk -l
    
    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        2550    20482843+   7  HPFS/NTFS
    /dev/sda2            2551       11876    74911095    f  W95 Ext'd (LBA)
    /dev/sda3   *       11877       14444    20627460   83  Linux
    /dev/sda4           14445       14593     1196842+  82  Linux swap / Solaris
    /dev/sda5            2551       11876    74911063+   7  HPFS/NTFS
    
    Disk /dev/sdb: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1       11877    95401971    7  HPFS/NTFS
    /dev/sdb2           11878       14445    20627365+  a5  FreeBSD
    Partition 2 does not end on cylinder boundary.
    /dev/sdb3           14446       14593     1188778+  82  Linux swap / Solaris
    
    Disk /dev/sdc: 513 MB, 513802240 bytes
    16 heads, 32 sectors/track, 1960 cylinders
    Units = cylinders of 512 * 512 = 262144 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1   *           1        1960      501744    b  W95 FAT32

  3. #13
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    did you try to execute 'sudo grub-install /dev/sda' now? post exact error message here, if any.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #14
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    476
    ubuntu@ubuntu:~$ sudo grub-install /dev/sda
    Probing devices to guess BIOS drives. This may take a long time.
    Could not find device for /boot: Not found or not a block device.

    (Note, I didn't chroot to /mnt/ (but that doesn't work anyway)

  5. #15
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    thats strange. try recheck option.
    Code:
    sudo grub-install /dev/sda --recheck



    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #16
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    476
    Nope same story. I was thinking of re-installing the win bootloader and adding ubuntu to that and then re-install grub from that...rather long process especially since I don't know how to add entries to the windows bootloader..

  7. #17
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    i dont know why LiveCD is not working. remove BSD GRUB and re-install Ubuntu GRUB using LiveCD.
    boot up from Windows Installation CD, select 'repair' and execute 'fixmbr'. this will remove GRUB and machine will Windows by defualt. boot up from Ubuntu LiveCD and execute 'grub-install' again.




    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #18
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    476
    You think that will make a difference ? Well...it's worth a shot since windows is the only OS I can boot into anyway...unless I change my primary HDD to my second one..which means it will boot from BSD...

  9. #19
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    where did you install BSD GRUB? in sda or sdb?
    Windows and Ubuntu installed in sda. right? where did you install Ubuntu's GRUB?





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #20
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    476
    BSD didn't ask me where to install it's bootloader it just installed it so I suppose it's on the MBR. I know though that Windows and Ubuntu/GRUB was on sda because I had re-installed grub there just 3 days ago or so...

    When I tried formatting BSD's partition so I can do fixmbr with the Windows disk I couldn't delete it. It had a whole block around my whole HDD saying "BAD" which means it infected my whole HDD in some bad way...So I tried formatting the whole of sdb and I couldn't do that via Partition magic..So what me does is I boot from the Ubuntu disk and try installing Ubuntu onto sdb2 while creating partitions but that didn't work either. So I ended up allocating the whole of sdb to Ubuntu (120GB) and that...F I N A L L Y worked! I was worried that my HDD was broken or something...It's not the first time this has happened after installing BSD. I don't think my HDD likes reiser or something I don't know..

    All the respect to BSD and its users and I DO believe it's a great OS but to me it is "Break Someone's Drive" No offense just a joke lol...Just doesn't seem to want to work here..

    Now at the moment I've got two Ubuntu's installed and I can see both in the GRUB loader (Because the second Ubuntu installed it's own grub of course) So what I'm going to do is boot from my old and customized ubuntu, re-install grub and then delete this Ubuntu and format my partition again so I can add my 70GB music to it that I had lost...Thank God my brother has it on his HDD...

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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