Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Edit fstab from Live CD

  1. #11
    Senior Member registered user
    Join Date
    Feb 2005
    Posts
    228
    Code:
    ls /media
    Maybe there's no "/media" directory. Replace "/media" with "/mnt" and try again.

  2. #12
    Junior Member registered user
    Join Date
    Sep 2006
    Location
    Northern Wis USA
    Posts
    11
    Quote Originally Posted by ockham23
    Code:
    ls /media
    Let me explain how I got to this point in the first place. I had two partitions that Ubuntu nautilus could not see, hdb3 & hdb4. Gparted could see them. I finally got Ubuntu to recognize them, but then I could not get permssion. That was when I started tweaking fstab and the next boot failed, I could not and still can not boot into Ubuntu. That is why I am trying to edit fstab from a live CD. About the command above, do I use that command in knoppix seeing I can not boot Ubuntu or were you assuming I could boot in to Ubuntu ?

  3. #13
    Senior Member registered user
    Join Date
    Feb 2005
    Posts
    228
    This is from Knoppix, just to list the contents of /media. And, while you're at it, you could post the output of
    Code:
    sudo fdisk -l

  4. #14
    Junior Member registered user
    Join Date
    Sep 2006
    Location
    Northern Wis USA
    Posts
    11
    root@0[knoppix]# fdisk -l

    Disk /dev/hda: 30.0 GB, 30020272128 bytes
    255 heads, 63 sectors/track, 3649 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 3648 29302528+ c W95 FAT32 (LBA)

    Disk /dev/hdb: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdb1 1 1824 14651248+ 83 Linux
    /dev/hdb2 1825 4402 20707785 5 Extended
    /dev/hdb3 4403 6952 20482875 83 Linux
    /dev/hdb4 6953 9729 22306252+ 83 Linux
    /dev/hdb5 1825 1970 1172713+ 82 Linux swap / Solaris
    /dev/hdb6 * 1971 4402 19535008+ 83 Linux

    Disk /dev/sda: 259 MB, 259522560 bytes
    65 heads, 32 sectors/track, 243 cylinders
    Units = cylinders of 2080 * 512 = 1064960 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 1 244 253424 4 FAT16 <32M
    Partition 1 has different physical/logical endings:
    phys=(249, 64, 32) logical=(243, 44, 32)

    -------------------------------------------------------------------------------------------------------------------------------------

    root@1[knoppix]# ls /media
    ls: /media: No such file or directory

  5. #15
    Senior Member registered user
    Join Date
    Feb 2005
    Posts
    228
    ls: /media: No such file or directory
    Is this Knoppix 4.0 or an older version? Ok, check whether directory "/mnt" exists. If so, the commands are
    Code:
    su
    mkdir /mnt/hdb6
    mount -o rw /dev/hdb6 /mnt/hdb6
    mcedit /mnt/hdb6/etc/fstab
    umount /mnt/hdb6

  6. #16
    Junior Member registered user
    Join Date
    Sep 2006
    Location
    Northern Wis USA
    Posts
    11
    [quote="ockham23"]
    Is this Knoppix 4.0 or an older version?
    Knoppix 4.0.2

  7. #17
    Senior Member registered user
    Join Date
    Feb 2005
    Posts
    228
    Strange, I have 4.0.1 and mount points are in /media. Anyway, /mnt will do as well (if it exists, that is).

  8. #18
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    N42.41 W73 and change
    Posts
    401
    Try this,

    When you get the knoppix boot screen, type: knoppix 2, this will bott you into a command line and you are root.

    Now from the command line, type: startx, this will start the xsession and you should be able to proceed, as root, in a graphical mode to peruse your partitions and edit /etc/fstab, wherever it may be without sudo first.

    HTH

  9. #19
    Junior Member registered user
    Join Date
    Sep 2006
    Location
    Northern Wis USA
    Posts
    11
    Quote Originally Posted by ockham23
    ls: /media: No such file or directory
    Is this Knoppix 4.0 or an older version? Ok, check whether directory "/mnt" exists. If so, the commands are
    Code:
    su
    mkdir /mnt/hdb6
    mount -o rw /dev/hdb6 /mnt/hdb6
    mcedit /mnt/hdb6/etc/fstab
    umount /mnt/hdb6
    ok, good deal, I was able to access, edit and save my changes in hdb6 fstab with the above commands. Thank you so much for being patient and walking me through this. I allready have this post and the commands added to my library.

    This post can be closed,
    the knoppix forums are great,
    sarah

  10. #20
    Junior Member registered user
    Join Date
    Sep 2006
    Location
    Northern Wis USA
    Posts
    11
    Quote Originally Posted by rusty
    Try this,

    When you get the knoppix boot screen, type: knoppix 2, this will bott you into a command line and you are root.

    Now from the command line, type: startx, this will start the xsession and you should be able to proceed, as root, in a graphical mode to peruse your partitions and edit /etc/fstab, wherever it may be without sudo first.HTH
    This sounds interesting, thanks rusty I'll give it a try. I like graphic's.......

    sarah

