Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Edit fstab from Live CD

  1. #1
    Junior Member registered user
    Join Date
    Sep 2006
    Location
    Northern Wis USA
    Posts
    11

    Edit fstab from Live CD

    I was tweaking my Ubuntu fstab and I messed up.

    I am using Knoppix 4.0.2 CD, in a terminal I entered this: Sudo mcedit /dev/hdb6/ect/fstab

    I was able to edit my fstab but when I tried to save it I could not using F2 or the drop down menu.
    What am I missing, does anyone know what I may be doing wrong ? This is my work computer and I would be forever grateful if someone could help me please......

    sarah

  2. #2
    Senior Member registered user
    Join Date
    Feb 2005
    Posts
    228
    Boot off the Knoppix cd and launch a shell:
    Code:
    su
    mkdir /media/hdb6
    mount -o rw /dev/hdb6 /media/hdb6
    mcedit /media/hdb6/etc/fstab
    umount /media/hdb6

  3. #3
    Junior Member registered user
    Join Date
    Sep 2006
    Location
    Northern Wis USA
    Posts
    11

    Edit fstab from Live CD

    Code:
    mkdir /media/hdb6
    I get this: can not create directory /media/hdb6, no such file or directory

    Code:
    mount -o rw /dev/hdb6 /media/hdb6
    mount point /media/hdb6 does not exist

    Code:
    mount /dev/hdb6
    mount /dev/hdb6 already mounted or busy

  4. #4
    Senior Member registered user
    Join Date
    Feb 2005
    Posts
    228
    Did you boot off the Knoppix cd without clicking on any of the hard drive icons on the desktop?
    Did you enter "su" as first command?
    Is your existing Ubuntu install located on hdb6 = 6th partition on the secondary hard drive?

  5. #5
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by ockham23
    Is your existing Ubuntu install located on hdb6 = 6th partition on the secondary hard drive?
    More precisely, the second logical drive on the extended partition. Even with 1 primary partition and one exteded partition containing as few as 2 logical drives, the first logical drive on the second (slave) disk on the first IDE controler would be hdb5 and the second logical drive would be hdb6.

  6. #6
    Junior Member registered user
    Join Date
    Sep 2006
    Location
    Northern Wis USA
    Posts
    11

    Edit fstab from Live CD

    Quote Originally Posted by ockham23
    Did you boot off the Knoppix cd without clicking on any of the hard drive icons on the desktop?
    Now you have a good question there, I do not remember if I did or did not open up the hdb6 icon. Is this important ?

    Did you enter "su" as first command?
    I can answer yes to this


    Is your existing Ubuntu install located on hdb6 = 6th partition on the secondary hard drive?
    yes again....

  7. #7
    Senior Member registered user
    Join Date
    Feb 2005
    Posts
    228
    I assumed you were somewhat familiar with linux commands. Here's an explanation:

    su # become root

    mkdir /media/hdb6 # create mount point "hdb6" inside directory "media"; assuming mount point doesn't exist already

    mount -o rw /dev/hdb6 /media/hdb6 # mount hdb6 and make it writable; clicking on the desktop icon will mount the drive "read only"

    mcedit /media/hdb6/etc/fstab # launch editor

    umount /media/hdb6 # unmount partition when you're done

  8. #8
    Junior Member registered user
    Join Date
    Sep 2006
    Location
    Northern Wis USA
    Posts
    11

    Edit fstab from Live CD

    Quote Originally Posted by Harry Kuhman
    Quote Originally Posted by ockham23
    Is your existing Ubuntu install located on hdb6 = 6th partition on the secondary hard drive?
    More precisely, the second logical drive on the extended partition. Even with 1 primary partition and one exteded partition containing as few as 2 logical drives, the first logical drive on the second (slave) disk on the first IDE controler would be hdb5 and the second logical drive would be hdb6.
    here is what I have, with Ubuntu on hdb6:

    /dev/hdb1 reiserfs 13.97 GB

    /dev/hdb2 extended 19.75 GB
    /dev/hdb5 linux swap 1.12 GB
    /dev/hdb6 boot 18.63 GB

    /dev/hdb3 reiserfs 19.53 GB
    /dev/hdb4 reiserfs 21.27 GB

  9. #9
    Junior Member registered user
    Join Date
    Sep 2006
    Location
    Northern Wis USA
    Posts
    11
    Quote Originally Posted by ockham23
    I assumed you were somewhat familiar with linux commands
    ok, let me try booting Knoppix CD again and I will make sure I have not clicked on the hdb6 icon, I'll be back.......

    regards,
    sarah

  10. #10
    Junior Member registered user
    Join Date
    Sep 2006
    Location
    Northern Wis USA
    Posts
    11

    Edit fstab from Live CD

    ockham23,

    thank you for the commands explaination, I am under average using linux commands, I have a personal file that I have saved my most important commands, I do a lot of copy and pasting. I wasted about a year with Linspire, (no commands needed) and have been using Ubuntu for about a year and love it.

    But anyway, I booted Knoppix up again, made sure I did not open the hdb6 icon, then opened a terminal and tried your commands again but had the same results again as before.

Page 1 of 2 12 LastLast

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
  •  


Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W picture

H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W

$2612.18



Dell Poweredge R640 Server | 2x Silver 4114 20 Cores | 96GB | 8x 1.8TB Dell SAS picture

Dell Poweredge R640 Server | 2x Silver 4114 20 Cores | 96GB | 8x 1.8TB Dell SAS

$2749.99



Dell PowerEdge R730 8 SFF 2x E5-2660 v4 28 Cores 128/256GB 0/3x 900GB 6Gbps H730 picture

Dell PowerEdge R730 8 SFF 2x E5-2660 v4 28 Cores 128/256GB 0/3x 900GB 6Gbps H730

$349.99



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD picture

Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD

$79.19



HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD picture

HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD

$196.95



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00



DELL R730XD Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4x 1.2TB SAS 4xRJ45 picture

DELL R730XD Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4x 1.2TB SAS 4xRJ45

$504.00