Results 1 to 8 of 8

Thread: pendisk - vfat or ext2?

  1. #1
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    24

    pendisk - vfat or ext2?

    I'd like to use the USB disk to keep my /root directory
    Problem is I created the filesystem as ext2, whereas /etc/fstab lists it as vfat

    Is it right that I use an ext2 fs? I believe so, since /root makes strong use of symlinks. How do I modify fstab in the remastering phase?

    Thanks!

    alessandro

  2. #2
    Junior Member registered user
    Join Date
    Feb 2004
    Posts
    19
    Alexxx,

    I am curious are you running KNOPPIX from cd and saving your settings to a thumb drive? Or do you want to remove the root directory component from the image and put it on your thumb drive? Or are you running from harddisk?

    There are reasons I ask and will wait for a an answer but let me add this...
    When remastering KNOPPIX you should not have to worry about what fstab says. What makes KNOPPIX so powerful is that it has the ability to rewrite the fstab after it auto-detects your computers hardware. Are you understanding why I am confused now? I simply don't understand why fstab in causing you a problem unless you are using the "save your personal settings" KNOPPIX feature. If that is the case then what you need to do is de-select (or do not select) the "o" setting for saving "Other system configuration" ... this should keep your fstab dynamic.

    Hope this helps,

  3. #3
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    24
    Hi, thanks for the reply.
    What I'd like to have is the following:
    - a remastered CD (with some soft added, some deleted)
    - me logging in always as root from the CD
    - my /root home dynamic, saved on pendrive, holding my settings

    BTW, I even tried the PersistentHomeHOWTO, and got problems: it mentions in thre readme the use of the file knoppix.sh - a file not present at all in the 0.4 distribution (I posted this problem in the forum too, but if you have any hints...)

    Anyway... as I told you I mkfs -t ext2 the USB pendrive, copied all of root on it made a symlink from /root to /mnt/sda1. It didnt work and I'm working on it, but what puzzles me most is that after bootup the system's fstab mentions sda1 as vfat.

    I hope to have it clarified .... Thanks!

    Alessandro

  4. #4
    Member registered user
    Join Date
    Mar 2003
    Location
    Berlin, Germany
    Posts
    94
    Hi,

    if you use ext2 on a memory stick you should mount it with the "noatime" option (man mount). If you mount without this option every time you _read_ your file the access time is _written_ to the directory on your flash device.

    Ciao Martin

  5. #5
    Member registered user
    Join Date
    Sep 2003
    Location
    denver, co
    Posts
    72
    Alessandro,
    If you are sticking with linux only I don't see any problem with formatting your thumb drive to ext2, as long as you never need to access that usb drive under windows.

    What do you mean when you say "it doesn't work"? Do you get messages of any kind? Is the drive actually mounting? Have you tried modifying your fstab to say that the drive uses ext2?

  6. #6
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    24
    yep, it IS formatted ext2!
    What doesnt work is the fact that - after booting - fstab lists it as vfat - so that if I just do: mount /dev/sda1 I get a big mess (wrong filenames, erroneous sizes,...)
    Of course It's OK with mount -t ext2 /dev/sda1

  7. #7
    Junior Member
    Join Date
    Mar 2004
    Posts
    6
    Quote Originally Posted by Alexxx
    yep, it IS formatted ext2!
    What doesnt work is the fact that - after booting - fstab lists it as vfat - so that if I just do: mount /dev/sda1 I get a big mess (wrong filenames, erroneous sizes,...)
    Of course It's OK with mount -t ext2 /dev/sda1
    Try fdisk /dev/sda and check the partition type (option p). If it's not 'Linux' that is most likely the problem. Upon bootup, one of the things that is checked is the partition type, it doesn't care what the actual formatting is. The partition table states what the file system is. For that reason you can have ext2 and ext3 formatting and some others all under the Linux partition type. Later in the boot/mount process is when the actual formatting is determined before you start reading files from the partition.
    This is all just a guess, so I wish you luck.

  8. #8
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    24
    Try fdisk /dev/sda and check the partition type
    FAT16????????? Damn.
    I got confused between partition type and formatting, you're right.
    Anyway - I never knew you could have EXT2 on FAT16, live and learn...

    Thanks

    Alessandro

Similar Threads

  1. Help formatting a CompactFlash card with vfat & ext2
    By sah in forum Hardware & Booting
    Replies: 1
    Last Post: 09-06-2004, 09:06 PM
  2. iso to vfat
    By cld in forum Customising & Remastering
    Replies: 2
    Last Post: 07-26-2004, 05:33 PM
  3. ext2 doesn't mount
    By Rivendell in forum General Support
    Replies: 6
    Last Post: 04-08-2004, 10:14 PM
  4. Writting to a vfat HD
    By mangancha in forum General Support
    Replies: 4
    Last Post: 04-18-2003, 05:53 PM
  5. vfat not loaded automatically? vfat=fat32 support?
    By pc_dev in forum General Support
    Replies: 1
    Last Post: 02-21-2003, 04:08 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 R640 Server | 2x Gold 6132 28 Cores | H730p | Choose RAM / DRIVES picture

Dell PowerEdge R640 Server | 2x Gold 6132 28 Cores | H730p | Choose RAM / DRIVES

$2630.00



M.2 NVME SATA SSD Enclosure USB 3.2 Gen 2 10Gbps for M-Key or M+B Key SSD to 8TB picture

M.2 NVME SATA SSD Enclosure USB 3.2 Gen 2 10Gbps for M-Key or M+B Key SSD to 8TB

$19.86



WD 500GB My Passport SSD Portable External Solid State Drive WDBAGF5000AGY-WESN picture

WD 500GB My Passport SSD Portable External Solid State Drive WDBAGF5000AGY-WESN

$79.99



WD 500GB My Passport SSD, Portable External Solid State Drive WDBAGF5000ARD-WESN picture

WD 500GB My Passport SSD, Portable External Solid State Drive WDBAGF5000ARD-WESN

$59.99



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$14.99



Intel DC S3510 Series 120GB SSD 2.5

Intel DC S3510 Series 120GB SSD 2.5" 6Gb/s SATA Solid State Drive SSDSC2BB120G6K

$8.99



Micron 5100 MAX 120GB SATA 6Gb/s 2.5

Micron 5100 MAX 120GB SATA 6Gb/s 2.5" Internal SSD MTFDDAK120TCC Solid State

$8.99



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$13.99



Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot picture

Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot

$198.99



Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive picture

Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive

$249.99