Page 2 of 2 FirstFirst 12

Similar Threads

  1. When I edit menu.lst file, should I also edit menu.lst~ ?
    By Uncle Stinky in forum Hardware & Booting
    Replies: 3
    Last Post: 02-03-2008, 08:53 AM
  2. Problem when moving New Fstab to the Old Fstab to fix Suse
    By cheetahman in forum General Support
    Replies: 19
    Last Post: 03-21-2005, 11:58 AM
  3. How do i edit XF86Config-4???
    By donutman in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 08-25-2004, 07:24 PM
  4. menu edit
    By sfit in forum Customising & Remastering
    Replies: 1
    Last Post: 10-26-2003, 04:49 AM
  5. iso edit
    By iomari in forum Customising & Remastering
    Replies: 3
    Last Post: 10-10-2003, 10:54 PM

Posting Permissions

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


QNAP TR-004 4-Bay USB RAID Enclosure w/16TB disk (4x4TB WD Red NAS Drives) - DAS picture

QNAP TR-004 4-Bay USB RAID Enclosure w/16TB disk (4x4TB WD Red NAS Drives) - DAS

$400.00



Dell PowerVault MD3000i AMP01 Storage Array 2x PSUs No HDDs/Controllers/Caddies picture

Dell PowerVault MD3000i AMP01 Storage Array 2x PSUs No HDDs/Controllers/Caddies

$144.95



HighPoint RocketStor 6114V 4-Bay USB-C SATA RAID STORAGE ENCLOSURE picture

HighPoint RocketStor 6114V 4-Bay USB-C SATA RAID STORAGE ENCLOSURE

$140.00



HP controller P3410-69003 NetRAID-1M SCSI 64-bit U160 32MB Cache (PCI) picture

HP controller P3410-69003 NetRAID-1M SCSI 64-bit U160 32MB Cache (PCI)

$359.00



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



OWC Mercury Elite Pro Quad 4 Bay RAID Storage Enclosure USB 3.1 Gen 2 No Drives picture

OWC Mercury Elite Pro Quad 4 Bay RAID Storage Enclosure USB 3.1 Gen 2 No Drives

$149.95



Inspur LSI YZCA-00424-101 12Gbps SAS 3.0 RAID Controller CARD HBA  HDD picture

Inspur LSI YZCA-00424-101 12Gbps SAS 3.0 RAID Controller CARD HBA HDD

$14.99



LSI 9305-16i SATA SAS 12Gbs Controller card PCIe 3.0 IT-Mode w/SAS SATA cable US picture

LSI 9305-16i SATA SAS 12Gbs Controller card PCIe 3.0 IT-Mode w/SAS SATA cable US

$119.98



BROADCOM 05-50077-01 PCI-E 4.0 x8 PCI-Express MegaRAID 9560-8i RAID Controller picture

BROADCOM 05-50077-01 PCI-E 4.0 x8 PCI-Express MegaRAID 9560-8i RAID Controller

$714.99



LSI 9207-8i 6Gbs SAS 2308 PCI-E 3.0 HBA IT Mode For ZFS FreeNAS unRAID picture

LSI 9207-8i 6Gbs SAS 2308 PCI-E 3.0 HBA IT Mode For ZFS FreeNAS unRAID

$24.99