--- In [email protected], "Gary" <[EMAIL PROTECTED]> wrote:
First of all this is what i get from reading your post :

1. you install linux in /dev/hda and using LVM and its mounting well
2. you want to mount /dev/hdb to linux

is that correct?
if its correct, my question is :
1. is your /dev/hdb formatted / partitioned? even if its partitioned
under windows, dos or other OS its still counted as partitioned.
2. if its partitioned and FORMATTED with some filesystem (eg. if you
partitioned the drive under windows you should formatted the driver
under NTFS of fat32, if its under dos then it should be fat.), then
you need to find out the RIGHT filesystem format that you format the
drive with.
3. when you find out the right filesystem format (eg. ntfs / fat) then
you can mount it using command mount -t vfat /dev/hdb /mnt or mount -t
ntfs /dev/hdb /mnt . or edit your /etc/fstab to make it automount
everytime you boot your system. note: for ntfs you will need to
recompile the kernel for ntfs support (use modprobe -l | grep ntfs to
check if you have the ntfs module or not) or get ntfs-3g driver or
captive ntfs for read and write support.

4. but seeing your fdisk -l result I dont think that you have
partitioned and formatted your /dev/hdb yet.

One easy way to check is to boot to windows and see if you can access
/dev/hdb or not.

if you havent partitioned and formatted the drive yet the you should
do so before mounting it.

Regards.
duckz



>
> --- In [email protected], "Forum Forum" <forum_86@> wrote:
> 
> > hdb has data (in linux file system) which I don't want to lose and 
> > want to use after the installation is complete.
> > 
> > I did use hda for the installation and hence partitioned it. I did 
> > not want to save any data in hda.
> 
> If you simply followed the installation procedure, then your /home,
> /usr, and /var directories are on hda, which means by default your
> data WILL be getting saved on hda -- the one you set up with this
> install.  But don't panic yet.
> 
> > Now, I see that after installation is complete ( a relatively easy 
> > process), linux can see both hda and hdb. The following commands 
> > verify that.
> > 
> > My main question is how can I view the data or mount hdb so that I 
> > can work on the data on that disk.
> > 
> > Can I create a filesystem (say ext3 as this is most common looks 
> > like) and will it delete the data?
> 
> "Creating a filesystem" == "(re)formatting the drive"  You want to
> avoid any option involving this.
>  
> > [EMAIL PROTECTED] patwarya]$ /sbin/fdisk -l
> > 
> > Disk /dev/hda: 8455 MB, 8455200768 bytes
> > 255 heads, 63 sectors/track, 1027 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > 
> > Device Boot Start End Blocks Id System
> > /dev/hda1 * 1 13 104391 83 Linux
> > /dev/hda2 14 1027 8144955 8e Linux LVM
> > 
> > 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 13 104391 83 Linux
> > /dev/hdb2 14 9729 78043770 8e Linux LVM
> 
> Guessing by the sizes of the partition, I would say that hdb1 was the
> /boot or swap partition, and hdb2 was everything else, a pattern
> mirrored by hda*.  LVM is, as I understand it, a technique used most
> often for managing RAID arrays, but seems to be in vogue for modern
> (read: very large capacity) single drives, especially under Fedora
> distros.  It's not typical usage for most other Linuxes.
> 
> The partition itself should be an ext2 or ext3 -- have you simply
> tried both options in your mount attempts?
> 
> If your CPU and memory will support it, you might want to upgrade your
> install to Fedora 7; I had F7 installed on a 800MHz P-III with 128MB
> of RAM.  But you'd need to be able to burn (and read) a bootable DVD
> or 5 CD's.  Anyway, under F7, you have the option to issue a command
> like "#mount -t auto /dev/hdb2 /home/olddrive" which will autodetect
> the filesystem, a nice feature!  You can set that up in fstab also,
> which I did for my zip drive, given that I have a mix of ext2 and
> msdos zip100 archive volumes.
> 
> > 2: I tried to mount hdb – but, it asks me to specify filesystem 
> > type. I don't know what I should give here !
> > 
> > [EMAIL PROTECTED] patwarya]$ 
> > mount /dev/hdb /home/patwarya/ second_drive 
> > mount: you must specify the filesystem type
> 
> Three mistakes I see in your command line.  First, since hdb is split
> into two partitions, you MUST SPECIFY hdb1 or hdb2, and they can only
> be mounted separately.  As I said, the data and apps are probably in
> hdb2.  Second, as the error message indicated, you omitted the "-t"
> parameter, which names the filesystem.  Third, (and this may be just a
> typo on your part) there should be no space between '/home/patwarya/'
>  and 'second_drive'
> 
> So, as root, try "mount -t ext2 /dev/hdb2 /home/patwarya/second_drive"
> and/or "mount -t ext3 /dev/hdb2 /home/patwarya/second_drive".  If
> neither of those work, then post a followup.  If it works, and you
> created the (empty) mountpoint directory "/home/patwarya/second_drive"
> as root, you may also need to CHMOD it so you can read/write the
> contents from your normal user account.
> 
> > I don't think I can give "Linux LVM" as the file system name.
> 
> Since it's not a file system, no, you can't.
> 
> > 
> > 3: More info from df:
> > 
> > [EMAIL PROTECTED] patwarya]$ df -k
> > Filesystem 1K-blocks Used Available Use% Mounted on
> > /dev/mapper/ VolGroup00- LogVol00
> > 5934672 2644360 2988848 47% /
> > /dev/hda1 101086 12189 83678 13% /boot
> > none 1166196 0 1166196 0% /dev/shm
> > /dev/hdc 395278 395278 0 100% /media/cdrom 
> 
> This matches what I've seen on the Fedora 7 install I have on my
> laptop, (and the former installation on said p-iii desktop).  What is
> getting mounted is not the direct partition, but the (for lack of a
> better or correct term) virtual partition "VolGroup00".  I also have a
> VolGroup00-LogVol01 for my swap.  You know, I don't see any swap
> partitions (type 82) anywhere in your listings.  Are you actually
> using swap or not?
> 
> Anyway, regarding LVM, since it seems to be Fedora-specific, it might
> be worth your while to look for  more specific help on the Fedora
> Project websites.
>




To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to