Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: mounting partitions in a usb-pen< Next Oldest | Next Newest >
juamagb1 Offline





Group: Members
Posts: 6
Joined: April 2006
Posted: June 18 2006,16:57 QUOTE

Hi, guys!

I've installed dsl 2.3 in my old laptop. Its features: Intel MMx 200 MHz (i586), 32 MB RAM, 2 GB hd.

I have a 512 MB usb-pen.

I explain my problem:

I've created 4 ext2 primary partitions on my usb-pen using fdisk and I have .

Then I've created one file system per partition using:
$ mkfs -t ext2 /dev/sda1 100000
$ mkfs -t ext2 /dev/sda2 100000
$ mkfs -t ext2 /dev/sda3 100000
$ mkfs -t ext2 /dev/sda4 100000

I've changed my /etc/fstab to:
/dev/hda1 / ext2 defaults,errors=remount-ro 0 1
proc /proc proc defaultas 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto, 0 0
/dev/sda1 /mnt/sda1 ext2 defaults,errors=remount-ro 0 1
/dev/sda2 /mnt/sda2 ext2 defaults,errors=remount-ro 0 1
/dev/sda3 /mnt/sda3 ext2 defaults,errors=remount-ro 0 1
/dev/sda4 /mnt/sda4 ext2 defaults,errors=remount-ro 0 1


Now, I can already do:
$ mount /mnt/sda1
$ > /mnt/sda1/myFile
$ ls /mnt/sda1
lost+found myFile

But when I try to do the same with /mnt/sda2, /mnt/sda3, /mnt/sda4, that occurs:
$ mount /mnt/sda2
mount: mount point /mnt/sda2 does not exist


Have I done something wrong?

Thank you in advance.
Back to top
Profile PM 
juamagb1 Offline





Group: Members
Posts: 6
Joined: April 2006
Posted: June 18 2006,19:17 QUOTE

Hi again!

I've just solved the problem!

I've deleted the lines about /mnt/sda1, /mnt/sda2, /mnt/sda3, /mnt/sda4 in /etc/fstab.

Then I've rebooted.

I can already do:
$ mount /mnt/sda1
$ mount /mnt/sda2
$ mount /mnt/sda3
$ mount /mnt/sda4

And also:
$ > /mnt/sda1/myFileTo1
$ > /mnt/sda2/myFileTo2
$ > /mnt/sda3/myFileTo3
$ > /mnt/sda4/myFileto4

And now I've tested software RAID succesfully:
I copied from another machine the utility mdadm (creating software RAID) into a floppy and copied it into /usr/bin in my old laptop with dsl 2.3

Then I did:
$ mdadm --create /dev/md0 --chunk=128 --level=0 --raid-devices=4 /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4
mdadm: /dev/sda1 appears to contain an ext2fs file system
         size=50000K mtime=Mon Jun 19 20:57:55 2006
mdadm: /dev/sda2 appears to contain an ext2fs file system
         size=50000K mtime=Mon Jun 19 20:58:05 2006
mdadm: /dev/sda3 appears to contain an ext2fs file system
         size=50000K mtime=Mon Jun 19 20:57:58 2006
mdadm: /dev/sda4 appears to contain an ext2fs file system
         size=50000K mtime=Mon Jun 19 20:58:01 2006
Continue creating array? y
mdadm: array /dev/md0 started

It worked!

But now...How to mount it? :)
"mount /mnt/md0" doesn't work

Anyone knows how to do it?

Thank you in advance.
Back to top
Profile PM 
1 replies since June 18 2006,16:57 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: mounting partitions in a usb-pen

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code