How to access files on /dev/hdc1?


Recommended Posts

I have recently moved from Windows XP to Linux (Fedora Core 3) and I don't understand how to access my second hard drive? When I go to fdisk -l is says I have disk /dev/hda (partitions /dev/hda1 and hda2) 81.9GB and /dev/hdc (partition /dev/hdc1) 120.0GB, so I assume that means everything is mounted. When I go to / it lists the total free space as 164.4GB, which would be the total of the two drives.

What I don't know is where to put files so that they are physically on /dev/hdc1? Can anyone help me out?

Link to comment
https://www.neowin.net/forum/topic/307963-how-to-access-files-on-devhdc1/
Share on other sites

[root@titanium ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
[root@titanium ~]#

Well, first thing we can try is open a terminal, and su to root (and give the password).

Then type konqueror ~ (assumes you have konqueror/KDE ennvironment installed - you don't need to be in KDE, but just have it installed).

In konqueror, open the "Devices" icon in the left pane, and you should see all possible devices.

Click the one that says "hdc1", and it should mount it for you and display the contents.

If that doesn't work, then report any error. You will need NTFS support if it is an NTFS partition.

If it works, we can go through the commandline setup.

Since Fedora is inept, you would have to recompile the kernel to get NTFS support, this is the only distro I know that makes you do this. Learn how to do it the right way, don't use Konqueror, or Nautilus, or some other GUI tool. As root first create the mount point:

mkdir /mnt/windows

mount /dev/hdc1 /mnt will not work. You need to know the filesystem for the drive. If it is NTFS

mount -t ntfs -o umask=0222 /dev/hdc1 /mnt/windows

If it is FAT32

mount -t vfat /dev/hdc1 /mnt/windows

  j79zlr said:
Since Fedora is inept, you would have to recompile the kernel to get NTFS support, this is the only distro I know that makes you do this. Learn how to do it the right way, don't use Konqueror, or Nautilus, or some other GUI tool.  As root first create the mount point:

mkdir /mnt/windows

mount /dev/hdc1 /mnt will not work.  You need to know the filesystem for the drive.  If it is NTFS

mount -t ntfs -o umask=0222 /dev/hdc1 /mnt/windows

If it is FAT32

mount -t vfat /dev/hdc1 /mnt/windows

585766695[/snapback]

mount will usually try to guess the filesystems.

The drive is NTFS, left over from the old XP install, but there is nothing on it, I moved all my files onto another machine before I installed Linux just incase I hosed everything.

So what I would like to do is assign a new file system to it that can be used in Linux, from there I think I know how to get it to work. But how do I format the drive?

Okay well after I'd finished typing most of this and went to the preview, I saw that j79zlr had already replied, so I just modified this a bit so that it isn't entirely redundant (i'd hate to think that all that time was wasted). So, unless you want to have multiple partitions on your 160GB harddrive, just ignore my post and do what he said.

But if you want more than one partition, then you can log on as root in a console, and run fdisk /dev/hdc.

Type p and press enter, it should give you something like this (this is what it gives me for my 80GB harddrive):

Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          63       31720+  83  Linux
/dev/hda2              64        1056      500472   82  Linux swap / Solaris
/dev/hda3            1057       50660    25000416   83  Linux
/dev/hda4           50661      155061    52618104    5  Extended
/dev/hda5           50661      100264    25000384+  83  Linux
/dev/hda6          100265      155061    27617656+  83  Linux

There will probably only be a /dev/hdc1, but just do this to see if there are actually any others.

When you've done this, take note of how many there are (/dev/hdc1, /dev/hdc2, etc).

To delete the partition, press d, and then it will prompt you to enter a number, which is the number of the partition (e.g. 1 for /dev/hdc1), and repeat this for each of the partitions (again, there will probably only be one).

Now that the partition table is clear, press n. This is to add a new partition. You'll want to leave the First cylinder value blank. If you want the new partition to take up the entire drive, leave the Last cylinder value blank too. However, if you want more than one partition on this disk, then type +sizeM, where "size" is the number of megabytes (so if you want a 60GB partition, type +61440M). Repeat this for each partition that you want (and leave the First cylinder value blank each time; it will default to where the last partition finished). For the last partition, leave the Last cylinder blank, and it will default to the last one on the disk.

The default system id (Linux) won't need to be changed, so now you can just press w to write the changes to disk and exit. To make the new partitions have an ext3 filesystem, in your console, run mke2fs -j /dev/hdcX for each of your partitions.

Once that's finished, you should be able to mount -t ext3 /dev/hdcX /some/empty/dir. :)

Thanks! But something else I was working on hosed my install, so when I reinstalled I just used the setup program to create the mount points for format for me :)

But now I know how to in Linux as well.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I had this issue and it is a nova android conflict issue. Initially the only way to fix it was clicking the screen off and then back on. Figured out it was because of a task I set up in tasker to load certain apps when I connect to my car, so fixed it by adding a 'go home' task after the app loaded and rarely have the issue now
    • I wish one of the windows updates hadn't broken glass. Is there a workaround for that I'm not aware of?
    • OpenAI announces o3 Pro, its most intelligent reasoning model by Pradeep Viswanathan OpenAI today announced o3-pro, its flagship reasoning model that uses more compute to "think harder" and provide consistently better answers. This new model will be replacing o1-pro in ChatGPT since it consistently performs better in math, science, and coding. To help everyone make the most out of the model, o3-pro supports tool calling. So, based on the user prompt, the model can do a web search, analyze files, reason about visual inputs, use Python, personalize responses using memory, and more. This is a big improvement over o1-pro, which lacked access to tools. But the downside is that o3-pro will take more time to respond. OpenAI recommends users use o3-pro in cases where reliability matters more than speed. According to OpenAI's evaluations, users consistently preferred o3-pro's responses over o3 in key domains like science, education, programming, business, and writing help. o3-pro was also rated consistently higher for clarity, comprehensiveness, instruction-following, and accuracy. The new o3-pro model is available in ChatGPT's model picker for Pro and Team. ChatGPT's Enterprise and Edu users will get access to this latest model next week. For developers, the o3-pro model comes with a 200,000 context window and is priced at $20 per million input tokens and $80 per million output tokens. OpenAI recommends developers use background mode with o3-pro to prevent timeouts. And the model has a May 31, 2024 knowledge cutoff. The OpenAI team also noted the following as the current limitations of the o3-pro model: At the moment, temporary chats are disabled for o3-pro as we resolve a technical issue. Image generation is not supported within o3-pro—please use GPT-4o, OpenAI o3, or OpenAI o4-mini to generate images. Canvas is also currently not supported within o3-pro. As OpenAI continues to refine its models, the balance between speed and reliability will likely remain a key consideration for users choosing the right tool for their needs.
  • Recent Achievements

    • Reacting Well
      rshit earned a badge
      Reacting Well
    • Reacting Well
      Alan- earned a badge
      Reacting Well
    • Week One Done
      IAMFLUXX earned a badge
      Week One Done
    • One Month Later
      Æhund earned a badge
      One Month Later
    • One Month Later
      CoolRaoul earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      541
    2. 2
      ATLien_0
      269
    3. 3
      +FloatingFatMan
      210
    4. 4
      +Edouard
      203
    5. 5
      snowy owl
      140
  • Tell a friend

    Love Neowin? Tell a friend!